VTK  9.7.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
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 
22 VTK_ABI_NAMESPACE_BEGIN
23 class vtkDoubleArray;
24 
25 class VTKCOMMONMISC_EXPORT VTK_MARSHALAUTO vtkContourValues : public vtkObject
26 {
27 public:
31  static vtkContourValues* New();
32 
33  vtkTypeMacro(vtkContourValues, vtkObject);
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);
60  void SetContours(vtkDoubleArray*);
61 
67  void SetNumberOfContours(int number);
68 
72  int GetNumberOfContours();
73 
78  void GenerateValues(int numContours, double range[2]);
79 
84  void GenerateValues(int numContours, double rangeStart, double rangeEnd);
85 
89  void DeepCopy(vtkContourValues* other);
90 
91 protected:
93  ~vtkContourValues() override;
94 
96 
97 private:
98  vtkContourValues(const vtkContourValues&) = delete;
99  void operator=(const vtkContourValues&) = delete;
100 };
101 
102 VTK_ABI_NAMESPACE_END
103 #endif
helper object to manage setting and generating contour values
abstract base class for most VTK objects
Definition: vtkObject.h:52
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkDoubleArray * Contours
dynamic, self-adjusting array of double
a simple class to control print indentation
Definition: vtkIndent.h:28
#define VTK_MARSHALAUTO
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...