VTK  9.1.0
vtkContourValues.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkContourValues.h
5
6 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7 All rights reserved.
8 See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9
10 This software is distributed WITHOUT ANY WARRANTY; without even
11 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12 PURPOSE. See the above copyright notice for more information.
13
14=========================================================================*/
36#ifndef vtkContourValues_h
37#define vtkContourValues_h
38
39#include "vtkCommonMiscModule.h" // For export macro
40#include "vtkObject.h"
41
42class vtkDoubleArray;
43
44class VTKCOMMONMISC_EXPORT vtkContourValues : public vtkObject
45{
46public:
51
53 void PrintSelf(ostream& os, vtkIndent indent) override;
54
58 void SetValue(int i, double value);
59
64 double GetValue(int i);
65
70 double* GetValues();
71
76 void GetValues(double* contourValues);
77
83 void SetNumberOfContours(const int number);
84
89
94 void GenerateValues(int numContours, double range[2]);
95
100 void GenerateValues(int numContours, double rangeStart, double rangeEnd);
101
106
107protected:
110
112
113private:
114 vtkContourValues(const vtkContourValues&) = delete;
115 void operator=(const vtkContourValues&) = delete;
116};
117
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 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 SetNumberOfContours(const int number)
Set the number of contours to place into the list.
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:43
abstract base class for most VTK objects
Definition: vtkObject.h:63
@ value
Definition: vtkX3D.h:226
@ range
Definition: vtkX3D.h:244