VTK  9.3.1
vtkContourValues.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
15 #ifndef vtkContourValues_h
16 #define vtkContourValues_h
17 
18 #include "vtkCommonMiscModule.h" // For export macro
19 #include "vtkObject.h"
20 
21 VTK_ABI_NAMESPACE_BEGIN
22 class vtkDoubleArray;
23 
24 class VTKCOMMONMISC_EXPORT vtkContourValues : public vtkObject
25 {
26 public:
30  static vtkContourValues* New();
31 
32  vtkTypeMacro(vtkContourValues, vtkObject);
33  void PrintSelf(ostream& os, vtkIndent indent) override;
34 
38  void SetValue(int i, double value);
39 
44  double GetValue(int i);
45 
50  double* GetValues();
51 
56  void GetValues(double* contourValues);
57 
63  void SetNumberOfContours(int number);
64 
68  int GetNumberOfContours();
69 
74  void GenerateValues(int numContours, double range[2]);
75 
80  void GenerateValues(int numContours, double rangeStart, double rangeEnd);
81 
85  void DeepCopy(vtkContourValues* other);
86 
87 protected:
89  ~vtkContourValues() override;
90 
92 
93 private:
94  vtkContourValues(const vtkContourValues&) = delete;
95  void operator=(const vtkContourValues&) = delete;
96 };
97 
98 VTK_ABI_NAMESPACE_END
99 #endif
helper object to manage setting and generating contour values
abstract base class for most VTK objects
Definition: vtkObject.h:51
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkDoubleArray * Contours
dynamic, self-adjusting array of double
a simple class to control print indentation
Definition: vtkIndent.h:28
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...