vtkSMDiscreteDoubleDomain.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-License-Identifier: BSD-3-Clause
18 #ifndef vtkSMDiscreteDoubleDomain_h
19 #define vtkSMDiscreteDoubleDomain_h
20 
21 #include "vtkRemotingServerManagerModule.h" // needed for exports
22 #include "vtkSMDomain.h"
23 
24 #include <vector> // needed for std::vector
25 
27 {
28 public:
31  void PrintSelf(ostream& os, vtkIndent indent) override;
32 
39  int IsInDomain(vtkSMProperty* property) override;
40 
44  std::vector<double> GetValues();
45 
49  bool GetValuesExists();
50 
54  void Update(vtkSMProperty* property) override;
55 
56 protected:
58  ~vtkSMDiscreteDoubleDomain() override;
59 
63  int ReadXMLAttributes(vtkSMProperty* prop, vtkPVXMLElement* element) override;
64 
68  std::vector<double> Values;
69 
70 private:
72  void operator=(const vtkSMDiscreteDoubleDomain&) = delete;
73 };
74 
75 #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:37
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:64
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.