ParaView
vtkSMDataTypeDomain.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ParaView
4  Module: vtkSMDataTypeDomain.h
5 
6  Copyright (c) Kitware, Inc.
7  All rights reserved.
8  See Copyright.txt or http://www.paraview.org/HTML/Copyright.html for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
32 #ifndef vtkSMDataTypeDomain_h
33 #define vtkSMDataTypeDomain_h
34 
35 #include "vtkPVServerManagerCoreModule.h" //needed for exports
36 #include "vtkSMDomain.h"
37 
38 class vtkSMSourceProxy;
39 
40 struct vtkSMDataTypeDomainInternals;
41 
42 class VTKPVSERVERMANAGERCORE_EXPORT vtkSMDataTypeDomain : public vtkSMDomain
43 {
44 public:
45  static vtkSMDataTypeDomain* New();
47  void PrintSelf(ostream& os, vtkIndent indent);
48 
55  virtual int IsInDomain(vtkSMProperty* property);
56 
60  int IsInDomain(vtkSMSourceProxy* proxy, int outputport = 0);
61 
65  unsigned int GetNumberOfDataTypes();
66 
70  const char* GetDataType(unsigned int idx);
71 
72 protected:
75 
80  virtual int ReadXMLAttributes(vtkSMProperty* prop, vtkPVXMLElement* element);
81 
82  vtkSMDataTypeDomainInternals* DTInternals;
83 
85  vtkSetMacro(CompositeDataSupported, int);
86  vtkGetMacro(CompositeDataSupported, int);
87 
88 private:
89  vtkSMDataTypeDomain(const vtkSMDataTypeDomain&) VTK_DELETE_FUNCTION;
90  void operator=(const vtkSMDataTypeDomain&) VTK_DELETE_FUNCTION;
91 };
92 
93 #endif
restricts the input proxies to one or more data types
virtual int IsInDomain(vtkSMProperty *property)=0
Is the (unchecked) value of the property in the domain? Overwritten by sub-classes.
superclass for all SM properties
vtkSMDataTypeDomainInternals * DTInternals
represents the possible values a property can have
Definition: vtkSMDomain.h:48
virtual int ReadXMLAttributes(vtkSMProperty *prop, vtkPVXMLElement *elem)
Set the appropriate ivars from the xml element.
proxy for a VTK source on a server
This is used by vtkPVXMLParser to represent an XML document starting at the root element.
void PrintSelf(ostream &os, vtkIndent indent)
static vtkSMSessionObject * New()