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