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

Servers/ServerManager/vtkSMNumberOfPartsDomain.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   ParaView
00004   Module:    $RCSfile: vtkSMNumberOfPartsDomain.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 =========================================================================*/
00028 #ifndef __vtkSMNumberOfPartsDomain_h
00029 #define __vtkSMNumberOfPartsDomain_h
00030 
00031 #include "vtkSMDomain.h"
00032 
00033 class vtkSMSourceProxy;
00034 
00035 class VTK_EXPORT vtkSMNumberOfPartsDomain : public vtkSMDomain
00036 {
00037 public:
00038   static vtkSMNumberOfPartsDomain* New();
00039   vtkTypeRevisionMacro(vtkSMNumberOfPartsDomain, vtkSMDomain);
00040   void PrintSelf(ostream& os, vtkIndent indent);
00041 
00047   virtual int IsInDomain(vtkSMProperty* property);
00048 
00051   int IsInDomain(vtkSMSourceProxy* proxy);
00052 
00054 
00055   vtkSetMacro(PartMultiplicity, unsigned char);
00056   vtkGetMacro(PartMultiplicity, unsigned char);
00058 
00059 //BTX
00060   enum NumberOfParts
00061   {
00062     SINGLE = 0,
00063     MULTIPLE = 1
00064   };
00065 //ETX
00066 
00067 protected:
00068   vtkSMNumberOfPartsDomain();
00069   ~vtkSMNumberOfPartsDomain();
00070 
00073   virtual int ReadXMLAttributes(vtkSMProperty* prop, vtkPVXMLElement* element);
00074 
00075   virtual void SaveState(const char* name, ostream* file, vtkIndent indent);
00076 
00077   unsigned char PartMultiplicity;
00078 
00079 private:
00080   vtkSMNumberOfPartsDomain(const vtkSMNumberOfPartsDomain&); // Not implemented
00081   void operator=(const vtkSMNumberOfPartsDomain&); // Not implemented
00082 };
00083 
00084 #endif

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