VTK  9.3.20240423
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
34#ifndef vtkContourValues_h
35#define vtkContourValues_h
36
37#include "vtkCommonMiscModule.h" // For export macro
38#include "vtkObject.h"
39
40VTK_ABI_NAMESPACE_BEGIN
41class vtkDoubleArray;
42
43class VTKCOMMONMISC_EXPORT vtkContourValues : public vtkObject
44{
45public:
50
52 void PrintSelf(ostream& os, vtkIndent indent) override;
53
57 void SetValue(int i, double value);
58
63 double GetValue(int i);
64
69 double* GetValues();
70
75 void GetValues(double* contourValues);
76
82 void SetNumberOfContours(int number);
83
88
93 void GenerateValues(int numContours, double range[2]);
94
99 void GenerateValues(int numContours, double rangeStart, double rangeEnd);
100
105
106protected:
109
111
112private:
113 vtkContourValues(const vtkContourValues&) = delete;
114 void operator=(const vtkContourValues&) = delete;
115};
116
117VTK_ABI_NAMESPACE_END
118#endif
helper object to manage setting and generating contour values
double * GetValues()
Return a pointer to a list of contour values.
~vtkContourValues() override
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.
static vtkContourValues * New()
Construct object with a single contour value at 0.0.
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.
dynamic, self-adjusting array of double
a simple class to control print indentation
Definition vtkIndent.h:108
abstract base class for most VTK objects
Definition vtkObject.h:162