vtkSMRangedTransferFunctionDomain.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ParaView
4  Module: vtkSMRangedTransferFunctionDomain.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 =========================================================================*/
34 #ifndef vtkSMRangedTransferFunctionDomain_h
35 #define vtkSMRangedTransferFunctionDomain_h
36 
37 #include "vtkClientServerID.h" // needed for saving animation in batch script
38 #include "vtkRemotingViewsModule.h" //needed for exports
39 #include "vtkSMProxyListDomain.h"
40 
41 class vtkSMRangedTransferFunctionDomainInternals;
42 
44 {
45 public:
48  void PrintSelf(ostream& os, vtkIndent indent) override;
49 
55  double GetRangeMinimum(unsigned int idx, int& exists);
56 
62  double GetRangeMaximum(unsigned int idx, int& exists);
63 
65 
68  bool GetRangeMinimumExists(unsigned int idx);
69  bool GetRangeMaximumExists(unsigned int idx);
71 
73 
78  double GetRangeMinimum(unsigned int idx)
79  {
80  int not_used;
81  return this->GetRangeMinimum(idx, not_used);
82  }
83  double GetRangeMaximum(unsigned int idx)
84  {
85  int not_used;
86  return this->GetRangeMaximum(idx, not_used);
87  }
89 
94  int SetDefaultValues(vtkSMProperty* prop, bool use_unchecked_values) override;
95 
96 protected:
99 
104  int ReadXMLAttributes(vtkSMProperty* prop, vtkPVXMLElement* element) override;
105 
109  void InvokeDomainModifiedEvent();
110 
111 private:
113  void operator=(const vtkSMRangedTransferFunctionDomain&) = delete;
114 
115  vtkSMRangedTransferFunctionDomainInternals* Internals;
116 };
117 
118 #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.