VTK
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=========================================================================*/
51#ifndef vtkImplicitSelectionLoop_h
52#define vtkImplicitSelectionLoop_h
53
54#include "vtkCommonDataModelModule.h" // For export macro
55#include "vtkImplicitFunction.h"
56
57class vtkPoints;
58class vtkPolygon;
59
60class VTKCOMMONDATAMODEL_EXPORT vtkImplicitSelectionLoop : public vtkImplicitFunction
61{
62public:
64
68 void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
70
75
77
80 double EvaluateFunction(double x[3]) VTK_OVERRIDE;
81 double EvaluateFunction(double x, double y, double z)
82 {return this->vtkImplicitFunction::EvaluateFunction(x, y, z); } ;
84
88 void EvaluateGradient(double x[3], double n[3]) VTK_OVERRIDE;
89
91
95 virtual void SetLoop(vtkPoints*);
96 vtkGetObjectMacro(Loop,vtkPoints);
98
100
105 vtkSetMacro(AutomaticNormalGeneration,int);
106 vtkGetMacro(AutomaticNormalGeneration,int);
107 vtkBooleanMacro(AutomaticNormalGeneration,int);
109
111
115 vtkSetVector3Macro(Normal,double);
116 vtkGetVectorMacro(Normal,double,3);
118
122 vtkMTimeType GetMTime() VTK_OVERRIDE;
123
124protected:
127
129 double Normal[3];
130 int AutomaticNormalGeneration;
131
132private:
133 void Initialize();
134 vtkPolygon *Polygon;
135
136 double Origin[3];
137 double Bounds[6]; //bounds of the projected polyon
138 double DeltaX;
139 double DeltaY;
140 double DeltaZ;
141
142 vtkTimeStamp InitializationTime;
143
144private:
145 vtkImplicitSelectionLoop(const vtkImplicitSelectionLoop&) VTK_DELETE_FUNCTION;
146 void operator=(const vtkImplicitSelectionLoop&) VTK_DELETE_FUNCTION;
147};
148
149#endif
150
151
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
Methods invoked by print to print information about the object including superclasses.
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.
double EvaluateFunction(double x[3]) override
Evaluate selection loop returning a signed distance.
static vtkImplicitSelectionLoop * New()
Instantiate object with no initial loop.
double EvaluateFunction(double x, double y, double z)
virtual void SetLoop(vtkPoints *)
Set/Get the array of point coordinates defining the loop.
a simple class to control print indentation
Definition: vtkIndent.h:40
represent and manipulate 3D points
Definition: vtkPoints.h:40
a cell that represents an n-sided polygon
Definition: vtkPolygon.h:46
record modification and/or execution time
Definition: vtkTimeStamp.h:36
@ Normal
Definition: vtkX3D.h:45
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkTypeUInt64 vtkMTimeType
Definition: vtkType.h:248