VTK
vtkPolyPlane.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkPolyPlane.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 =========================================================================*/
32 #ifndef vtkPolyPlane_h
33 #define vtkPolyPlane_h
34 
35 #include "vtkCommonDataModelModule.h" // For export macro
36 #include "vtkImplicitFunction.h"
37 
38 class vtkPolyLine;
39 class vtkDoubleArray;
40 
41 class VTKCOMMONDATAMODEL_EXPORT vtkPolyPlane : public vtkImplicitFunction
42 {
43 public:
47  static vtkPolyPlane *New();
48 
50  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
51 
53 
56  double EvaluateFunction(double x[3]) VTK_OVERRIDE;
57  double EvaluateFunction(double x, double y, double z)
58  {return this->vtkImplicitFunction::EvaluateFunction(x, y, z); } ;
60 
64  void EvaluateGradient(double x[3], double g[3]) VTK_OVERRIDE;
65 
67 
71  virtual void SetPolyLine( vtkPolyLine * );
72  vtkGetObjectMacro( PolyLine, vtkPolyLine );
74 
78  vtkMTimeType GetMTime() VTK_OVERRIDE;
79 
80 protected:
81  vtkPolyPlane();
82  ~vtkPolyPlane() VTK_OVERRIDE;
83 
84  void ComputeNormals();
85 
86  double ExtrusionDirection[3];
87  vtkPolyLine * PolyLine;
88  vtkTimeStamp NormalComputeTime;
89  vtkDoubleArray * Normals;
90  vtkIdType ClosestPlaneIdx;
91 
92 private:
93  vtkPolyPlane(const vtkPolyPlane&) VTK_DELETE_FUNCTION;
94  void operator=(const vtkPolyPlane&) VTK_DELETE_FUNCTION;
95 };
96 
97 #endif
abstract interface for implicit functions
virtual double EvaluateFunction(double x[3])=0
Evaluate function at position x-y-z and return value.
record modification and/or execution time
Definition: vtkTimeStamp.h:35
int vtkIdType
Definition: vtkType.h:287
virtual void EvaluateGradient(double x[3], double g[3])=0
Evaluate function gradient at position x-y-z and pass back vector.
vtkTypeUInt64 vtkMTimeType
Definition: vtkType.h:248
dynamic, self-adjusting array of double
double EvaluateFunction(double x, double y, double z)
Evaluate plane equation for point x[3].
Definition: vtkPolyPlane.h:57
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkMTimeType GetMTime() override
Overload standard modified time function.
Implicit function that is generated by extrusion of a polyline along the Z axis.
Definition: vtkPolyPlane.h:41
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
cell represents a set of 1D lines
Definition: vtkPolyLine.h:42