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 
40  vtkTypeMacro(vtkContourValues,vtkObject);
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 
64  int GetNumberOfContours();
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
helper object to manage setting and generating contour values
abstract base class for most VTK objects
Definition: vtkObject.h:61
#define VTKCOMMONMISC_EXPORT
vtkDoubleArray * Contours
dynamic, self-adjusting array of double
virtual void PrintSelf(ostream &os, vtkIndent indent)
a simple class to control print indentation
Definition: vtkIndent.h:38
static vtkObject * New()