vtkSMIntRangeDomain.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-License-Identifier: BSD-3-Clause
12 #ifndef vtkSMIntRangeDomain_h
13 #define vtkSMIntRangeDomain_h
14 
15 // Tell the template header how to give our superclass a DLL interface.
16 #if !defined(vtkSMIntRangeDomain_cxx)
17 #define VTK_DATA_ARRAY_TEMPLATE_TYPE int
18 #endif
19 
20 #include "vtkRemotingServerManagerModule.h" //needed for exports
21 #include "vtkSMDomain.h"
22 #include "vtkSMRangeDomainTemplate.h" // Read superclass
23 
24 #ifndef __WRAP__
25 #define vtkSMDomain vtkSMRangeDomainTemplate<int>
26 #endif
28 #ifndef __WRAP__
29 #undef vtkSMDomain
30 #endif
31 {
32 public:
33  static vtkSMIntRangeDomain* New();
35  void PrintSelf(ostream& os, vtkIndent indent) override;
36 
42  virtual int GetMinimum(unsigned int idx, int& exists)
43  {
44  return this->RealSuperclass::GetMinimum(idx, exists);
45  }
46 
52  virtual int GetMaximum(unsigned int idx, int& exists)
53  {
54  return this->RealSuperclass::GetMaximum(idx, exists);
55  }
56 
60  virtual int GetMinimumExists(unsigned int idx)
61  {
62  return this->RealSuperclass::GetMinimumExists(idx) ? 1 : 0;
63  }
64  virtual int GetMaximumExists(unsigned int idx)
65  {
66  return this->RealSuperclass::GetMaximumExists(idx) ? 1 : 0;
67  }
68 
74  virtual int GetMinimum(unsigned int idx) { return this->RealSuperclass::GetMinimum(idx); }
75  virtual int GetMaximum(unsigned int idx) { return this->RealSuperclass::GetMaximum(idx); }
76 
77 protected:
79  ~vtkSMIntRangeDomain() override;
80 
81 private:
83  void operator=(const vtkSMIntRangeDomain&) = delete;
84 
86 };
87 
88 #if !defined(vtkSMIntRangeDomain_cxx)
89 #undef VTK_DATA_ARRAY_TEMPLATE_TYPE
90 #endif
91 
92 #endif
superclass for type-specific range domains i.e.
type specific extension to vtkSMRangeDomainTemplate for ints.
virtual int GetMaximum(unsigned int idx, int &exists)
Return a max.
#define VTKREMOTINGSERVERMANAGER_EXPORT
virtual int GetMinimumExists(unsigned int idx)
Returns if minimum/maximum bound is set for the domain.
virtual int GetMaximumExists(unsigned int idx)
virtual int GetMinimum(unsigned int idx, int &exists)
Return a min.
virtual int GetMaximum(unsigned int idx)
represents the possible values a property can have
Definition: vtkSMDomain.h:37
void PrintSelf(ostream &os, vtkIndent indent) override
virtual int GetMinimum(unsigned int idx)
Returns the minimum/maximum value, is exists, otherwise 0 is returned.
static vtkSMDomain * New()