VTK  9.2.6
vtkImplicitSelectionLoop.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkImplicitSelectionLoop.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=========================================================================*/
70#ifndef vtkImplicitSelectionLoop_h
71#define vtkImplicitSelectionLoop_h
72
73#include "vtkCommonDataModelModule.h" // For export macro
74#include "vtkImplicitFunction.h"
75
76class vtkPoints;
77class vtkPolygon;
78
79class VTKCOMMONDATAMODEL_EXPORT vtkImplicitSelectionLoop : public vtkImplicitFunction
80{
81public:
83
87 void PrintSelf(ostream& os, vtkIndent indent) override;
89
94
96
100 double EvaluateFunction(double x[3]) override;
102
106 void EvaluateGradient(double x[3], double n[3]) override;
107
109
113 virtual void SetLoop(vtkPoints*);
114 vtkGetObjectMacro(Loop, vtkPoints);
116
118
123 vtkSetMacro(AutomaticNormalGeneration, vtkTypeBool);
124 vtkGetMacro(AutomaticNormalGeneration, vtkTypeBool);
125 vtkBooleanMacro(AutomaticNormalGeneration, vtkTypeBool);
127
129
133 vtkSetVector3Macro(Normal, double);
134 vtkGetVectorMacro(Normal, double, 3);
136
141
142protected:
145
147 double Normal[3];
149
150private:
151 void Initialize();
152 vtkPolygon* Polygon;
153
154 double Origin[3];
155 double Bounds[6]; // bounds of the projected polyon
156 double DeltaX;
157 double DeltaY;
158 double DeltaZ;
159
160 vtkTimeStamp InitializationTime;
161
162private:
164 void operator=(const vtkImplicitSelectionLoop&) = delete;
165};
166
167#endif
abstract interface for implicit functions
virtual double EvaluateFunction(double x[3])=0
Evaluate function at position x-y-z and return value.
implicit function for a selection loop
void PrintSelf(ostream &os, vtkIndent indent) override
Standard VTK methods for printing and type information.
vtkMTimeType GetMTime() override
Overload GetMTime() because we depend on the Loop.
void EvaluateGradient(double x[3], double n[3]) override
Evaluate selection loop returning the gradient.
~vtkImplicitSelectionLoop() override
double EvaluateFunction(double x[3]) override
Evaluate selection loop returning a signed distance.
static vtkImplicitSelectionLoop * New()
Instantiate object with no initial loop.
virtual void SetLoop(vtkPoints *)
Set/Get the array of point coordinates defining the loop.
a simple class to control print indentation
Definition: vtkIndent.h:119
represent and manipulate 3D points
Definition: vtkPoints.h:149
a cell that represents an n-sided polygon
Definition: vtkPolygon.h:152
record modification and/or execution time
Definition: vtkTimeStamp.h:55
@ Normal
Definition: vtkX3D.h:51
int vtkTypeBool
Definition: vtkABI.h:69
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:287