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

Servers/ServerManager/vtkSMIdTypeVectorProperty.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   ParaView
00004   Module:    $RCSfile: vtkSMIdTypeVectorProperty.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 =========================================================================*/
00024 #ifndef __vtkSMIdTypeVectorProperty_h
00025 #define __vtkSMIdTypeVectorProperty_h
00026 
00027 #include "vtkSMVectorProperty.h"
00028 
00029 //BTX
00030 struct vtkSMIdTypeVectorPropertyInternals;
00031 //ETX
00032 
00033 class VTK_EXPORT vtkSMIdTypeVectorProperty : public vtkSMVectorProperty
00034 {
00035 public:
00036   static vtkSMIdTypeVectorProperty* New();
00037   vtkTypeRevisionMacro(vtkSMIdTypeVectorProperty, vtkSMVectorProperty);
00038   void PrintSelf(ostream& os, vtkIndent indent);
00039 
00041   virtual unsigned int GetNumberOfElements();
00042 
00045   virtual void SetNumberOfElements(unsigned int num);
00046 
00050   int SetElement(unsigned int idx, vtkIdType value);
00051 
00056   int SetElements(const vtkIdType* values);
00057 
00061   int SetElements1(vtkIdType value0);
00062 
00067   int SetElements2(vtkIdType value0, vtkIdType value1);
00068 
00073   int SetElements3(vtkIdType value0, vtkIdType value1, vtkIdType value2);
00074 
00076   vtkIdType GetElement(unsigned int idx);
00077 
00082   vtkIdType GetUncheckedElement(unsigned int idx);
00083 
00087   void SetUncheckedElement(unsigned int idx, vtkIdType value);
00088 
00092   virtual unsigned int GetNumberOfUncheckedElements();
00093 
00095 
00101   vtkGetMacro(ArgumentIsArray, int);
00102   vtkSetMacro(ArgumentIsArray, int);
00103   vtkBooleanMacro(ArgumentIsArray, int);
00105 
00107   virtual void Copy(vtkSMProperty* src);
00108 
00109 protected:
00110   vtkSMIdTypeVectorProperty();
00111   ~vtkSMIdTypeVectorProperty();
00112 
00113   virtual int ReadXMLAttributes(vtkSMProxy* parent, 
00114                                 vtkPVXMLElement* element);
00115 
00116   vtkSMIdTypeVectorPropertyInternals* Internals;
00117 
00118   int ArgumentIsArray;
00119 
00120   virtual void SaveState(const char* name, ostream* file, vtkIndent indent);
00121 
00125   virtual void SetNumberOfUncheckedElements(unsigned int num);
00126 
00127   //BTX  
00129 
00132   virtual void AppendCommandToStream(
00133     vtkSMProxy*, vtkClientServerStream* stream, vtkClientServerID objectId );
00134   //ETX
00136 
00137 private:
00138   vtkSMIdTypeVectorProperty(const vtkSMIdTypeVectorProperty&); // Not implemented
00139   void operator=(const vtkSMIdTypeVectorProperty&); // Not implemented
00140 };
00141 
00142 #endif

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