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

vtkContourValues.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkContourValues.h,v $
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 =========================================================================*/
00043 #ifndef __vtkContourValues_h
00044 #define __vtkContourValues_h
00045 
00046 #include "vtkObject.h"
00047 
00048 class vtkDoubleArray;
00049 
00050 class VTK_COMMON_EXPORT vtkContourValues : public vtkObject
00051 {
00052 public:
00054   static vtkContourValues *New();
00055 
00056   vtkTypeRevisionMacro(vtkContourValues,vtkObject);
00057   void PrintSelf(ostream& os, vtkIndent indent);
00058 
00060   void SetValue(int i, double value);
00061 
00064   double GetValue(int i);
00065 
00068   double *GetValues();
00069 
00072   void GetValues(double *contourValues);
00073 
00077   void SetNumberOfContours(const int number);
00078 
00080   int GetNumberOfContours();
00081 
00084   void GenerateValues(int numContours, double range[2]);
00085 
00088   void GenerateValues(int numContours, double rangeStart, double rangeEnd);
00089 
00090 
00091 protected:
00092   vtkContourValues();
00093   ~vtkContourValues();
00094 
00095   vtkDoubleArray *Contours;
00096 
00097 private:
00098   vtkContourValues(const vtkContourValues&);  // Not implemented.
00099   void operator=(const vtkContourValues&);  // Not implemented.
00100 };
00101 
00102 #endif