vtkSMFieldDataDomain.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ParaView
4  Module: vtkSMFieldDataDomain.h
5 
6  Copyright (c) Kitware, Inc.
7  All rights reserved.
8  See Copyright.txt or http://www.paraview.org/HTML/Copyright.html for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
55 #ifndef vtkSMFieldDataDomain_h
56 #define vtkSMFieldDataDomain_h
57 
58 #include "vtkRemotingServerManagerModule.h" //needed for exports
59 #include "vtkSMEnumerationDomain.h"
60 
62 
64 {
65 public:
66  static vtkSMFieldDataDomain* New();
68  void PrintSelf(ostream& os, vtkIndent indent) override;
69 
74  int SetDefaultValues(vtkSMProperty*, bool use_unchecked_values) override;
75 
80  static const char* GetAttributeTypeAsString(int attrType);
81 
86  static const char* GetElementTypeAsString(int attrType);
87 
92  void Update(vtkSMProperty* property) override;
93 
94 protected:
96  ~vtkSMFieldDataDomain() override;
97 
102  int ReadXMLAttributes(vtkSMProperty* prop, vtkPVXMLElement* elem) override;
103 
104  // When true, "Field Data" option is added to the domain.
106 
108 
109 private:
111  void operator=(const vtkSMFieldDataDomain&) = delete;
112 
113  int ComputeDefaultValue(int currentValue);
114 };
115 
116 #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.