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 "vtkObject.h"
30 
31 class vtkDoubleArray;
32 
34 {
35 public:
37  static vtkContourValues *New();
38 
39  vtkTypeMacro(vtkContourValues,vtkObject);
40  void PrintSelf(ostream& os, vtkIndent indent);
41 
43  void SetValue(int i, double value);
44 
47  double GetValue(int i);
48 
51  double *GetValues();
52 
55  void GetValues(double *contourValues);
56 
60  void SetNumberOfContours(const int number);
61 
63  int GetNumberOfContours();
64 
67  void GenerateValues(int numContours, double range[2]);
68 
71  void GenerateValues(int numContours, double rangeStart, double rangeEnd);
72 
73 
74 protected:
77 
79 
80 private:
81  vtkContourValues(const vtkContourValues&); // Not implemented.
82  void operator=(const vtkContourValues&); // Not implemented.
83 };
84 
85 #endif
helper object to manage setting and generating contour values
abstract base class for most VTK objects
Definition: vtkObject.h:60
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:37
#define VTK_COMMON_EXPORT
static vtkObject * New()