vtkImplicitSelectionLoop Class Reference
#include <vtkImplicitSelectionLoop.h>
Inheritance diagram for vtkImplicitSelectionLoop:
[legend]Collaboration diagram for vtkImplicitSelectionLoop:
[legend]List of all members.
Detailed Description
implicit function for a selection loop
vtkImplicitSelectionLoop computes the implicit function value and function gradient for a irregular, cylinder-like object whose cross section is defined by a set of points forming a loop. The loop need not be convex nor its points coplanar. However, the loop must be non-self-intersecting when projected onto the plane defined by the accumulated cross product around the loop (i.e., the axis of the loop). (Alternatively, you can specify the normal to use.)
The following procedure is used to compute the implicit function value for a point x. Each point of the loop is first projected onto the plane defined by the loop normal. This forms a polygon. Then, to evaluate the implicit function value, inside/outside tests are used to determine if x is inside the polygon, and the distance to the loop boundary is computed (negative values are inside the loop).
One example application of this implicit function class is to draw a loop on the surface of a mesh, and use the loop to clip or extract cells from within the loop. Remember, the selection loop is "infinite" in length, you can use a plane (in boolean combination) to cap the extent of the selection loop. Another trick is to use a connectivity filter to extract the closest region to a given point (i.e., one of the points used to define the selection loop).
- See also:
- vtkImplicitFunction vtkImplicitBoolean vtkExtractGeometry vtkClipPolyData vtkConnectivityFilter vtkPolyDataConnectivityFilter
- Created by:
-
- CVS contributions (if > 5%):
- Schroeder, Will (70%)
- Martin, Ken (12%)
- Law, Charles (7%)
- CVS logs (CVSweb):
.h (/Filtering/vtkImplicitSelectionLoop
.h)
.cxx (/Filtering/vtkImplicitSelectionLoop
.cxx)
- Tests:
- vtkImplicitSelectionLoop (Tests)
Definition at line 70 of file vtkImplicitSelectionLoop.h.
Member Typedef Documentation
Constructor & Destructor Documentation
vtkImplicitSelectionLoop::vtkImplicitSelectionLoop |
( |
|
) |
[protected] |
|
Member Function Documentation
virtual const char* vtkImplicitSelectionLoop::GetClassName |
( |
|
) |
[virtual] |
|
int vtkImplicitSelectionLoop::IsTypeOf |
( |
const char * |
type |
) |
[static] |
|
|
Return 1 if this class type is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeRevisionMacro found in vtkSetGet.h.
Reimplemented from vtkImplicitFunction. |
virtual int vtkImplicitSelectionLoop::IsA |
( |
const char * |
type |
) |
[virtual] |
|
|
Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeRevisionMacro found in vtkSetGet.h.
Reimplemented from vtkImplicitFunction. |
void vtkImplicitSelectionLoop::PrintSelf |
( |
ostream & |
os, |
|
|
vtkIndent |
indent |
|
) |
[virtual] |
|
|
Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.
Reimplemented from vtkImplicitFunction. |
|
Instantiate object with no initial loop.
Reimplemented from vtkObject. |
double vtkImplicitSelectionLoop::EvaluateFunction |
( |
double |
x[3] |
) |
[virtual] |
|
double vtkImplicitSelectionLoop::EvaluateFunction |
( |
double |
x, |
|
|
double |
y, |
|
|
double |
z |
|
) |
[inline] |
|
void vtkImplicitSelectionLoop::EvaluateGradient |
( |
double |
x[3], |
|
|
double |
n[3] |
|
) |
[virtual] |
|
virtual void vtkImplicitSelectionLoop::SetLoop |
( |
vtkPoints * |
|
) |
[virtual] |
|
|
Set/Get the array of point coordinates defining the loop. There must be at least three points used to define a loop. |
virtual vtkPoints* vtkImplicitSelectionLoop::GetLoop |
( |
|
) |
[virtual] |
|
|
Set/Get the array of point coordinates defining the loop. There must be at least three points used to define a loop. |
virtual void vtkImplicitSelectionLoop::SetAutomaticNormalGeneration |
( |
int |
|
) |
[virtual] |
|
|
Turn on/off automatic normal generation. By default, the normal is computed from the accumulated cross product of the edges. You can also specify the normal to use. |
virtual int vtkImplicitSelectionLoop::GetAutomaticNormalGeneration |
( |
|
) |
[virtual] |
|
|
Turn on/off automatic normal generation. By default, the normal is computed from the accumulated cross product of the edges. You can also specify the normal to use. |
virtual void vtkImplicitSelectionLoop::AutomaticNormalGenerationOn |
( |
|
) |
[virtual] |
|
|
Turn on/off automatic normal generation. By default, the normal is computed from the accumulated cross product of the edges. You can also specify the normal to use. |
virtual void vtkImplicitSelectionLoop::AutomaticNormalGenerationOff |
( |
|
) |
[virtual] |
|
|
Turn on/off automatic normal generation. By default, the normal is computed from the accumulated cross product of the edges. You can also specify the normal to use. |
virtual void vtkImplicitSelectionLoop::SetNormal |
( |
double |
, |
|
|
double |
, |
|
|
double |
|
|
) |
[virtual] |
|
|
Set / get the normal used to determine what is inside and what is outside. |
virtual void vtkImplicitSelectionLoop::SetNormal |
( |
double |
[3] |
) |
[virtual] |
|
|
Set / get the normal used to determine what is inside and what is outside. |
virtual double* vtkImplicitSelectionLoop::GetNormal |
( |
|
) |
[virtual] |
|
|
Set / get the normal used to determine what is inside and what is outside. |
virtual void vtkImplicitSelectionLoop::GetNormal |
( |
double |
data[3] |
) |
[virtual] |
|
|
Set / get the normal used to determine what is inside and what is outside. |
unsigned long vtkImplicitSelectionLoop::GetMTime |
( |
|
) |
[virtual] |
|
Member Data Documentation
The documentation for this class was generated from the following file: