vtkSMDoubleRangeDomain.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ParaView
4  Module: vtkSMDoubleRangeDomain.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 =========================================================================*/
24 #ifndef vtkSMDoubleRangeDomain_h
25 #define vtkSMDoubleRangeDomain_h
26 
27 // Tell the template header how to give our superclass a DLL interface.
28 #if !defined(vtkSMDoubleRangeDomain_cxx)
29 #define VTK_DATA_ARRAY_TEMPLATE_TYPE double
30 #endif
31 
32 #include "vtkRemotingServerManagerModule.h" //needed for exports
33 #include "vtkSMDomain.h"
34 #include "vtkSMRangeDomainTemplate.h" // Read superclass
35 
36 // Fake the superclass for the wrappers.
37 #ifndef __WRAP__
38 #define vtkSMDomain vtkSMRangeDomainTemplate<double>
39 #endif
41 #ifndef __WRAP__
42 #undef vtkSMDomain
43 #endif
44 {
45 public:
46  static vtkSMDoubleRangeDomain* New();
48  void PrintSelf(ostream& os, vtkIndent indent) override;
49 
55  virtual double GetMinimum(unsigned int idx, int& exists)
56  {
57  return this->RealSuperclass::GetMinimum(idx, exists);
58  }
59 
65  virtual double GetMaximum(unsigned int idx, int& exists)
66  {
67  return this->RealSuperclass::GetMaximum(idx, exists);
68  }
69 
73  virtual int GetMinimumExists(unsigned int idx)
74  {
75  return this->RealSuperclass::GetMinimumExists(idx) ? 1 : 0;
76  }
77  virtual int GetMaximumExists(unsigned int idx)
78  {
79  return this->RealSuperclass::GetMaximumExists(idx) ? 1 : 0;
80  }
81 
87  virtual double GetMinimum(unsigned int idx) { return this->RealSuperclass::GetMinimum(idx); }
88  virtual double GetMaximum(unsigned int idx) { return this->RealSuperclass::GetMaximum(idx); }
89 
93  virtual int GetResolution() { return this->RealSuperclass::GetResolution(); }
94 
95 protected:
97  ~vtkSMDoubleRangeDomain() override;
98 
99 private:
101  void operator=(const vtkSMDoubleRangeDomain&) = delete;
102 
104 };
105 
106 #if !defined(vtkSMDoubleRangeDomain_cxx)
107 #undef VTK_DATA_ARRAY_TEMPLATE_TYPE
108 #endif
109 
110 #endif
superclass for type-specific range domains i.e.
type specific extension to vtkSMRangeDomainTemplate for doubles.
virtual int GetMaximumExists(unsigned int idx)
#define VTKREMOTINGSERVERMANAGER_EXPORT
virtual int GetMinimumExists(unsigned int idx)
Returns if minimum/maximum bound is set for the domain.
virtual int GetResolution()
Returns the resolution.
represents the possible values a property can have
Definition: vtkSMDomain.h:49
void PrintSelf(ostream &os, vtkIndent indent) override
virtual double GetMaximum(unsigned int idx, int &exists)
Return a max.
virtual double GetMinimum(unsigned int idx)
Returns the minimum/maximum value, is exists, otherwise 0 is returned.
virtual double GetMaximum(unsigned int idx)
static vtkSMDomain * New()
virtual double GetMinimum(unsigned int idx, int &exists)
Return a min.