VTK
|
implicit function for a selection loop More...
#include <vtkImplicitSelectionLoop.h>
Public Member Functions | |
void | EvaluateGradient (double x[3], double n[3]) |
unsigned long | GetMTime () |
double | EvaluateFunction (double x[3]) |
double | EvaluateFunction (double x, double y, double z) |
virtual void | SetLoop (vtkPoints *) |
virtual vtkPoints * | GetLoop () |
virtual void | SetAutomaticNormalGeneration (int) |
virtual int | GetAutomaticNormalGeneration () |
virtual void | AutomaticNormalGenerationOn () |
virtual void | AutomaticNormalGenerationOff () |
virtual void | SetNormal (double, double, double) |
virtual void | SetNormal (double[3]) |
virtual double * | GetNormal () |
virtual void | GetNormal (double data[3]) |
![]() | |
vtkImplicitFunction * | NewInstance () const |
double | FunctionValue (const double x[3]) |
double | FunctionValue (double x, double y, double z) |
void | FunctionGradient (const double x[3], double g[3]) |
double * | FunctionGradient (const double x[3]) |
double * | FunctionGradient (double x, double y, double z) |
virtual void | SetTransform (vtkAbstractTransform *) |
virtual void | SetTransform (const double elements[16]) |
virtual vtkAbstractTransform * | GetTransform () |
double | EvaluateFunction (double x, double y, double z) |
![]() | |
vtkObject * | NewInstance () const |
virtual void | DebugOn () |
virtual void | DebugOff () |
bool | GetDebug () |
void | SetDebug (bool debugFlag) |
virtual void | Modified () |
unsigned long | AddObserver (unsigned long event, vtkCommand *, float priority=0.0f) |
unsigned long | AddObserver (const char *event, vtkCommand *, float priority=0.0f) |
vtkCommand * | GetCommand (unsigned long tag) |
void | RemoveObserver (vtkCommand *) |
void | RemoveObservers (unsigned long event, vtkCommand *) |
void | RemoveObservers (const char *event, vtkCommand *) |
int | HasObserver (unsigned long event, vtkCommand *) |
int | HasObserver (const char *event, vtkCommand *) |
void | RemoveObserver (unsigned long tag) |
void | RemoveObservers (unsigned long event) |
void | RemoveObservers (const char *event) |
void | RemoveAllObservers () |
int | HasObserver (unsigned long event) |
int | HasObserver (const char *event) |
template<class U , class T > | |
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(), float priority=0.0f) |
template<class U , class T > | |
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f) |
template<class U , class T > | |
unsigned long | AddObserver (unsigned long event, U observer, bool(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f) |
int | InvokeEvent (unsigned long event, void *callData) |
int | InvokeEvent (const char *event, void *callData) |
int | InvokeEvent (unsigned long event) |
int | InvokeEvent (const char *event) |
![]() | |
const char * | GetClassName () const |
virtual void | Delete () |
virtual void | FastDelete () |
void | Print (ostream &os) |
virtual void | Register (vtkObjectBase *o) |
virtual void | UnRegister (vtkObjectBase *o) |
void | SetReferenceCount (int) |
void | PrintRevisions (ostream &) |
virtual void | PrintHeader (ostream &os, vtkIndent indent) |
virtual void | PrintTrailer (ostream &os, vtkIndent indent) |
int | GetReferenceCount () |
Static Public Member Functions | |
static vtkImplicitSelectionLoop * | New () |
![]() | |
static int | IsTypeOf (const char *type) |
static vtkImplicitFunction * | SafeDownCast (vtkObjectBase *o) |
![]() | |
static int | IsTypeOf (const char *type) |
static vtkObject * | SafeDownCast (vtkObjectBase *o) |
static vtkObject * | New () |
static void | BreakOnError () |
static void | SetGlobalWarningDisplay (int val) |
static void | GlobalWarningDisplayOn () |
static void | GlobalWarningDisplayOff () |
static int | GetGlobalWarningDisplay () |
![]() | |
static int | IsTypeOf (const char *name) |
static vtkObjectBase * | New () |
Protected Member Functions | |
vtkImplicitSelectionLoop () | |
~vtkImplicitSelectionLoop () | |
![]() | |
vtkImplicitFunction () | |
~vtkImplicitFunction () | |
![]() | |
vtkObject () | |
virtual | ~vtkObject () |
virtual void | RegisterInternal (vtkObjectBase *, int check) |
virtual void | UnRegisterInternal (vtkObjectBase *, int check) |
void | InternalGrabFocus (vtkCommand *mouseEvents, vtkCommand *keypressEvents=NULL) |
void | InternalReleaseFocus () |
![]() | |
vtkObjectBase () | |
virtual | ~vtkObjectBase () |
virtual void | CollectRevisions (ostream &) |
virtual void | ReportReferences (vtkGarbageCollector *) |
vtkObjectBase (const vtkObjectBase &) | |
void | operator= (const vtkObjectBase &) |
Protected Attributes | |
vtkPoints * | Loop |
double | Normal [3] |
int | AutomaticNormalGeneration |
![]() | |
vtkAbstractTransform * | Transform |
double | ReturnValue [3] |
![]() | |
bool | Debug |
vtkTimeStamp | MTime |
vtkSubjectHelper * | SubjectHelper |
![]() | |
vtkAtomicInt32 | ReferenceCount |
vtkWeakPointerBase ** | WeakPointers |
typedef vtkImplicitFunction | Superclass |
static int | IsTypeOf (const char *type) |
static vtkImplicitSelectionLoop * | SafeDownCast (vtkObjectBase *o) |
virtual int | IsA (const char *type) |
vtkImplicitSelectionLoop * | NewInstance () const |
void | PrintSelf (ostream &os, vtkIndent indent) |
virtual vtkObjectBase * | NewInstanceInternal () const |
Additional Inherited Members | |
![]() | |
typedef vtkObject | Superclass |
![]() | |
typedef vtkObjectBase | Superclass |
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).
Definition at line 59 of file vtkImplicitSelectionLoop.h.
Standard VTK methods for printing and type information.
Definition at line 64 of file vtkImplicitSelectionLoop.h.
|
protected |
|
protected |
|
static |
Standard VTK methods for printing and type information.
|
virtual |
Standard VTK methods for printing and type information.
Reimplemented from vtkImplicitFunction.
|
static |
Standard VTK methods for printing and type information.
|
protectedvirtual |
Standard VTK methods for printing and type information.
Reimplemented from vtkImplicitFunction.
vtkImplicitSelectionLoop* vtkImplicitSelectionLoop::NewInstance | ( | ) | const |
Standard VTK methods for printing and type information.
|
virtual |
Standard VTK methods for printing and type information.
Reimplemented from vtkImplicitFunction.
|
static |
Instantiate object with no initial loop.
Evaluate selection loop returning a signed distance.
Implements vtkImplicitFunction.
Evaluate selection loop returning a signed distance.
Definition at line 74 of file vtkImplicitSelectionLoop.h.
Evaluate selection loop returning the gradient.
Implements vtkImplicitFunction.
|
virtual |
Set/Get the array of point coordinates defining the loop. There must be at least three points used to define a loop.
|
virtual |
Set/Get the array of point coordinates defining the loop. There must be at least three points used to define a loop.
|
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 |
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 |
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 |
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.
Set / get the normal used to determine whether a point is inside or outside the selection loop.
|
virtual |
Set / get the normal used to determine whether a point is inside or outside the selection loop.
|
virtual |
Set / get the normal used to determine whether a point is inside or outside the selection loop.
|
virtual |
Set / get the normal used to determine whether a point is inside or outside the selection loop.
|
virtual |
Overload GetMTime() because we depend on the Loop
Reimplemented from vtkImplicitFunction.
|
protected |
Definition at line 111 of file vtkImplicitSelectionLoop.h.
|
protected |
Definition at line 112 of file vtkImplicitSelectionLoop.h.
|
protected |
Definition at line 113 of file vtkImplicitSelectionLoop.h.