VTK  9.6.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
14
15#ifndef vtkContourValues_h
16#define vtkContourValues_h
17
18#include "vtkCommonMiscModule.h" // For export macro
19#include "vtkObject.h"
20#include "vtkWrappingHints.h"
21
22VTK_ABI_NAMESPACE_BEGIN
23class vtkDoubleArray;
24
25class VTKCOMMONMISC_EXPORT VTK_MARSHALAUTO vtkContourValues : public vtkObject
26{
27public:
32
34 void PrintSelf(ostream& os, vtkIndent indent) override;
35
39 void SetValue(int i, double value);
40
45 double GetValue(int i);
46
51 double* GetValues();
52
57 void GetValues(double* contourValues);
58
59 vtkGetObjectMacro(Contours, vtkDoubleArray);
61
67 void SetNumberOfContours(int number);
68
73
78 void GenerateValues(int numContours, double range[2]);
79
84 void GenerateValues(int numContours, double rangeStart, double rangeEnd);
85
90
91protected:
94
96
97private:
98 vtkContourValues(const vtkContourValues&) = delete;
99 void operator=(const vtkContourValues&) = delete;
100};
101
102VTK_ABI_NAMESPACE_END
103#endif
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.
void SetContours(vtkDoubleArray *)
dynamic, self-adjusting array of double
a simple class to control print indentation
Definition vtkIndent.h:29
#define VTK_MARSHALAUTO