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 
74  static vtkImplicitSelectionLoop *New();
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 
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
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
implicit function for a selection loop
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkMTimeType GetMTime() override
Overload standard modified time function.
a cell that represents an n-sided polygon
Definition: vtkPolygon.h:45
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
vtkBooleanMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
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.
double EvaluateFunction(double x, double y, double z)
Evaluate selection loop returning a signed distance.
represent and manipulate 3D points
Definition: vtkPoints.h:39