vtkKWMimxGroupBase.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
00031
00032
00033 #ifndef __vtkKWMimxGroupBase_h
00034 #define __vtkKWMimxGroupBase_h
00035
00036
00037 #include "vtkCommand.h"
00038
00039
00040
00041 #include "vtkKWCompositeWidget.h"
00042
00043 #include "vtkKWMimxMainWindow.h"
00044 #include "vtkKWMimxViewProperties.h"
00045 #include "vtkKWMimxMainMenuGroup.h"
00046 #include "vtkKWMimxViewProperties.h"
00047 #include "vtkKWComboBox.h"
00048 #include "vtkLinkedListWrapper.h"
00049 #include "vtkLinkedListWrapperTree.h"
00050 #include "vtkBuildingBlockWin32Header.h"
00051
00052 class vtkKWFrame;
00053 class vtkKWPushButton;
00054 class vtkLinkedListWrapper;
00055 class vtkLinkedListWrapperTree;
00056 class vtkKWMimxMainMenuGroup;
00057
00058
00059 class VTK_BUILDINGBLOCK_EXPORT vtkKWMimxGroupBase : public vtkKWCompositeWidget
00060 {
00061 public:
00062 static vtkKWMimxGroupBase* New();
00063 vtkTypeRevisionMacro(vtkKWMimxGroupBase,vtkKWCompositeWidget);
00064 void PrintSelf(ostream& os, vtkIndent indent);
00065 virtual void Update();
00066 virtual void UpdateEnableState();
00067
00068
00069
00070 vtkSetObjectMacro(SurfaceList, vtkLinkedListWrapper);
00071 vtkSetObjectMacro(BBoxList, vtkLinkedListWrapper);
00072 vtkSetObjectMacro(FEMeshList, vtkLinkedListWrapper);
00073 vtkGetObjectMacro(MimxMainWindow, vtkKWMimxMainWindow);
00074 vtkSetObjectMacro(MimxMainWindow, vtkKWMimxMainWindow);
00075 vtkGetObjectMacro(MainFrame, vtkKWFrame);
00076 vtkSetObjectMacro(ViewProperties, vtkKWMimxViewProperties);
00077 vtkSetObjectMacro(MenuGroup, vtkKWMimxMainMenuGroup);
00078 vtkSetObjectMacro(ImageList, vtkLinkedListWrapper);
00079 vtkGetObjectMacro(ImageList, vtkLinkedListWrapper);
00080 vtkSetObjectMacro(DoUndoTree, vtkLinkedListWrapperTree);
00081
00082
00083
00084
00085
00086
00087 vtkSetMacro(Count, int);
00088 void AddMeshToDisplay(vtkUnstructuredGrid *ugrid, const char *namePrefix,
00089 const char *FoundationName, const char *elementSetName);
00090 void AddSurfaceToDisplay(vtkPolyData *surface, const char *namePrefix,
00091 const char *foundationName);
00092 void AddBuildingBlockToDisplay(vtkUnstructuredGrid *ugrid, const char *namePrefix,
00093 const char *foundationName);
00094 int UpdateBuildingBlockComboBox(vtkKWComboBox *combobox);
00095 int UpdateMeshComboBox(vtkKWComboBox *combobox);
00096 int UpdateSurfaceComboBox(vtkKWComboBox *combobox);
00097 int UpdateImageComboBox(vtkKWComboBox *combobox);
00098
00099
00100 void AddImageToDisplay(vtkImageData *surface,
00101 const char *namePrefix, const char *foundationName);
00102
00103
00104 void AddImageToDisplay(vtkImageData *surface,
00105 const char *namePrefix, const char *foundationName, vtkMatrix4x4 *matrix, double origin[3], double spacing[3]);
00106
00107 int CancelStatus;
00108
00109 protected:
00110 vtkKWMimxGroupBase();
00111 virtual ~vtkKWMimxGroupBase();
00112 virtual void CreateWidget();
00113 vtkLinkedListWrapper *SurfaceList;
00114 vtkLinkedListWrapper *BBoxList;
00115 vtkLinkedListWrapper *FEMeshList;
00116 vtkLinkedListWrapper *ImageList;
00117 vtkKWPushButton *ApplyButton;
00118 vtkKWPushButton *CancelButton;
00119 vtkKWFrame *MainFrame;
00120
00121 vtkKWMimxMainWindow *MimxMainWindow;
00122 vtkKWMimxViewProperties *ViewProperties;
00123 vtkLinkedListWrapperTree *DoUndoTree;
00124 vtkKWMimxMainMenuGroup *MenuGroup;
00125 vtkIdType Count;
00126 char objectSelectionPrevious[256];
00127
00128 private:
00129 vtkKWMimxGroupBase(const vtkKWMimxGroupBase&);
00130 void operator=(const vtkKWMimxGroupBase&);
00131 };
00132
00133 #endif
00134