VTK  9.2.5
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
38class vtkPolyLine;
39class vtkDoubleArray;
40
41class VTKCOMMONDATAMODEL_EXPORT vtkPolyPlane : public vtkImplicitFunction
42{
43public:
47 static vtkPolyPlane* New();
48
50 void PrintSelf(ostream& os, vtkIndent indent) override;
51
53
57 double EvaluateFunction(double x[3]) override;
59
63 void EvaluateGradient(double x[3], double g[3]) override;
64
66
70 virtual void SetPolyLine(vtkPolyLine*);
71 vtkGetObjectMacro(PolyLine, vtkPolyLine);
73
78
79protected:
81 ~vtkPolyPlane() override;
82
84
85 double ExtrusionDirection[3];
90
91private:
92 vtkPolyPlane(const vtkPolyPlane&) = delete;
93 void operator=(const vtkPolyPlane&) = delete;
94};
95
96#endif
dynamic, self-adjusting array of double
abstract interface for implicit functions
virtual double EvaluateFunction(double x[3])=0
Evaluate function at position x-y-z and return value.
a simple class to control print indentation
Definition: vtkIndent.h:40
cell represents a set of 1D lines
Definition: vtkPolyLine.h:40
Implicit function that is generated by extrusion of a polyline along the Z axis.
Definition: vtkPolyPlane.h:42
static vtkPolyPlane * New()
Construct plane passing through origin and normal to z-axis.
vtkMTimeType GetMTime() override
Override GetMTime to include the polyline.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void ComputeNormals()
vtkDoubleArray * Normals
Definition: vtkPolyPlane.h:88
void EvaluateGradient(double x[3], double g[3]) override
Evaluate function gradient at point x[3].
vtkTimeStamp NormalComputeTime
Definition: vtkPolyPlane.h:87
double EvaluateFunction(double x[3]) override
Evaluate plane equation for point x[3].
virtual void SetPolyLine(vtkPolyLine *)
Set/get point through which plane passes.
vtkPolyLine * PolyLine
Definition: vtkPolyPlane.h:86
~vtkPolyPlane() override
vtkIdType ClosestPlaneIdx
Definition: vtkPolyPlane.h:89
record modification and/or execution time
Definition: vtkTimeStamp.h:36
int vtkIdType
Definition: vtkType.h:332
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:287