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

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 =========================================================================*/
00044 #ifndef __vtkContourValues_h
00045 #define __vtkContourValues_h
00046 
00047 #include "vtkObject.h"
00048 
00049 class vtkFloatArray;
00050 
00051 class VTK_COMMON_EXPORT vtkContourValues : public vtkObject
00052 {
00053 public:
00055   static vtkContourValues *New();
00056 
00057   vtkTypeRevisionMacro(vtkContourValues,vtkObject);
00058   void PrintSelf(ostream& os, vtkIndent indent);
00059 
00061   void SetValue(int i, float value);
00062 
00065   float GetValue(int i);
00066 
00069   float *GetValues();
00070 
00073   void GetValues(float *contourValues);
00074 
00078   void SetNumberOfContours(const int number);
00079 
00081   int GetNumberOfContours();
00082 
00085   void GenerateValues(int numContours, float range[2]);
00086 
00089   void GenerateValues(int numContours, float rangeStart, float rangeEnd);
00090 
00091 
00092 protected:
00093   vtkContourValues();
00094   ~vtkContourValues();
00095 
00096   vtkFloatArray *Contours;
00097 
00098 private:
00099   vtkContourValues(const vtkContourValues&);  // Not implemented.
00100   void operator=(const vtkContourValues&);  // Not implemented.
00101 };
00102 
00103 #endif