vtkSMDataTypeDomain.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-License-Identifier: BSD-3-Clause
39 #ifndef vtkSMDataTypeDomain_h
40 #define vtkSMDataTypeDomain_h
41 
42 #include "vtkRemotingServerManagerModule.h" //needed for exports
43 #include "vtkSMDomain.h"
44 
45 #include <string> // for std::string
46 
47 class vtkSMSourceProxy;
48 
49 struct vtkSMDataTypeDomainInternals;
50 
52 {
53 public:
54  static vtkSMDataTypeDomain* New();
56  void PrintSelf(ostream& os, vtkIndent indent) override;
57 
64  int IsInDomain(vtkSMProperty* property) override;
65 
69  int IsInDomain(vtkSMSourceProxy* proxy, int outputport = 0);
70 
74  std::string GetDomainDescription() const;
75 
80  int ParseXMLAttributes(vtkPVXMLElement* element);
81 
82 protected:
84  ~vtkSMDataTypeDomain() override;
85 
90  int ReadXMLAttributes(vtkSMProperty* prop, vtkPVXMLElement* element) override;
91 
92 private:
94  void operator=(const vtkSMDataTypeDomain&) = delete;
95  bool CompositeDataSupported;
96  bool CompositeDataRequired;
97  vtkSMDataTypeDomainInternals* DTInternals;
98 };
99 
100 #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:37
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:64
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.