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

Servers/ServerManager/vtkSMEnumerationDomain.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   ParaView
00004   Module:    $RCSfile: vtkSMEnumerationDomain.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 =========================================================================*/
00029 #ifndef __vtkSMEnumerationDomain_h
00030 #define __vtkSMEnumerationDomain_h
00031 
00032 #include "vtkSMDomain.h"
00033 
00034 //BTX
00035 struct vtkSMEnumerationDomainInternals;
00036 //ETX
00037 
00038 class VTK_EXPORT vtkSMEnumerationDomain : public vtkSMDomain
00039 {
00040 public:
00041   static vtkSMEnumerationDomain* New();
00042   vtkTypeRevisionMacro(vtkSMEnumerationDomain, vtkSMDomain);
00043   void PrintSelf(ostream& os, vtkIndent indent);
00044 
00048   virtual int IsInDomain(vtkSMProperty* property);
00049 
00052   int IsInDomain(int val, unsigned int& idx);
00053 
00055   unsigned int GetNumberOfEntries();
00056 
00058   int GetEntryValue(unsigned int idx);
00059 
00061   const char* GetEntryText(unsigned int idx);
00062 
00064   void AddEntry(const char* text, int value);
00065 
00067   void RemoveAllEntries();
00068 
00069 protected:
00070   vtkSMEnumerationDomain();
00071   ~vtkSMEnumerationDomain();
00072 
00075   virtual int ReadXMLAttributes(vtkSMProperty* prop, vtkPVXMLElement* element);
00076 
00077   virtual void SaveState(const char* name, ostream* file, vtkIndent indent);
00078 
00079   vtkSMEnumerationDomainInternals* EInternals;
00080 
00081 private:
00082   vtkSMEnumerationDomain(const vtkSMEnumerationDomain&); // Not implemented
00083   void operator=(const vtkSMEnumerationDomain&); // Not implemented
00084 };
00085 
00086 #endif

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