Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
vtkPVRayCastPickingHelper Class Reference

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>

Inheritance diagram for vtkPVRayCastPickingHelper:
Inheritance graph
[legend]
Collaboration diagram for vtkPVRayCastPickingHelper:
Collaboration graph
[legend]

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 doubleGetIntersection ()
 
virtual void GetIntersection (double &, double &, double &)
 
virtual void GetIntersection (double [3])
 
virtual doubleGetIntersectionNormal ()
 
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 doubleGetPointA ()
 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 doubleGetPointB ()
 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...
 
- Public Member Functions inherited from vtkObject
 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)
 
vtkCommandGetCommand (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)
 
vtkCommandGetCommand (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)
 
- Public Member Functions inherited from vtkObjectBase
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 vtkPVRayCastPickingHelperNew ()
 
static int IsTypeOf (const char *type)
 
static vtkPVRayCastPickingHelperSafeDownCast (vtkObject *o)
 
- Static Public Member Functions inherited from vtkObject
static vtkObjectNew ()
 
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 Public Member Functions inherited from vtkObjectBase
static vtkTypeBool IsTypeOf (const char *name)
 
static vtkObjectBaseNew ()
 
static vtkObjectBaseNew ()
 

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...
 
- Protected Member Functions inherited from vtkObject
 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 ()
 
- Protected Member Functions inherited from vtkObjectBase
 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
 
vtkAlgorithmInput
 
vtkAlgorithmSelection
 
- Protected Attributes inherited from vtkObject
bool Debug
 
vtkTimeStamp MTime
 
vtkSubjectHelper * SubjectHelper
 
- Protected Attributes inherited from vtkObjectBase
vtkAtomicInt32 ReferenceCount
 
vtkWeakPointerBase ** WeakPointers
 

Detailed Description

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 32 of file vtkPVRayCastPickingHelper.h.

Member Typedef Documentation

◆ Superclass

Definition at line 36 of file vtkPVRayCastPickingHelper.h.

Constructor & Destructor Documentation

◆ vtkPVRayCastPickingHelper()

vtkPVRayCastPickingHelper::vtkPVRayCastPickingHelper ( )
protected

◆ ~vtkPVRayCastPickingHelper()

vtkPVRayCastPickingHelper::~vtkPVRayCastPickingHelper ( )
overrideprotected

Member Function Documentation

◆ New()

static vtkPVRayCastPickingHelper* vtkPVRayCastPickingHelper::New ( )
static

◆ GetClassName()

virtual const char* vtkPVRayCastPickingHelper::GetClassName ( )
virtual

◆ IsTypeOf()

static int vtkPVRayCastPickingHelper::IsTypeOf ( const char *  type)
static

◆ IsA()

virtual int vtkPVRayCastPickingHelper::IsA ( const char *  type)
virtual

Reimplemented from vtkObjectBase.

◆ SafeDownCast()

static vtkPVRayCastPickingHelper* vtkPVRayCastPickingHelper::SafeDownCast ( vtkObject o)
static

◆ PrintSelf()

void vtkPVRayCastPickingHelper::PrintSelf ( ostream &  os,
vtkIndent  indent 
)
overridevirtual

Reimplemented from vtkObject.

◆ SetInput()

void vtkPVRayCastPickingHelper::SetInput ( vtkAlgorithm )

Set input on which the selection apply.

◆ SetSelection()

void vtkPVRayCastPickingHelper::SetSelection ( vtkAlgorithm )

Set the selection that extract the cell that intersect the ray.

◆ SetPointA() [1/2]

virtual void vtkPVRayCastPickingHelper::SetPointA ( double  ,
double  ,
double   
)
virtual

Set the point 1 that compose the ray.

◆ SetPointA() [2/2]

virtual void vtkPVRayCastPickingHelper::SetPointA ( double  [3])
virtual

Set the point 1 that compose the ray.

◆ GetPointA() [1/3]

virtual double* vtkPVRayCastPickingHelper::GetPointA ( )
virtual

Set the point 1 that compose the ray.

◆ GetPointA() [2/3]

virtual void vtkPVRayCastPickingHelper::GetPointA ( double ,
double ,
double  
)
virtual

Set the point 1 that compose the ray.

