helper class that used selection and ray casting to find the intersection point between the user picking point and the concreate cell underneath. More...
#include <vtkPVRayCastPickingHelper.h>
Public Types | |
typedef vtkObject | Superclass |
Public Member Functions | |
virtual const char * | GetClassName () |
virtual int | IsA (const char *type) |
void | PrintSelf (ostream &os, vtkIndent indent) override |
void | SetInput (vtkAlgorithm *) |
Set input on which the selection apply. More... | |
void | SetSelection (vtkAlgorithm *) |
Set the selection that extract the cell that intersect the ray. More... | |
void | ComputeIntersection () |
Compute the intersection. More... | |
virtual double * | GetIntersection () |
virtual void | GetIntersection (double &, double &, double &) |
virtual void | GetIntersection (double [3]) |
virtual double * | GetIntersectionNormal () |
virtual void | GetIntersectionNormal (double &, double &, double &) |
virtual void | GetIntersectionNormal (double [3]) |
virtual void | SetPointA (double, double, double) |
Set the point 1 that compose the ray. More... | |
virtual void | SetPointA (double [3]) |
Set the point 1 that compose the ray. More... | |
virtual double * | GetPointA () |
Set the point 1 that compose the ray. More... | |
virtual void | GetPointA (double &, double &, double &) |
Set the point 1 that compose the ray. More... | |
virtual void | GetPointA (double [3]) |
Set the point 1 that compose the ray. More... | |
virtual void | SetPointB (double, double, double) |
Set the point 2 that compose the ray. More... | |
virtual void | SetPointB (double [3]) |
Set the point 2 that compose the ray. More... | |
virtual double * | GetPointB () |
Set the point 2 that compose the ray. More... | |
virtual void | GetPointB (double &, double &, double &) |
Set the point 2 that compose the ray. More... | |
virtual void | GetPointB (double [3]) |
Set the point 2 that compose the ray. More... | |
virtual void | SetSnapOnMeshPoint (bool) |
Set the flag to use directly selected points on mesh as intersection. More... | |
virtual bool | GetSnapOnMeshPoint () |
Set the flag to use directly selected points on mesh as intersection. More... | |
![]() | |
vtkBaseTypeMacro (vtkObject, vtkObjectBase) | |
virtual void | DebugOn () |
virtual void | DebugOff () |
bool | GetDebug () |
void | SetDebug (bool debugFlag) |
virtual void | Modified () |
virtual vtkMTimeType | GetMTime () |
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) |
int | InvokeEvent (unsigned long event) |
int | InvokeEvent (const char *event) |
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 *) |
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(), float priority=0.0f) |
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f) |
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) |
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 *) |
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(), float priority=0.0f) |
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f) |
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) |
![]() | |
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) |
virtual void | PrintHeader (ostream &os, vtkIndent indent) |
virtual void | PrintTrailer (ostream &os, vtkIndent indent) |
int | GetReferenceCount () |
void | PrintRevisions (ostream &) |
virtual void | PrintHeader (ostream &os, vtkIndent indent) |
virtual void | PrintTrailer (ostream &os, vtkIndent indent) |
int | GetReferenceCount () |
void | PrintRevisions (ostream &) |
Static Public Member Functions | |
static vtkPVRayCastPickingHelper * | New () |
static int | IsTypeOf (const char *type) |
static vtkPVRayCastPickingHelper * | SafeDownCast (vtkObject *o) |
![]() | |
static vtkObject * | New () |
static void | BreakOnError () |
static void | SetGlobalWarningDisplay (int val) |
static void | GlobalWarningDisplayOn () |
static void | GlobalWarningDisplayOff () |
static int | GetGlobalWarningDisplay () |
static void | SetGlobalWarningDisplay (int val) |
static void | GlobalWarningDisplayOn () |
static void | GlobalWarningDisplayOff () |
static int | GetGlobalWarningDisplay () |
![]() | |
static vtkTypeBool | IsTypeOf (const char *name) |
static vtkObjectBase * | New () |
static vtkObjectBase * | New () |
Protected Member Functions | |
vtkPVRayCastPickingHelper () | |
~vtkPVRayCastPickingHelper () override | |
void | ComputeIntersectionFromDataSet (vtkDataSet *ds) |
Compute the intersection using provided dataset. More... | |
int | ComputeSurfaceNormal (vtkDataSet *data, vtkCell *cell, int subId, double *weights) |
Compute the intersection normal either by interpolating the point normals at the intersected point, or by computing the plane normal for the 2D intersected face/cell. More... | |
![]() | |
vtkObject () | |
virtual | ~vtkObject () |
void | RegisterInternal (vtkObjectBase *, vtkTypeBool check) VTK_OVERRIDE |
void | UnRegisterInternal (vtkObjectBase *, vtkTypeBool check) VTK_OVERRIDE |
void | InternalGrabFocus (vtkCommand *mouseEvents, vtkCommand *keypressEvents=NULL) |
void | InternalReleaseFocus () |
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 | |
double | Intersection [3] |
double | IntersectionNormal [3] |
double | PointA [3] |
double | PointB [3] |
bool | SnapOnMeshPoint |
vtkAlgorithm * | Input |
vtkAlgorithm * | Selection |
![]() | |
bool | Debug |
vtkTimeStamp | MTime |
vtkSubjectHelper * | SubjectHelper |
![]() | |
vtkAtomicInt32 | ReferenceCount |
vtkWeakPointerBase ** | WeakPointers |
helper class that used selection and ray casting to find the intersection point between the user picking point and the concreate cell underneath.
Definition at line 21 of file vtkPVRayCastPickingHelper.h.
Definition at line 25 of file vtkPVRayCastPickingHelper.h.
|
protected |
|
overrideprotected |
|
static |
|
virtual |
Reimplemented from vtkObjectBase.
|
static |
|
overridevirtual |
Reimplemented from vtkObject.
void vtkPVRayCastPickingHelper::SetInput | ( | vtkAlgorithm * | ) |
Set input on which the selection apply.
void vtkPVRayCastPickingHelper::SetSelection | ( | vtkAlgorithm * | ) |
Set the selection that extract the cell that intersect the ray.
Set the point 1 that compose the ray.
|
virtual |
Set the point 1 that compose the ray.
|
virtual |
Set the point 1 that compose the ray.
Set the point 1 that compose the ray.
|
virtual |
Set the point 1 that compose the ray.
Set the point 2 that compose the ray.
|
virtual |
Set the point 2 that compose the ray.
|
virtual |
Set the point 2 that compose the ray.
Set the point 2 that compose the ray.
|
virtual |
Set the point 2 that compose the ray.
|
virtual |
Set the flag to use directly selected points on mesh as intersection.
|
virtual |
Set the flag to use directly selected points on mesh as intersection.
void vtkPVRayCastPickingHelper::ComputeIntersection | ( | ) |
Compute the intersection.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
protected |
Compute the intersection using provided dataset.
|
protected |
Compute the intersection normal either by interpolating the point normals at the intersected point, or by computing the plane normal for the 2D intersected face/cell.
|
protected |
Definition at line 88 of file vtkPVRayCastPickingHelper.h.
|
protected |
Definition at line 89 of file vtkPVRayCastPickingHelper.h.
|
protected |
Definition at line 90 of file vtkPVRayCastPickingHelper.h.
|
protected |
Definition at line 91 of file vtkPVRayCastPickingHelper.h.
|
protected |
Definition at line 92 of file vtkPVRayCastPickingHelper.h.
|
protected |
Definition at line 93 of file vtkPVRayCastPickingHelper.h.
|
protected |
Definition at line 94 of file vtkPVRayCastPickingHelper.h.