Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

dox/Common/vtkContourValues.h

Go to the documentation of this file.
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: $RCSfile: vtkContourValues.h,v $ 00005 Language: C++ 00006 00007 Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen 00008 All rights reserved. 00009 See Copyright.txt or http://www.kitware.com/Copyright.htm for details. 00010 00011 This software is distributed WITHOUT ANY WARRANTY; without even 00012 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00013 PURPOSE. See the above copyright notice for more information. 00014 00015 =========================================================================*/ 00030 #ifndef __vtkContourValues_h 00031 #define __vtkContourValues_h 00032 00033 #include "vtkObject.h" 00034 00035 class vtkFloatArray; 00036 00037 class VTK_COMMON_EXPORT vtkContourValues : public vtkObject 00038 { 00039 public: 00041 static vtkContourValues *New(); 00042 00043 vtkTypeRevisionMacro(vtkContourValues,vtkObject); 00044 void PrintSelf(ostream& os, vtkIndent indent); 00045 00047 void SetValue(int i, float value); 00048 00051 float GetValue(int i); 00052 00055 float *GetValues(); 00056 00059 void GetValues(float *contourValues); 00060 00064 void SetNumberOfContours(const int number); 00065 00067 int GetNumberOfContours(); 00068 00071 void GenerateValues(int numContours, float range[2]); 00072 00075 void GenerateValues(int numContours, float rangeStart, float rangeEnd); 00076 00077 00078 protected: 00079 vtkContourValues(); 00080 ~vtkContourValues(); 00081 00082 vtkFloatArray *Contours; 00083 00084 private: 00085 vtkContourValues(const vtkContourValues&); // Not implemented. 00086 void operator=(const vtkContourValues&); // Not implemented. 00087 }; 00088 00089 #endif