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 
51 class VTKREMOTINGSERVERMANAGER_EXPORT vtkSMDataTypeDomain : public vtkSMDomain
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
vtkSMDomain::ReadXMLAttributes
virtual int ReadXMLAttributes(vtkSMProperty *prop, vtkPVXMLElement *elem)
Set the appropriate ivars from the xml element.
vtkSMDomain::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
vtkSMProperty
superclass for all SM properties
Definition: vtkSMProperty.h:144
vtkSMSourceProxy
proxy for a VTK source on a server
Definition: vtkSMSourceProxy.h:37
vtkIndent
vtkSMDomain
represents the possible values a property can have
Definition: vtkSMDomain.h:37
vtkSMDomain::New
static vtkSMDomain * New()
vtkPVXMLElement
Definition: vtkPVXMLElement.h:23
vtkSMDomain::IsInDomain
virtual int IsInDomain(vtkSMProperty *vtkNotUsed(property))
Is the (unchecked) value of the property in the domain? Overwritten by sub-classes.
Definition: vtkSMDomain.h:64
vtkSMDataTypeDomain
restricts the input proxies to one or more data types
Definition: vtkSMDataTypeDomain.h:51
vtkSMDomain.h