VTK
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 =========================================================================*/
26 #ifndef vtkContourValues_h
27 #define vtkContourValues_h
28 
29 #include "vtkCommonMiscModule.h" // For export macro
30 #include "vtkObject.h"
31 
32 class vtkDoubleArray;
33 
35 {
36 public:
38  static vtkContourValues *New();
39 
41  void PrintSelf(ostream& os, vtkIndent indent);
42 
44  void SetValue(int i, double value);
45 
48  double GetValue(int i);
49 
52  double *GetValues();
53 
56  void GetValues(double *contourValues);
57 
61  void SetNumberOfContours(const int number);
62 
65 
68  void GenerateValues(int numContours, double range[2]);
69 
72  void GenerateValues(int numContours, double rangeStart, double rangeEnd);
73 
74 
75 protected:
78 
80 
81 private:
82  vtkContourValues(const vtkContourValues&); // Not implemented.
83  void operator=(const vtkContourValues&); // Not implemented.
84 };
85 
86 #endif
vtkContourValues::GetValues
double * GetValues()
vtkContourValues::GetNumberOfContours
int GetNumberOfContours()
vtkContourValues::New
static vtkContourValues * New()
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkObject
abstract base class for most VTK objects
Definition: vtkObject.h:62
vtkgl::range
GLenum GLint * range
Definition: vtkgl.h:14180
vtkContourValues::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
VTKCOMMONMISC_EXPORT
#define VTKCOMMONMISC_EXPORT
Definition: vtkCommonMiscModule.h:15
vtkContourValues::GenerateValues
void GenerateValues(int numContours, double rangeStart, double rangeEnd)
vtkContourValues::~vtkContourValues
~vtkContourValues()
vtkgl::value
GLsizei const GLfloat * value
Definition: vtkgl.h:12021
vtkContourValues
helper object to manage setting and generating contour values
Definition: vtkContourValues.h:35
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkContourValues::GenerateValues
void GenerateValues(int numContours, double range[2])
vtkContourValues::GetValue
double GetValue(int i)
vtkContourValues::SetValue
void SetValue(int i, double value)
vtkContourValues::vtkContourValues
vtkContourValues()
vtkObject.h
vtkContourValues::Contours
vtkDoubleArray * Contours
Definition: vtkContourValues.h:79
vtkDoubleArray
dynamic, self-adjusting array of double
Definition: vtkDoubleArray.h:49
vtkContourValues::GetValues
void GetValues(double *contourValues)
vtkContourValues::SetNumberOfContours
void SetNumberOfContours(const int number)
vtkCommonMiscModule.h