vtkSMFieldDataDomain.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-License-Identifier: BSD-3-Clause
45 #ifndef vtkSMFieldDataDomain_h
46 #define vtkSMFieldDataDomain_h
47 
48 #include "vtkRemotingServerManagerModule.h" //needed for exports
49 #include "vtkSMEnumerationDomain.h"
50 
52 
54 {
55 public:
56  static vtkSMFieldDataDomain* New();
58  void PrintSelf(ostream& os, vtkIndent indent) override;
59 
64  int SetDefaultValues(vtkSMProperty*, bool use_unchecked_values) override;
65 
67 
71  static std::string GetAttributeTypeAsString(vtkPVDataInformation* dataInfo, int attrType);
72  static const char* GetAttributeTypeAsString(int attrType);
74 
76 
80  static std::string GetElementTypeAsString(vtkPVDataInformation* dataInfo, int attrType);
81  static const char* GetElementTypeAsString(int attrType);
83 
88  void Update(vtkSMProperty* property) override;
89 
90 protected:
92  ~vtkSMFieldDataDomain() override;
93 
98  int ReadXMLAttributes(vtkSMProperty* prop, vtkPVXMLElement* elem) override;
99 
100  // When true, "Field Data" option is added to the domain.
102 
104 
105 private:
107  void operator=(const vtkSMFieldDataDomain&) = delete;
108 
115  int ComputeDefaultValue(int originalDefaultValue);
116 };
117 
118 #endif
int SetDefaultValues(vtkSMProperty *, bool use_unchecked_values) override
Overridden to ensure that the property's default value is valid for the enumeration, if not it will be set to the first enumeration value.
void PrintSelf(ostream &os, vtkIndent indent) override
provides meta data about a vtkDataObject subclass.
#define VTKREMOTINGSERVERMANAGER_EXPORT
superclass for all SM properties
list of integers with associated strings
enumeration domain to select array association or attribute type.
int ReadXMLAttributes(vtkSMProperty *prop, vtkPVXMLElement *element) override
Set the appropriate ivars from the xml element.
static vtkSMEnumerationDomain * New()
This is used by vtkPVXMLParser to represent an XML document starting at the root element.
void Update(vtkSMProperty *property) override
Update self based on the "unchecked" values of all required properties.