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) override;
70 
74  static vtkImplicitSelectionLoop *New();
75 
77 
81  double EvaluateFunction(double x[3]) override;
83 
87  void EvaluateGradient(double x[3], double n[3]) override;
88 
90 
94  virtual void SetLoop(vtkPoints*);
95  vtkGetObjectMacro(Loop,vtkPoints);
97 
99 
104  vtkSetMacro(AutomaticNormalGeneration,vtkTypeBool);
105  vtkGetMacro(AutomaticNormalGeneration,vtkTypeBool);
106  vtkBooleanMacro(AutomaticNormalGeneration,vtkTypeBool);
108 
110 
114  vtkSetVector3Macro(Normal,double);
115  vtkGetVectorMacro(Normal,double,3);
117 
121  vtkMTimeType GetMTime() override;
122 
123 protected:
125  ~vtkImplicitSelectionLoop() override;
126 
128  double Normal[3];
130 
131 private:
132  void Initialize();
133  vtkPolygon *Polygon;
134 
135  double Origin[3];
136  double Bounds[6]; //bounds of the projected polyon
137  double DeltaX;
138  double DeltaY;
139  double DeltaZ;
140 
141  vtkTimeStamp InitializationTime;
142 
143 private:
145  void operator=(const vtkImplicitSelectionLoop&) = delete;
146 };
147 
148 #endif
149 
150 
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:302
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.
implicit function for a selection loop
int vtkTypeBool
Definition: vtkABI.h:69
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
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:39