vtkSMDiscreteDoubleDomain.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ParaView
4  Module: vtkSMDiscreteDoubleDomain.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 =========================================================================*/
30 #ifndef vtkSMDiscreteDoubleDomain_h
31 #define vtkSMDiscreteDoubleDomain_h
32 
33 #include "vtkRemotingServerManagerModule.h" // needed for exports
34 #include "vtkSMDomain.h"
35 
36 #include <vector> // needed for std::vector
37 
39 {
40 public:
43  void PrintSelf(ostream& os, vtkIndent indent) override;
44 
51  int IsInDomain(vtkSMProperty* property) override;
52 
56  std::vector<double> GetValues();
57 
61  bool GetValuesExists();
62 
66  void Update(vtkSMProperty* property) override;
67 
68 protected:
70  ~vtkSMDiscreteDoubleDomain() override;
71 
75  int ReadXMLAttributes(vtkSMProperty* prop, vtkPVXMLElement* element) override;
76 
80  std::vector<double> Values;
81 
82 private:
84  void operator=(const vtkSMDiscreteDoubleDomain&) = delete;
85 };
86 
87 #endif
#define VTKREMOTINGSERVERMANAGER_EXPORT
virtual void Update(vtkSMProperty *requestingProperty)
Update self based on the "unchecked" values of all required properties.
superclass for all SM properties
represents the possible values a property can have
Definition: vtkSMDomain.h:49
void PrintSelf(ostream &os, vtkIndent indent) override
virtual int ReadXMLAttributes(vtkSMProperty *prop, vtkPVXMLElement *elem)
Set the appropriate ivars from the xml element.
virtual int IsInDomain(vtkSMProperty *vtkNotUsed(property))
Is the (unchecked) value of the property in the domain? Overwritten by sub-classes.
Definition: vtkSMDomain.h:76
static vtkSMDomain * New()
This is used by vtkPVXMLParser to represent an XML document starting at the root element.
std::vector< double > Values
A vector of allowed values for the domain.