VTK
|
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkContourValues.h 00005 00006 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen 00007 All rights reserved. 00008 See Copyright.txt or http://www.kitware.com/Copyright.htm for details. 00009 00010 This software is distributed WITHOUT ANY WARRANTY; without even 00011 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00012 PURPOSE. See the above copyright notice for more information. 00013 00014 =========================================================================*/ 00026 #ifndef __vtkContourValues_h 00027 #define __vtkContourValues_h 00028 00029 #include "vtkCommonMiscModule.h" // For export macro 00030 #include "vtkObject.h" 00031 00032 class vtkDoubleArray; 00033 00034 class VTKCOMMONMISC_EXPORT vtkContourValues : public vtkObject 00035 { 00036 public: 00038 static vtkContourValues *New(); 00039 00040 vtkTypeMacro(vtkContourValues,vtkObject); 00041 void PrintSelf(ostream& os, vtkIndent indent); 00042 00044 void SetValue(int i, double value); 00045 00048 double GetValue(int i); 00049 00052 double *GetValues(); 00053 00056 void GetValues(double *contourValues); 00057 00061 void SetNumberOfContours(const int number); 00062 00064 int GetNumberOfContours(); 00065 00068 void GenerateValues(int numContours, double range[2]); 00069 00072 void GenerateValues(int numContours, double rangeStart, double rangeEnd); 00073 00074 00075 protected: 00076 vtkContourValues(); 00077 ~vtkContourValues(); 00078 00079 vtkDoubleArray *Contours; 00080 00081 private: 00082 vtkContourValues(const vtkContourValues&); // Not implemented. 00083 void operator=(const vtkContourValues&); // Not implemented. 00084 }; 00085 00086 #endif