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 "vtkImplicitFunction.h"
54 
55 class vtkPoints;
56 class vtkPolygon;
57 
59 {
60 public:
62 
64  void PrintSelf(ostream& os, vtkIndent indent);
66 
68  static vtkImplicitSelectionLoop *New();
69 
71 
72  double EvaluateFunction(double x[3]);
73  double EvaluateFunction(double x, double y, double z)
74  {return this->vtkImplicitFunction::EvaluateFunction(x, y, z); } ;
76 
78  void EvaluateGradient(double x[3], double n[3]);
79 
81 
83  virtual void SetLoop(vtkPoints*);
84  vtkGetObjectMacro(Loop,vtkPoints);
86 
88 
91  vtkSetMacro(AutomaticNormalGeneration,int);
92  vtkGetMacro(AutomaticNormalGeneration,int);
93  vtkBooleanMacro(AutomaticNormalGeneration,int);
95 
97 
99  vtkSetVector3Macro(Normal,double);
100  vtkGetVectorMacro(Normal,double,3);
102 
104  unsigned long GetMTime();
105 
106 protected:
109 
111  double Normal[3];
113 
114 private:
115  void Initialize();
116  vtkPolygon *Polygon;
117 
118  double Origin[3];
119  double Bounds[6]; //bounds of the projected polyon
120  double DeltaX;
121  double DeltaY;
122  double DeltaZ;
123 
124  vtkTimeStamp InitializationTime;
125 
126 private:
127  vtkImplicitSelectionLoop(const vtkImplicitSelectionLoop&); // Not implemented.
128  void operator=(const vtkImplicitSelectionLoop&); // Not implemented.
129 };
130 
131 #endif
132 
133 
abstract interface for implicit functions
virtual double EvaluateFunction(double x[3])=0
#define VTK_FILTERING_EXPORT
record modification and/or execution time
Definition: vtkTimeStamp.h:33
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:37
a cell that represents an n-sided polygon
Definition: vtkPolygon.h:43
void PrintSelf(ostream &os, vtkIndent indent)
static vtkObject * New()
double EvaluateFunction(double x, double y, double z)
represent and manipulate 3D points
Definition: vtkPoints.h:38