00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00021 #ifndef __vtkPVRenderGroupDialog_h
00022 #define __vtkPVRenderGroupDialog_h
00023
00024 #include "vtkKWWidget.h"
00025
00026 class vtkKWApplication;
00027 class vtkKWPushButton;
00028 class vtkKWEntry;
00029 class vtkKWFrame;
00030 class vtkKWLabel;
00031 class vtkKWWindow;
00032 class vtkKWEntry;
00033 class vtkKWCheckButton;
00034
00035 class VTK_EXPORT vtkPVRenderGroupDialog : public vtkKWWidget
00036 {
00037 public:
00038 static vtkPVRenderGroupDialog* New();
00039 vtkTypeRevisionMacro(vtkPVRenderGroupDialog, vtkKWWidget);
00040 void PrintSelf(ostream& os, vtkIndent indent);
00041
00043 virtual void Create(vtkKWApplication *app);
00044
00046 void Invoke();
00047
00049 void Accept();
00050
00052
00053 vtkSetStringMacro(Title);
00055
00059 void SetMasterWindow(vtkKWWindow* win);
00060
00062
00063 void SetNumberOfProcessesInGroup(int val);
00064 vtkGetMacro(NumberOfProcessesInGroup, int);
00066
00068 void NumberEntryCallback();
00069
00071
00075 void SetDisplayString(int idx, const char* str);
00076 const char* GetDisplayString(int idx);
00078
00079 protected:
00080 vtkPVRenderGroupDialog();
00081 ~vtkPVRenderGroupDialog();
00082
00083
00084 void Update();
00085 void ComputeDisplayStringRoot(const char* str);
00086
00087 void Append(const char*);
00088
00089 vtkKWWindow* MasterWindow;
00090
00091 vtkKWFrame* ControlFrame;
00092 vtkKWPushButton* SaveButton;
00093 vtkKWPushButton* ClearButton;
00094 vtkKWLabel* NumberLabel;
00095 vtkKWEntry* NumberEntry;
00096
00097 int DisplayFlag;
00098 vtkKWFrame* DisplayFrame;
00099 vtkKWLabel* Display0Label;
00100 vtkKWEntry** DisplayEntries;
00101 char* DisplayStringRoot;
00102
00103 vtkKWWidget* ButtonFrame;
00104 vtkKWPushButton* AcceptButton;
00105 int AcceptedFlag;
00106
00107
00108 char* Title;
00109 int Writable;
00110 int NumberOfProcessesInGroup;
00111
00112 private:
00113 vtkPVRenderGroupDialog(const vtkPVRenderGroupDialog&);
00114 void operator=(const vtkPVRenderGroupDialog&);
00115 };
00116
00117 #endif