vtkSMRangedTransferFunctionDomain.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-License-Identifier: BSD-3-Clause
22 #ifndef vtkSMRangedTransferFunctionDomain_h
23 #define vtkSMRangedTransferFunctionDomain_h
24 
25 #include "vtkClientServerID.h" // needed for saving animation in batch script
26 #include "vtkRemotingViewsModule.h" //needed for exports
27 #include "vtkSMProxyListDomain.h"
28 
29 class vtkSMRangedTransferFunctionDomainInternals;
30 
32 {
33 public:
36  void PrintSelf(ostream& os, vtkIndent indent) override;
37 
43  double GetRangeMinimum(unsigned int idx, int& exists);
44 
50  double GetRangeMaximum(unsigned int idx, int& exists);
51 
53 
56  bool GetRangeMinimumExists(unsigned int idx);
57  bool GetRangeMaximumExists(unsigned int idx);
59 
61 
66  double GetRangeMinimum(unsigned int idx)
67  {
68  int not_used;
69  return this->GetRangeMinimum(idx, not_used);
70  }
71  double GetRangeMaximum(unsigned int idx)
72  {
73  int not_used;
74  return this->GetRangeMaximum(idx, not_used);
75  }
77 
82  int SetDefaultValues(vtkSMProperty* prop, bool use_unchecked_values) override;
83 
84 protected:
87 
92  int ReadXMLAttributes(vtkSMProperty* prop, vtkPVXMLElement* element) override;
93 
97  void InvokeDomainModifiedEvent();
98 
99 private:
101  void operator=(const vtkSMRangedTransferFunctionDomain&) = delete;
102 
103  vtkSMRangedTransferFunctionDomainInternals* Internals;
104 };
105 
106 #endif
#define VTKREMOTINGVIEWS_EXPORT
double GetRangeMaximum(unsigned int idx)
Returns the range minimum/maximum value, is exists, otherwise 0 is returned.
int SetDefaultValues(vtkSMProperty *prop, bool use_unchecked_values) override
A vtkSMProperty is often defined with a default value in the XML itself.
superclass for all SM properties
represents a ranged vtkSMTransferFunctionProxy
static vtkSMProxyListDomain * New()
int ReadXMLAttributes(vtkSMProperty *prop, vtkPVXMLElement *element) override
Set the appropriate ivars from the xml element.
union of proxies.
void PrintSelf(ostream &os, vtkIndent indent) override
This is used by vtkPVXMLParser to represent an XML document starting at the root element.
double GetRangeMinimum(unsigned int idx)
Returns the range minimum/maximum value, is exists, otherwise 0 is returned.