VTK
vtkPlanes.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkPlanes.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
43 #ifndef vtkPlanes_h
44 #define vtkPlanes_h
45 
46 #include "vtkCommonDataModelModule.h" // For export macro
47 #include "vtkImplicitFunction.h"
48 
49 class vtkPlane;
50 class vtkPoints;
51 class vtkDataArray;
52 
54 {
55 public:
56  static vtkPlanes *New();
58  void PrintSelf(ostream& os, vtkIndent indent);
59 
61 
62  double EvaluateFunction(double x[3]);
63  double EvaluateFunction(double x, double y, double z)
64  {return this->vtkImplicitFunction::EvaluateFunction(x, y, z); } ;
66 
68  void EvaluateGradient(double x[3], double n[3]);
69 
71 
73  virtual void SetPoints(vtkPoints*);
76 
78 
80  void SetNormals(vtkDataArray* normals);
83 
86  void SetFrustumPlanes(double planes[24]);
87 
89 
93  void SetBounds(const double bounds[6]);
94  void SetBounds(double xmin, double xmax, double ymin, double ymax,
95  double zmin, double zmax);
97 
100 
102 
107  void GetPlane(int i, vtkPlane *plane);
109 
110 protected:
113 
117 
118 private:
119  double Planes[24];
120  double Bounds[6];
121 
122 private:
123  vtkPlanes(const vtkPlanes&); // Not implemented.
124  void operator=(const vtkPlanes&); // Not implemented.
125 };
126 
127 #endif
128 
129 
vtkPlanes::SetNormals
void SetNormals(vtkDataArray *normals)
vtkPoints
represent and manipulate 3D points
Definition: vtkPoints.h:39
vtkgl::z
GLdouble GLdouble z
Definition: vtkgl.h:11754
vtkPlanes::~vtkPlanes
~vtkPlanes()
vtkPlane
perform various plane computations
Definition: vtkPlane.h:37
vtkGetObjectMacro
#define vtkGetObjectMacro(name, type)
Definition: vtkSetGet.h:232
vtkCommonDataModelModule.h
vtkPlanes::EvaluateGradient
void EvaluateGradient(double x[3], double n[3])
vtkImplicitFunction::EvaluateFunction
virtual double EvaluateFunction(double x[3])=0
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkgl::n
GLclampd n
Definition: vtkgl.h:14370
vtkPlanes::SetFrustumPlanes
void SetFrustumPlanes(double planes[24])
vtkgl::x
GLint GLint GLint GLint GLint x
Definition: vtkgl.h:11318
vtkPlanes::Points
vtkPoints * Points
Definition: vtkPlanes.h:114
vtkDataArray
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:55
vtkPlanes
implicit function for convex set of planes
Definition: vtkPlanes.h:54
vtkPlanes::SetBounds
void SetBounds(const double bounds[6])
vtkPlanes::EvaluateFunction
double EvaluateFunction(double x[3])
vtkPlanes::Normals
vtkDataArray * Normals
Definition: vtkPlanes.h:115
vtkImplicitFunction
abstract interface for implicit functions
Definition: vtkImplicitFunction.h:58
vtkPlanes::GetNumberOfPlanes
int GetNumberOfPlanes()
vtkPlanes::GetPlane
vtkPlane * GetPlane(int i)
vtkPlanes::EvaluateFunction
double EvaluateFunction(double x, double y, double z)
Definition: vtkPlanes.h:63
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkPlanes::GetPlane
void GetPlane(int i, vtkPlane *plane)
vtkgl::zmax
GLclampd zmax
Definition: vtkgl.h:17479
vtkPlanes::SetPoints
virtual void SetPoints(vtkPoints *)
vtkgl::y
GLint GLint GLint GLint GLint GLint y
Definition: vtkgl.h:11318
vtkPlanes::New
static vtkPlanes * New()
vtkImplicitFunction.h
VTKCOMMONDATAMODEL_EXPORT
#define VTKCOMMONDATAMODEL_EXPORT
Definition: vtkCommonDataModelModule.h:15
vtkPlanes::SetBounds
void SetBounds(double xmin, double xmax, double ymin, double ymax, double zmin, double zmax)
vtkPlanes::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkPlanes::vtkPlanes
vtkPlanes()
vtkPlanes::Plane
vtkPlane * Plane
Definition: vtkPlanes.h:116