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 "vtkObject.h" 00030 00031 class vtkDoubleArray; 00032 00033 class VTK_COMMON_EXPORT vtkContourValues : public vtkObject 00034 { 00035 public: 00037 static vtkContourValues *New(); 00038 00039 vtkTypeMacro(vtkContourValues,vtkObject); 00040 void PrintSelf(ostream& os, vtkIndent indent); 00041 00043 void SetValue(int i, double value); 00044 00047 double GetValue(int i); 00048 00051 double *GetValues(); 00052 00055 void GetValues(double *contourValues); 00056 00060 void SetNumberOfContours(const int number); 00061 00063 int GetNumberOfContours(); 00064 00067 void GenerateValues(int numContours, double range[2]); 00068 00071 void GenerateValues(int numContours, double rangeStart, double rangeEnd); 00072 00073 00074 protected: 00075 vtkContourValues(); 00076 ~vtkContourValues(); 00077 00078 vtkDoubleArray *Contours; 00079 00080 private: 00081 vtkContourValues(const vtkContourValues&); // Not implemented. 00082 void operator=(const vtkContourValues&); // Not implemented. 00083 }; 00084 00085 #endif