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 =========================================================================*/
51 #ifndef vtkSMDataTypeDomain_h
52 #define vtkSMDataTypeDomain_h
53 
54 #include "vtkRemotingServerManagerModule.h" //needed for exports
55 #include "vtkSMDomain.h"
56 
57 #include <string> // for std::string
58 
59 class vtkSMSourceProxy;
60 
61 struct vtkSMDataTypeDomainInternals;
62 
64 {
65 public:
66  static vtkSMDataTypeDomain* New();
68  void PrintSelf(ostream& os, vtkIndent indent) override;
69 
76  int IsInDomain(vtkSMProperty* property) override;
77 
81  int IsInDomain(vtkSMSourceProxy* proxy, int outputport = 0);
82 
86  std::string GetDomainDescription() const;
87 
88 protected:
90  ~vtkSMDataTypeDomain() override;
91 
96  int ReadXMLAttributes(vtkSMProperty* prop, vtkPVXMLElement* element) override;
97 
98 private:
100  void operator=(const vtkSMDataTypeDomain&) = delete;
101  bool CompositeDataSupported;
102  bool CompositeDataRequired;
103  vtkSMDataTypeDomainInternals* DTInternals;
104 };
105 
106 #endif
restricts the input proxies to one or more data types
#define VTKREMOTINGSERVERMANAGER_EXPORT
superclass for all SM properties
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.
virtual int IsInDomain(vtkSMProperty *vtkNotUsed(property))
Is the (unchecked) value of the property in the domain? Overwritten by sub-classes.
Definition: vtkSMDomain.h:76
proxy for a VTK source on a server
static vtkSMDomain * New()
This is used by vtkPVXMLParser to represent an XML document starting at the root element.