vtkKWMimxViewPropertiesGroup.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030 #ifndef __vtkKWMimxViewPropertiesGroup_h
00031 #define __vtkKWMimxViewPropertiesGroup_h
00032
00033 #include "vtkKWTopLevel.h"
00034 #include "vtkKWMultiColumnListWithScrollbars.h"
00035 #include "vtkKWMimxMainWindow.h"
00036 #include "vtkLocalLinkedListWrapper.h"
00037 #include "vtkLinkedListWrapperTree.h"
00038 #include "vtkBuildingBlockWin32Header.h"
00039
00040
00041 class vtkKWChangeColorButton;
00042 class vtkKWCheckButtonWithLabel;
00043 class vtkKWFrameWithLabel;
00044 class vtkKWMenuButtonWithLabel;
00045 class vtkKWFrameWithScrollbar;
00046 class vtkKWLabel;
00047 class vtkKWPushButton;
00048 class vtkKWRange;
00049 class vtkKWSpinBoxWithLabel;
00050
00051 class VTK_BUILDINGBLOCK_EXPORT vtkKWMimxViewPropertiesGroup : public vtkKWTopLevel
00052 {
00053 public:
00054 static vtkKWMimxViewPropertiesGroup* New();
00055 vtkTypeRevisionMacro(vtkKWMimxViewPropertiesGroup,vtkKWTopLevel);
00056 void PrintSelf(ostream& os, vtkIndent indent);
00057 virtual void Update();
00058 virtual void UpdateEnableState();
00059
00060
00061
00062 vtkSetObjectMacro(MimxMainWindow, vtkKWMimxMainWindow);
00063 vtkGetObjectMacro(MimxMainWindow, vtkKWMimxMainWindow);
00064 vtkSetObjectMacro(DoUndoTree, vtkLinkedListWrapperTree);
00065 vtkSetObjectMacro(MultiColumnList, vtkKWMultiColumnListWithScrollbars);
00066 vtkGetObjectMacro(MainFrame, vtkKWFrameWithLabel);
00067
00068
00069
00070 virtual void SetActorColor(double color[3]);
00071
00072
00073
00074 virtual void SetOutlineColor(double color[3]);
00075
00076 virtual void SetElementSetColor(double color[3]);
00077
00078
00079
00080
00081 void RepresentationCallback(int type);
00082
00083
00084
00085 void SetElementSizeFromScaleCallback(double scale);
00086
00087
00088
00089 void LineWidthCallback(double width);
00090
00091 void OpacityCallback(double width);
00092
00093 vtkSetObjectMacro(ObjectList, vtkLocalLinkedListWrapper);
00094
00095
00096
00097 void SetViewProperties();
00098 vtkGetMacro(ElementsHighlighted,int);
00099
00100
00101
00102 void DisplayModeCallback(int mode);
00103
00104
00105
00106 void ElementSetVisibilityCallback(int index, int flag);
00107
00108
00109
00110 void ElementSetDisplayPropertyCallback( );
00111
00112 void SetMeshDisplayPropertyCallback();
00113
00114
00115
00116 void SetElementSetList();
00117
00118
00119
00120 void SetItemName(const char *item);
00121
00122
00123
00124 void SetItemId(const char *id);
00125
00126
00127
00128
00129 int GetItemRow( );
00130 vtkSetMacro(SelectionRow, int);
00131
00132 protected:
00133 vtkKWMimxViewPropertiesGroup();
00134 ~vtkKWMimxViewPropertiesGroup();
00135 virtual void CreateWidget();
00136 vtkKWMultiColumnListWithScrollbars *MultiColumnList;
00137 vtkKWMimxMainWindow *MimxMainWindow;
00138 vtkLocalLinkedListWrapper *ObjectList;
00139 vtkKWFrameWithLabel *MainFrame;
00140 vtkKWFrameWithLabel *PropertyFrame;
00141 vtkKWFrameWithLabel *ColorFrame;
00142 vtkKWFrameWithLabel *StyleFrame;
00143 vtkKWFrameWithLabel *NodeDataFrame;
00144 vtkKWFrameWithLabel *ElementDataFrame;
00145 vtkKWChangeColorButton *ActorColorButton;
00146 vtkKWChangeColorButton *ElementDataColorButton;
00147 vtkKWMenuButtonWithLabel *DisplayStyleMenuButton;
00148 vtkKWMenuButtonWithLabel *NodeDataMenuButton;
00149 vtkKWMenuButtonWithLabel *ElementDataMenuButton;
00150 vtkKWMenuButtonWithLabel *DisplayLabels;
00151 vtkKWSpinBoxWithLabel *LinewidthThumbwheel;
00152 vtkKWSpinBoxWithLabel *OpacityThumbwheel;
00153 vtkLinkedListWrapperTree *DoUndoTree;
00154 vtkKWFrameWithLabel *ElementSizeFrame;
00155 vtkKWSpinBoxWithLabel *ElementSizeScale;
00156 vtkKWCheckButtonWithLabel *OverrideColorButton;
00157 vtkKWRange *ElementColorRange;
00158 int ElementsHighlighted;
00159 vtkKWPushButton *CloseButton;
00160 vtkKWCheckButtonWithLabel *OutlineButton;
00161 vtkKWChangeColorButton *OutlineColorButton;
00162 vtkKWMenuButtonWithLabel *ColorMenuButton;
00163 vtkKWMenuButtonWithLabel *DisplayModeButton;
00164 vtkKWMultiColumnListWithScrollbars *ElementSetList;
00165 vtkKWLabel *ObjectNameLabel;
00166
00167 int SelectionRow;
00168 bool inializedElementSetList;
00169 char ItemName[256];
00170 char ItemId[64];
00171
00172 private:
00173 vtkKWMimxViewPropertiesGroup(const vtkKWMimxViewPropertiesGroup&);
00174 void operator=(const vtkKWMimxViewPropertiesGroup&);
00175 };
00176
00177 #endif
00178