ParaView
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 =========================================================================*/
42 #ifndef vtkSMFieldDataDomain_h
43 #define vtkSMFieldDataDomain_h
44 
45 #include "vtkPVServerManagerCoreModule.h" //needed for exports
46 #include "vtkSMEnumerationDomain.h"
47 
49 
50 class VTKPVSERVERMANAGERCORE_EXPORT vtkSMFieldDataDomain : public vtkSMEnumerationDomain
51 {
52 public:
53  static vtkSMFieldDataDomain* New();
55  void PrintSelf(ostream& os, vtkIndent indent);
56 
62  virtual void Update(vtkSMProperty* prop);
63 
68  virtual int SetDefaultValues(vtkSMProperty*, bool use_unchecked_values);
69 
70 protected:
73 
78  virtual int ReadXMLAttributes(vtkSMProperty* prop, vtkPVXMLElement* elem);
79 
80  // When true, "Field Data" option is added to the domain.
82 
83  // When true, we don't update the available list of attributes based on what's
84  // actually available in the input (false by default).
86 
87  // When true, "Point Data" and "Cell Data" is included to the domain even
88  // if they don't have any properties. This is used by the spreadsheet
89  // view.( false by default )
91 
92 private:
93  // Used by SetDefaultValues.
94  int DefaultValue;
95 
99  void UpdateDomainEntries(int acceptable_association, vtkPVDataInformation* dataInfo);
100 
101  vtkSMFieldDataDomain(const vtkSMFieldDataDomain&) VTK_DELETE_FUNCTION;
102  void operator=(const vtkSMFieldDataDomain&) VTK_DELETE_FUNCTION;
103 };
104 
105 #endif
void PrintSelf(ostream &os, vtkIndent indent)
virtual int ReadXMLAttributes(vtkSMProperty *prop, vtkPVXMLElement *element)
Set the appropriate ivars from the xml element.
Light object for holding data information.
virtual int SetDefaultValues(vtkSMProperty *, bool use_unchecked_values)
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.
superclass for all SM properties
virtual void Update(vtkSMProperty *property)
Update self based on the "unchecked" values of all required properties.
list of integers with associated strings
enumeration with point and cell data entries
static vtkSMEnumerationDomain * New()
This is used by vtkPVXMLParser to represent an XML document starting at the root element.