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 
70  static const char* GetAttributeTypeAsString(int attrType);
71 
76  static const char* GetElementTypeAsString(int attrType);
77 
82  void Update(vtkSMProperty* property) override;
83 
84 protected:
86  ~vtkSMFieldDataDomain() override;
87 
92  int ReadXMLAttributes(vtkSMProperty* prop, vtkPVXMLElement* elem) override;
93 
94  // When true, "Field Data" option is added to the domain.
96 
98 
99 private:
101  void operator=(const vtkSMFieldDataDomain&) = delete;
102 
109  int ComputeDefaultValue(int originalDefaultValue);
110 };
111 
112 #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.