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 =========================================================================*/
50 #ifndef vtkImplicitSelectionLoop_h
51 #define vtkImplicitSelectionLoop_h
52 
53 #include "vtkCommonDataModelModule.h" // For export macro
54 #include "vtkImplicitFunction.h"
55 
56 class vtkPoints;
57 class vtkPolygon;
58 
60 {
61 public:
63 
65  void PrintSelf(ostream& os, vtkIndent indent);
67 
69  static vtkImplicitSelectionLoop *New();
70 
72 
73  double EvaluateFunction(double x[3]);
74  double EvaluateFunction(double x, double y, double z)
75  {return this->vtkImplicitFunction::EvaluateFunction(x, y, z); } ;
77 
79  void EvaluateGradient(double x[3], double n[3]);
80 
82 
84  virtual void SetLoop(vtkPoints*);
85  vtkGetObjectMacro(Loop,vtkPoints);
87 
89 
92  vtkSetMacro(AutomaticNormalGeneration,int);
93  vtkGetMacro(AutomaticNormalGeneration,int);
94  vtkBooleanMacro(AutomaticNormalGeneration,int);
96 
98 
100  vtkSetVector3Macro(Normal,double);
101  vtkGetVectorMacro(Normal,double,3);
103 
105  unsigned long GetMTime();
106 
107 protected:
110 
112  double Normal[3];
114 
115 private:
116  void Initialize();
117  vtkPolygon *Polygon;
118 
119  double Origin[3];
120  double Bounds[6]; //bounds of the projected polyon
121  double DeltaX;
122  double DeltaY;
123  double DeltaZ;
124 
125  vtkTimeStamp InitializationTime;
126 
127 private:
128  vtkImplicitSelectionLoop(const vtkImplicitSelectionLoop&); // Not implemented.
129  void operator=(const vtkImplicitSelectionLoop&); // Not implemented.
130 };
131 
132 #endif
133 
134 
abstract interface for implicit functions
virtual double EvaluateFunction(double x[3])=0
record modification and/or execution time
Definition: vtkTimeStamp.h:34
unsigned long GetMTime()
virtual void EvaluateGradient(double x[3], double g[3])=0
implicit function for a selection loop
a simple class to control print indentation
Definition: vtkIndent.h:38
a cell that represents an n-sided polygon
Definition: vtkPolygon.h:44
void PrintSelf(ostream &os, vtkIndent indent)
static vtkObject * New()
double EvaluateFunction(double x, double y, double z)
#define VTKCOMMONDATAMODEL_EXPORT
represent and manipulate 3D points
Definition: vtkPoints.h:38