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 =========================================================================*/
46 #ifndef vtkContourValues_h
47 #define vtkContourValues_h
48 
49 #include "vtkCommonMiscModule.h" // For export macro
50 #include "vtkObject.h"
51 
52 class vtkDoubleArray;
53 
54 class VTKCOMMONMISC_EXPORT vtkContourValues : public vtkObject
55 {
56 public:
60  static vtkContourValues* New();
61 
62  vtkTypeMacro(vtkContourValues, vtkObject);
63  void PrintSelf(ostream& os, vtkIndent indent) override;
64 
68  void SetValue(int i, double value);
69 
74  double GetValue(int i);
75 
80  double* GetValues();
81 
86  void GetValues(double* contourValues);
87 
93  void SetNumberOfContours(const int number);
94 
99 
104  void GenerateValues(int numContours, double range[2]);
105 
110  void GenerateValues(int numContours, double rangeStart, double rangeEnd);
111 
116 
117 protected:
119  ~vtkContourValues() override;
120 
122 
123 private:
124  vtkContourValues(const vtkContourValues&) = delete;
125  void operator=(const vtkContourValues&) = delete;
126 };
127 
128 #endif
vtkContourValues::GetValues
double * GetValues()
Return a pointer to a list of contour values.
vtkContourValues::GetNumberOfContours
int GetNumberOfContours()
Return the number of contours in the.
vtkContourValues::New
static vtkContourValues * New()
Construct object with a single contour value at 0.0.
vtkX3D::value
@ value
Definition: vtkX3D.h:226
vtkX3D::range
@ range
Definition: vtkX3D.h:244
vtkObject
abstract base class for most VTK objects
Definition: vtkObject.h:82
vtkContourValues::GenerateValues
void GenerateValues(int numContours, double rangeStart, double rangeEnd)
Generate numContours equally spaced contour values between specified range.
vtkContourValues::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkContourValues
helper object to manage setting and generating contour values
Definition: vtkContourValues.h:55
vtkContourValues::~vtkContourValues
~vtkContourValues() override
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:113
vtkContourValues::GenerateValues
void GenerateValues(int numContours, double range[2])
Generate numContours equally spaced contour values between specified range.
vtkContourValues::GetValue
double GetValue(int i)
Get the ith contour value.
vtkContourValues::SetValue
void SetValue(int i, double value)
Set the ith contour value.
vtkContourValues::vtkContourValues
vtkContourValues()
vtkObject.h
vtkContourValues::Contours
vtkDoubleArray * Contours
Definition: vtkContourValues.h:121
vtkContourValues::DeepCopy
void DeepCopy(vtkContourValues *other)
Copy contours.
vtkDoubleArray
dynamic, self-adjusting array of double
Definition: vtkDoubleArray.h:145
vtkContourValues::GetValues
void GetValues(double *contourValues)
Fill a supplied list with contour values.
vtkContourValues::SetNumberOfContours
void SetNumberOfContours(const int number)
Set the number of contours to place into the list.