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 
57 class vtkPoints;
58 class vtkPolygon;
59 
60 class VTKCOMMONDATAMODEL_EXPORT vtkImplicitSelectionLoop : public vtkImplicitFunction
61 {
62 public:
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 
124 protected:
126  ~vtkImplicitSelectionLoop() VTK_OVERRIDE;
127 
128  vtkPoints *Loop;
129  double Normal[3];
130  int AutomaticNormalGeneration;
131 
132 private:
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 
144 private:
145  vtkImplicitSelectionLoop(const vtkImplicitSelectionLoop&) VTK_DELETE_FUNCTION;
146  void operator=(const vtkImplicitSelectionLoop&) VTK_DELETE_FUNCTION;
147 };
148 
149 #endif
150 
151 
vtkPoints
represent and manipulate 3D points
Definition: vtkPoints.h:40
vtkImplicitSelectionLoop
implicit function for a selection loop
Definition: vtkImplicitSelectionLoop.h:61
vtkImplicitSelectionLoop::SetLoop
virtual void SetLoop(vtkPoints *)
Set/Get the array of point coordinates defining the loop.
vtkPolygon
a cell that represents an n-sided polygon
Definition: vtkPolygon.h:46
vtkTimeStamp
record modification and/or execution time
Definition: vtkTimeStamp.h:36
vtkX3D::Normal
@ Normal
Definition: vtkX3D.h:45
vtkImplicitFunction::EvaluateFunction
virtual double EvaluateFunction(double x[3])=0
Evaluate function at position x-y-z and return value.
vtkMTimeType
vtkTypeUInt64 vtkMTimeType
Definition: vtkType.h:248
vtkImplicitFunction
abstract interface for implicit functions
Definition: vtkImplicitFunction.h:59
vtkImplicitSelectionLoop::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:40
vtkImplicitSelectionLoop::EvaluateFunction
double EvaluateFunction(double x[3]) override
Evaluate selection loop returning a signed distance.
vtkImplicitSelectionLoop::EvaluateFunction
double EvaluateFunction(double x, double y, double z)
Definition: vtkImplicitSelectionLoop.h:81
vtkBooleanMacro
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkImplicitFunction.h
vtkImplicitSelectionLoop::EvaluateGradient
void EvaluateGradient(double x[3], double n[3]) override
Evaluate selection loop returning the gradient.
vtkImplicitSelectionLoop::GetMTime
vtkMTimeType GetMTime() override
Overload GetMTime() because we depend on the Loop.
vtkImplicitSelectionLoop::New
static vtkImplicitSelectionLoop * New()
Instantiate object with no initial loop.