vtkSMDoubleRangeDomain.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-License-Identifier: BSD-3-Clause
12 #ifndef vtkSMDoubleRangeDomain_h
13 #define vtkSMDoubleRangeDomain_h
14 
15 // Tell the template header how to give our superclass a DLL interface.
16 #if !defined(vtkSMDoubleRangeDomain_cxx)
17 #define VTK_DATA_ARRAY_TEMPLATE_TYPE double
18 #endif
19 
20 #include "vtkRemotingServerManagerModule.h" //needed for exports
21 #include "vtkSMDomain.h"
22 #include "vtkSMRangeDomainTemplate.h" // Read superclass
23 
24 // Fake the superclass for the wrappers.
25 #ifndef __WRAP__
26 #define vtkSMDomain vtkSMRangeDomainTemplate<double>
27 #endif
29 #ifndef __WRAP__
30 #undef vtkSMDomain
31 #endif
32 {
33 public:
34  static vtkSMDoubleRangeDomain* New();
36  void PrintSelf(ostream& os, vtkIndent indent) override;
37 
43  virtual double GetMinimum(unsigned int idx, int& exists)
44  {
45  return this->RealSuperclass::GetMinimum(idx, exists);
46  }
47 
53  virtual double GetMaximum(unsigned int idx, int& exists)
54  {
55  return this->RealSuperclass::GetMaximum(idx, exists);
56  }
57 
61  virtual int GetMinimumExists(unsigned int idx)
62  {
63  return this->RealSuperclass::GetMinimumExists(idx) ? 1 : 0;
64  }
65  virtual int GetMaximumExists(unsigned int idx)
66  {
67  return this->RealSuperclass::GetMaximumExists(idx) ? 1 : 0;
68  }
69 
75  virtual double GetMinimum(unsigned int idx) { return this->RealSuperclass::GetMinimum(idx); }
76  virtual double GetMaximum(unsigned int idx) { return this->RealSuperclass::GetMaximum(idx); }
77 
81  virtual int GetResolution() { return this->RealSuperclass::GetResolution(); }
82 
83 protected:
85  ~vtkSMDoubleRangeDomain() override;
86 
87 private:
89  void operator=(const vtkSMDoubleRangeDomain&) = delete;
90 
92 };
93 
94 #if !defined(vtkSMDoubleRangeDomain_cxx)
95 #undef VTK_DATA_ARRAY_TEMPLATE_TYPE
96 #endif
97 
98 #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:37
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.