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

GUI/Client/vtkPVSelectTimeSet.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   ParaView
00004   Module:    $RCSfile: vtkPVSelectTimeSet.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 =========================================================================*/
00023 #ifndef __vtkPVSelectTimeSet_h
00024 #define __vtkPVSelectTimeSet_h
00025 
00026 #include "vtkPVWidget.h"
00027 
00028 class vtkKWLabel;
00029 class vtkKWMenu;
00030 class vtkKWFrameWithLabel;
00031 class vtkDataArrayCollection;
00032 class vtkKWTreeWithScrollbars;
00033 
00034 class VTK_EXPORT vtkPVSelectTimeSet : public vtkPVWidget
00035 {
00036 public:
00037   static vtkPVSelectTimeSet* New();
00038   vtkTypeRevisionMacro(vtkPVSelectTimeSet, vtkPVWidget);
00039   void PrintSelf(ostream& os, vtkIndent indent);
00040 
00042   virtual void Create(vtkKWApplication *pvApp);
00043 
00044   //BTX
00046 
00049   virtual void Accept();
00050   //ETX
00052 
00056   virtual void ResetInternal();
00057 
00059   virtual void Initialize();
00060 
00062 
00063   vtkGetObjectMacro(LabeledFrame, vtkKWFrameWithLabel);
00065 
00067 
00068   void SetLabel(const char* label);
00069   const char* GetLabel();
00071 
00073 
00074   void SetTimeValue(float time);
00075   vtkGetMacro(TimeValue, float);
00077 
00080   void SetTimeValueCallback(const char* item);
00081 
00082 //BTX
00084 
00087   vtkPVSelectTimeSet* ClonePrototype(vtkPVSource* pvSource,
00088                                  vtkArrayMap<vtkPVWidget*, vtkPVWidget*>* map);
00090 //ETX
00091 
00093   virtual void Trace(ofstream *file);
00094 
00096   virtual void SaveInBatchScript(ofstream *file);
00097 
00099   int GetNumberOfTimeSteps();
00100 protected:
00101   vtkPVSelectTimeSet();
00102   ~vtkPVSelectTimeSet();
00103 
00104   vtkPVSelectTimeSet(const vtkPVSelectTimeSet&); // Not implemented
00105   void operator=(const vtkPVSelectTimeSet&); // Not implemented
00106 
00107   void CommonReset();
00108 
00109   vtkSetStringMacro(FrameLabel);
00110   vtkGetStringMacro(FrameLabel);
00111 
00112   vtkKWTreeWithScrollbars* Tree;
00113   vtkKWLabel* TimeLabel;
00114   vtkKWFrameWithLabel* LabeledFrame;
00115 
00116   void AddRootNode(const char* name, const char* text);
00117   void AddChildNode(const char* parent, const char* name, 
00118                     const char* text, const char* data);
00119 
00120   float TimeValue;
00121   char* FrameLabel;
00122 
00123   vtkDataArrayCollection* TimeSets;
00124   vtkClientServerID ServerSideID;
00125 
00126   // Fill the TimeSets collection with that from the actual reader.
00127   void SetTimeSetsFromReader();
00128 
00129 //BTX
00130   virtual void CopyProperties(vtkPVWidget* clone, vtkPVSource* pvSource,
00131                               vtkArrayMap<vtkPVWidget*, vtkPVWidget*>* map);
00132 //ETX
00133   
00134   int ReadXMLAttributes(vtkPVXMLElement* element,
00135                         vtkPVXMLPackageParser* parser);
00136 
00138   virtual void SaveInBatchScriptForPart(ofstream *file, vtkClientServerID);
00139 
00140 };
00141 
00142 #endif

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