◆ GetPointA() [3/3]

virtual void vtkPVRayCastPickingHelper::GetPointA ( double  [3])
virtual

Set the point 1 that compose the ray.

◆ SetPointB() [1/2]

virtual void vtkPVRayCastPickingHelper::SetPointB ( double  ,
double  ,
double   
)
virtual

Set the point 2 that compose the ray.

◆ SetPointB() [2/2]

virtual void vtkPVRayCastPickingHelper::SetPointB ( double  [3])
virtual

Set the point 2 that compose the ray.

◆ GetPointB() [1/3]

virtual double* vtkPVRayCastPickingHelper::GetPointB ( )
virtual

Set the point 2 that compose the ray.

◆ GetPointB() [2/3]

virtual void vtkPVRayCastPickingHelper::GetPointB ( double ,
double ,
double  
)
virtual

Set the point 2 that compose the ray.

◆ GetPointB() [3/3]

virtual void vtkPVRayCastPickingHelper::GetPointB ( double  [3])
virtual

Set the point 2 that compose the ray.

◆ SetSnapOnMeshPoint()

virtual void vtkPVRayCastPickingHelper::SetSnapOnMeshPoint ( bool  )
virtual

Set the flag to use directly selected points on mesh as intersection.

◆ GetSnapOnMeshPoint()

virtual bool vtkPVRayCastPickingHelper::GetSnapOnMeshPoint ( )
virtual

Set the flag to use directly selected points on mesh as intersection.

◆ ComputeIntersection()

void vtkPVRayCastPickingHelper::ComputeIntersection ( )

Compute the intersection.

◆ GetIntersection() [1/3]

virtual double* vtkPVRayCastPickingHelper::GetIntersection ( )
virtual

◆ GetIntersection() [2/3]

virtual void vtkPVRayCastPickingHelper::GetIntersection ( double ,
double ,
double  
)
virtual

◆ GetIntersection() [3/3]

virtual void vtkPVRayCastPickingHelper::GetIntersection ( double  [3])
virtual

◆ GetIntersectionNormal() [1/3]

virtual double* vtkPVRayCastPickingHelper::GetIntersectionNormal ( )
virtual

◆ GetIntersectionNormal() [2/3]

virtual void vtkPVRayCastPickingHelper::GetIntersectionNormal ( double ,
double ,
double  
)
virtual

◆ GetIntersectionNormal() [3/3]

virtual void vtkPVRayCastPickingHelper::GetIntersectionNormal ( double  [3])
virtual

◆ ComputeIntersectionFromDataSet()

void vtkPVRayCastPickingHelper::ComputeIntersectionFromDataSet ( vtkDataSet ds)
protected

Compute the intersection using provided dataset.

◆ ComputeSurfaceNormal()

int vtkPVRayCastPickingHelper::ComputeSurfaceNormal ( vtkDataSet data,
vtkCell cell,
int  subId,
double weights 
)
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.

Member Data Documentation

◆ Intersection

double vtkPVRayCastPickingHelper::Intersection[3]
protected

Definition at line 99 of file vtkPVRayCastPickingHelper.h.

◆ IntersectionNormal

double vtkPVRayCastPickingHelper::IntersectionNormal[3]
protected

Definition at line 100 of file vtkPVRayCastPickingHelper.h.

◆ PointA

double vtkPVRayCastPickingHelper::PointA[3]
protected

Definition at line 101 of file vtkPVRayCastPickingHelper.h.

◆ PointB

double vtkPVRayCastPickingHelper::PointB[3]
protected

Definition at line 102 of file vtkPVRayCastPickingHelper.h.

◆ SnapOnMeshPoint

bool vtkPVRayCastPickingHelper::SnapOnMeshPoint
protected

Definition at line 103 of file vtkPVRayCastPickingHelper.h.

◆ Input

vtkAlgorithm* vtkPVRayCastPickingHelper::Input
protected

Definition at line 104 of file vtkPVRayCastPickingHelper.h.

◆ Selection

vtkAlgorithm* vtkPVRayCastPickingHelper::Selection
protected

Definition at line 105 of file vtkPVRayCastPickingHelper.h.


The documentation for this class was generated from the following file: