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 "vtkRemotingServerManagerModule.h" //needed for exports
36 #include "vtkSMDomain.h"
37 
38 class vtkSMSourceProxy;
39 
40 struct vtkSMDataTypeDomainInternals;
41 
42 class VTKREMOTINGSERVERMANAGER_EXPORT vtkSMDataTypeDomain : public vtkSMDomain
43 {
44 public:
45  static vtkSMDataTypeDomain* New();
47  void PrintSelf(ostream& os, vtkIndent indent) override;
48 
55  int IsInDomain(vtkSMProperty* property) override;
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:
74  ~vtkSMDataTypeDomain() override;
75 
80  int ReadXMLAttributes(vtkSMProperty* prop, vtkPVXMLElement* element) override;
81 
82  vtkSMDataTypeDomainInternals* DTInternals;
83 
85  vtkSetMacro(CompositeDataSupported, int);
86  vtkGetMacro(CompositeDataSupported, int);
87 
89  vtkSetMacro(CompositeDataRequired, int);
90  vtkGetMacro(CompositeDataRequired, int);
91 
92 private:
94  void operator=(const vtkSMDataTypeDomain&) = delete;
95 };
96 
97 #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:49
void PrintSelf(ostream &os, vtkIndent indent) override
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.
static vtkSMSessionObject * New()