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 
26 class VTKREMOTINGSERVERMANAGER_EXPORT vtkSMDiscreteDoubleDomain : public vtkSMDomain
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
vtkSMDomain::ReadXMLAttributes
virtual int ReadXMLAttributes(vtkSMProperty *prop, vtkPVXMLElement *elem)
Set the appropriate ivars from the xml element.
vtkSMDomain::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
vtkSMProperty
superclass for all SM properties
Definition: vtkSMProperty.h:144
vtkSMDomain::Update
virtual void Update(vtkSMProperty *requestingProperty)
Update self based on the "unchecked" values of all required properties.
vtkIndent
vtkSMDomain
represents the possible values a property can have
Definition: vtkSMDomain.h:37
vtkSMDomain::New
static vtkSMDomain * New()
vtkSMDiscreteDoubleDomain
set of double
Definition: vtkSMDiscreteDoubleDomain.h:26
vtkSMDiscreteDoubleDomain::Values
std::vector< double > Values
A vector of allowed values for the domain.
Definition: vtkSMDiscreteDoubleDomain.h:68
vtkPVXMLElement
Definition: vtkPVXMLElement.h:23
vtkSMDomain::IsInDomain
virtual int IsInDomain(vtkSMProperty *vtkNotUsed(property))
Is the (unchecked) value of the property in the domain? Overwritten by sub-classes.
Definition: vtkSMDomain.h:64
vtkSMDomain.h