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 
53 class VTKREMOTINGSERVERMANAGER_EXPORT vtkSMFieldDataDomain : public vtkSMEnumerationDomain
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
vtkSMFieldDataDomain
enumeration domain to select array association or attribute type.
Definition: vtkSMFieldDataDomain.h:53
vtkSMEnumerationDomain::ReadXMLAttributes
int ReadXMLAttributes(vtkSMProperty *prop, vtkPVXMLElement *element) override
Set the appropriate ivars from the xml element.
vtkSMEnumerationDomain::New
static vtkSMEnumerationDomain * New()
vtkSMEnumerationDomain.h
vtkSMEnumerationDomain::Update
void Update(vtkSMProperty *property) override
Update self based on the "unchecked" values of all required properties.
vtkSMProperty
superclass for all SM properties
Definition: vtkSMProperty.h:144
vtkSMEnumerationDomain::SetDefaultValues
int SetDefaultValues(vtkSMProperty *, bool use_unchecked_values) override
Overridden to ensure that the property's default value is valid for the enumeration,...
vtkSMFieldDataDomain::UseElementTypes
bool UseElementTypes
Definition: vtkSMFieldDataDomain.h:97
vtkIndent
vtkSMEnumerationDomain::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
vtkPVDataInformation
provides meta data about a vtkDataObject subclass.
Definition: vtkPVDataInformation.h:42
vtkPVXMLElement
Definition: vtkPVXMLElement.h:23
vtkSMEnumerationDomain
list of integers with associated strings
Definition: vtkSMEnumerationDomain.h:67
vtkSMFieldDataDomain::EnableFieldDataSelection
bool EnableFieldDataSelection
Definition: vtkSMFieldDataDomain.h:95