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 =========================================================================*/
49 #ifndef vtkSMFieldDataDomain_h
50 #define vtkSMFieldDataDomain_h
51 
52 #include "vtkRemotingServerManagerModule.h" //needed for exports
53 #include "vtkSMEnumerationDomain.h"
54 
56 
58 {
59 public:
60  static vtkSMFieldDataDomain* New();
62  void PrintSelf(ostream& os, vtkIndent indent) override;
63 
68  int SetDefaultValues(vtkSMProperty*, bool use_unchecked_values) override;
69 
74  static const char* GetAttributeTypeAsString(int attrType);
75 
80  void Update(vtkSMProperty* property) override;
81 
82 protected:
84  ~vtkSMFieldDataDomain() override;
85 
90  int ReadXMLAttributes(vtkSMProperty* prop, vtkPVXMLElement* elem) override;
91 
92  // When true, "Field Data" option is added to the domain.
94 
95 private:
97  void operator=(const vtkSMFieldDataDomain&) = delete;
98 
99  int ComputeDefaultValue(int currentValue);
100 };
101 
102 #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
Light object for holding data information.
#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.