Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

GUI/Client/vtkPVRenderGroupDialog.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   ParaView
00004   Module:    $RCSfile: vtkPVRenderGroupDialog.h,v $
00005 
00006   Copyright (c) Kitware, Inc.
00007   All rights reserved.
00008   See Copyright.txt or http://www.paraview.org/HTML/Copyright.html for details.
00009 
00010      This software is distributed WITHOUT ANY WARRANTY; without even
00011      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00012      PURPOSE.  See the above copyright notice for more information.
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   // Returns 1 if first display is OK. 0 if user has modified the display.
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&); // Not implemented
00114   void operator=(const vtkPVRenderGroupDialog&); // Not implemented
00115 };
00116 
00117 #endif

Generated on Tue May 30 12:31:40 2006 for ParaView by doxygen 1.3.5