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 =========================================================================*/
48 #ifndef vtkImplicitSelectionLoop_h
49 #define vtkImplicitSelectionLoop_h
50 
51 #include "vtkCommonDataModelModule.h" // For export macro
52 #include "vtkImplicitFunction.h"
53 
54 class vtkPoints;
55 class vtkPolygon;
56 
57 class VTKCOMMONDATAMODEL_EXPORT vtkImplicitSelectionLoop : public vtkImplicitFunction
58 {
59 public:
61 
65  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
67 
71  static vtkImplicitSelectionLoop *New();
72 
74 
78  double EvaluateFunction(double x[3]) VTK_OVERRIDE;
80 
84  void EvaluateGradient(double x[3], double n[3]) VTK_OVERRIDE;
85 
87 
91  virtual void SetLoop(vtkPoints*);
92  vtkGetObjectMacro(Loop,vtkPoints);
94 
96 
101  vtkSetMacro(AutomaticNormalGeneration,int);
102  vtkGetMacro(AutomaticNormalGeneration,int);
103  vtkBooleanMacro(AutomaticNormalGeneration,int);
105 
107 
111  vtkSetVector3Macro(Normal,double);
112  vtkGetVectorMacro(Normal,double,3);
114 
118  vtkMTimeType GetMTime() VTK_OVERRIDE;
119 
120 protected:
122  ~vtkImplicitSelectionLoop() VTK_OVERRIDE;
123 
124  vtkPoints *Loop;
125  double Normal[3];
126  int AutomaticNormalGeneration;
127 
128 private:
129  void Initialize();
130  vtkPolygon *Polygon;
131 
132  double Origin[3];
133  double Bounds[6]; //bounds of the projected polyon
134  double DeltaX;
135  double DeltaY;
136  double DeltaZ;
137 
138  vtkTimeStamp InitializationTime;
139 
140 private:
141  vtkImplicitSelectionLoop(const vtkImplicitSelectionLoop&) VTK_DELETE_FUNCTION;
142  void operator=(const vtkImplicitSelectionLoop&) VTK_DELETE_FUNCTION;
143 };
144 
145 #endif
146 
147 
abstract interface for implicit functions
virtual double EvaluateFunction(double x[3])=0
Evaluate function at position x-y-z and return value.
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:300
record modification and/or execution time
Definition: vtkTimeStamp.h:32
virtual void EvaluateGradient(double x[3], double g[3])=0
Evaluate function gradient at position x-y-z and pass back vector.
implicit function for a selection loop
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkMTimeType GetMTime() override
Overload standard modified time function.
a cell that represents an n-sided polygon
Definition: vtkPolygon.h:39
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.
represent and manipulate 3D points
Definition: vtkPoints.h:33