VTK  9.3.0
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
24 #ifndef vtkContourValues_h
25 #define vtkContourValues_h
26 
27 #include "vtkCommonMiscModule.h" // For export macro
28 #include "vtkObject.h"
29 
30 VTK_ABI_NAMESPACE_BEGIN
31 class vtkDoubleArray;
32 
33 class VTKCOMMONMISC_EXPORT vtkContourValues : public vtkObject
34 {
35 public:
39  static vtkContourValues* New();
40 
41  vtkTypeMacro(vtkContourValues, vtkObject);
42  void PrintSelf(ostream& os, vtkIndent indent) override;
43 
47  void SetValue(int i, double value);
48 
53  double GetValue(int i);
54 
59  double* GetValues();
60 
65  void GetValues(double* contourValues);
66 
72  void SetNumberOfContours(int number);
73 
78 
83  void GenerateValues(int numContours, double range[2]);
84 
89  void GenerateValues(int numContours, double rangeStart, double rangeEnd);
90 
94  void DeepCopy(vtkContourValues* other);
95 
96 protected:
98  ~vtkContourValues() override;
99 
101 
102 private:
103  vtkContourValues(const vtkContourValues&) = delete;
104  void operator=(const vtkContourValues&) = delete;
105 };
106 
107 VTK_ABI_NAMESPACE_END
108 #endif
helper object to manage setting and generating contour values
~vtkContourValues() override
static vtkContourValues * New()
Construct object with a single contour value at 0.0.
void DeepCopy(vtkContourValues *other)
Copy contours.
int GetNumberOfContours()
Return the number of contours in the.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void SetNumberOfContours(int number)
Set the number of contours to place into the list.
void GenerateValues(int numContours, double rangeStart, double rangeEnd)
Generate numContours equally spaced contour values between specified range.
vtkDoubleArray * Contours
void GenerateValues(int numContours, double range[2])
Generate numContours equally spaced contour values between specified range.
void SetValue(int i, double value)
Set the ith contour value.
double GetValue(int i)
Get the ith contour value.
void GetValues(double *contourValues)
Fill a supplied list with contour values.
double * GetValues()
Return a pointer to a list of contour values.
dynamic, self-adjusting array of double
a simple class to control print indentation
Definition: vtkIndent.h:38
abstract base class for most VTK objects
Definition: vtkObject.h:61
@ value
Definition: vtkX3D.h:220
@ range
Definition: vtkX3D.h:238