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

GUI/Client/vtkPVXDMFParameters.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   ParaView
00004   Module:    $RCSfile: vtkPVXDMFParameters.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 =========================================================================*/
00019 #ifndef __vtkPVXDMFParameters_h
00020 #define __vtkPVXDMFParameters_h
00021 
00022 #include "vtkPVObjectWidget.h"
00023 
00024 class vtkKWLabel;
00025 class vtkKWFrameWithLabel;
00026 class vtkPVXDMFParametersInternals;
00027 
00028 class VTK_EXPORT vtkPVXDMFParameters : public vtkPVObjectWidget
00029 {
00030 public:
00031   static vtkPVXDMFParameters* New();
00032   vtkTypeRevisionMacro(vtkPVXDMFParameters, vtkPVObjectWidget);
00033   void PrintSelf(ostream& os, vtkIndent indent);
00034 
00036   virtual void Create(vtkKWApplication *pvApp);
00037 
00038   virtual void Accept();
00039   
00041   void CheckModifiedCallback();
00042   
00043 //BTX
00045 
00048   vtkPVXDMFParameters* ClonePrototype(vtkPVSource* pvSource,
00049                              vtkArrayMap<vtkPVWidget*, vtkPVWidget*>* map);
00051 //ETX
00052 
00056   virtual void ResetInternal();
00057 
00059   virtual void Initialize();
00060 
00063   void SetParameterIndex(const char* label, int value);
00064 
00066   virtual void Trace(ofstream *file);
00067 
00069   void SetLabel(const char* label);
00070 
00073   void UpdateParameters(int fromReader);
00074 
00076   void AddXDMFParameter(const char* pname, int value, int min, int step, int max);
00077 
00078   //BTX
00080 
00081   vtkGetObjectMacro(Frame, vtkKWFrameWithLabel);
00082   vtkGetMacro(VTKReaderID, vtkClientServerID);
00083   //ETX
00085 
00086   void SaveInBatchScript(ofstream *file);
00087 
00094   virtual void UpdateEnableState();
00095  
00096 protected:
00097   vtkPVXDMFParameters();
00098   ~vtkPVXDMFParameters();
00099   
00100 
00101   vtkPVXDMFParametersInternals* Internals;
00102   vtkKWFrameWithLabel* Frame;
00103 
00104 //BTX
00105   virtual void CopyProperties(vtkPVWidget* clone, vtkPVSource* pvSource,
00106                               vtkArrayMap<vtkPVWidget*, vtkPVWidget*>* map);
00107 //ETX
00108 
00109   int ReadXMLAttributes(vtkPVXMLElement* element,
00110                         vtkPVXMLPackageParser* parser);
00111 
00112   vtkSetStringMacro(FrameLabel);
00113   vtkGetStringMacro(FrameLabel);
00114   char* FrameLabel;
00115 
00117   vtkClientServerID VTKReaderID;
00118 
00119   // ID of server-side helper.
00120   vtkClientServerID ServerSideID;
00121 private:
00122   vtkPVXDMFParameters(const vtkPVXDMFParameters&); // Not implemented
00123   void operator=(const vtkPVXDMFParameters&); // Not implemented
00124 };
00125 
00126 #endif

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