VTK
|
Picks props behind a selection rectangle on a viewport. More...
#include <vtkAreaPicker.h>
Public Types | |
typedef vtkAbstractPropPicker | Superclass |
Public Types inherited from vtkAbstractPropPicker | |
typedef vtkAbstractPicker | Superclass |
Public Types inherited from vtkAbstractPicker | |
typedef vtkObject | Superclass |
Public Types inherited from vtkObject | |
typedef vtkObjectBase | Superclass |
Public Member Functions | |
virtual int | IsA (const char *type) |
vtkAreaPicker * | NewInstance () const |
void | PrintSelf (ostream &os, vtkIndent indent) |
void | SetPickCoords (double x0, double y0, double x1, double y1) |
void | SetRenderer (vtkRenderer *) |
virtual int | Pick () |
virtual int | AreaPick (double x0, double y0, double x1, double y1, vtkRenderer *renderer=NULL) |
virtual int | Pick (double x0, double y0, double vtkNotUsed(z0), vtkRenderer *renderer=NULL) |
virtual vtkAbstractMapper3D * | GetMapper () |
virtual vtkDataSet * | GetDataSet () |
vtkProp3DCollection * | GetProp3Ds () |
virtual vtkPlanes * | GetFrustum () |
virtual vtkPoints * | GetClipPoints () |
Public Member Functions inherited from vtkAbstractPropPicker | |
vtkAbstractPropPicker * | NewInstance () const |
virtual vtkProp * | GetViewProp () |
virtual vtkProp3D * | GetProp3D () |
virtual vtkActor * | GetActor () |
virtual vtkActor2D * | GetActor2D () |
virtual vtkVolume * | GetVolume () |
virtual vtkAssembly * | GetAssembly () |
virtual vtkPropAssembly * | GetPropAssembly () |
virtual void | SetPath (vtkAssemblyPath *) |
virtual vtkAssemblyPath * | GetPath () |
Public Member Functions inherited from vtkAbstractPicker | |
vtkAbstractPicker * | NewInstance () const |
void | InitializePickList () |
void | AddPickList (vtkProp *) |
void | DeletePickList (vtkProp *) |
vtkPropCollection * | GetPickList () |
virtual vtkRenderer * | GetRenderer () |
virtual double * | GetSelectionPoint () |
virtual void | GetSelectionPoint (double data[3]) |
virtual double * | GetPickPosition () |
virtual void | GetPickPosition (double data[3]) |
virtual int | Pick (double selectionX, double selectionY, double selectionZ, vtkRenderer *renderer)=0 |
int | Pick (double selectionPt[3], vtkRenderer *ren) |
virtual void | SetPickFromList (int) |
virtual int | GetPickFromList () |
virtual void | PickFromListOn () |
virtual void | PickFromListOff () |
Public Member Functions inherited from vtkObject | |
vtkObject * | NewInstance () const |
virtual void | DebugOn () |
virtual void | DebugOff () |
bool | GetDebug () |
void | SetDebug (bool debugFlag) |
virtual void | Modified () |
virtual unsigned long | GetMTime () |
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) |
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) |
void | PrintRevisions (ostream &) |
virtual void | PrintHeader (ostream &os, vtkIndent indent) |
virtual void | PrintTrailer (ostream &os, vtkIndent indent) |
int | GetReferenceCount () |
Static Public Member Functions | |
static vtkAreaPicker * | New () |
static int | IsTypeOf (const char *type) |
static vtkAreaPicker * | SafeDownCast (vtkObjectBase *o) |
Static Public Member Functions inherited from vtkAbstractPropPicker | |
static int | IsTypeOf (const char *type) |
static vtkAbstractPropPicker * | SafeDownCast (vtkObjectBase *o) |
Static Public Member Functions inherited from vtkAbstractPicker | |
static int | IsTypeOf (const char *type) |
static vtkAbstractPicker * | SafeDownCast (vtkObjectBase *o) |
Static Public Member Functions inherited from vtkObject | |
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 Public Member Functions inherited from vtkObjectBase | |
static int | IsTypeOf (const char *name) |
static vtkObjectBase * | New () |
Protected Attributes | |
vtkPoints * | ClipPoints |
vtkPlanes * | Frustum |
vtkProp3DCollection * | Prop3Ds |
vtkAbstractMapper3D * | Mapper |
vtkDataSet * | DataSet |
vtkExtractSelectedFrustum * | FrustumExtractor |
double | X0 |
double | Y0 |
double | X1 |
double | Y1 |
Protected Attributes inherited from vtkAbstractPropPicker | |
vtkAssemblyPath * | Path |
Protected Attributes inherited from vtkAbstractPicker | |
vtkRenderer * | Renderer |
double | SelectionPoint [3] |
double | PickPosition [3] |
int | PickFromList |
vtkPropCollection * | PickList |
Protected Attributes inherited from vtkObject | |
bool | Debug |
vtkTimeStamp | MTime |
vtkSubjectHelper * | SubjectHelper |
Protected Attributes inherited from vtkObjectBase | |
vtkAtomicInt32 | ReferenceCount |
vtkWeakPointerBase ** | WeakPointers |
Picks props behind a selection rectangle on a viewport.
The vtkAreaPicker picks all vtkProp3Ds that lie behind the screen space rectangle from x0,y0 and x1,y1. The selection is based upon the bounding box of the prop and is thus not exact.
Like vtkPicker, a pick results in a list of Prop3Ds because many props may lie within the pick frustum. You can also get an AssemblyPath, which in this case is defined to be the path to the one particular prop in the Prop3D list that lies nearest to the near plane.
This picker also returns the selection frustum, defined as either a vtkPlanes, or a set of eight corner vertices in world space. The vtkPlanes version is an ImplicitFunction, which is suitable for use with the vtkExtractGeometry. The six frustum planes are in order: left, right, bottom, top, near, far
Because this picker picks everything within a volume, the world pick point result is ill-defined. Therefore if you ask this class for the world pick position, you will get the centroid of the pick frustum. This may be outside of all props in the prop list.
Definition at line 64 of file vtkAreaPicker.h.
Definition at line 68 of file vtkAreaPicker.h.
|
protected |
|
protected |
|
static |
|
static |
|
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 vtkTypeMacro found in vtkSetGet.h.
Reimplemented from vtkAbstractPropPicker.
Reimplemented in vtkRenderedAreaPicker.
|
static |
|
protectedvirtual |
Reimplemented from vtkAbstractPropPicker.
Reimplemented in vtkRenderedAreaPicker.
vtkAreaPicker* vtkAreaPicker::NewInstance | ( | ) | const |
|
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 vtkAbstractPropPicker.
Reimplemented in vtkRenderedAreaPicker.
Set the default screen rectangle to pick in.
void vtkAreaPicker::SetRenderer | ( | vtkRenderer * | ) |
Set the default renderer to pick on.
|
virtual |
Perform an AreaPick within the default screen rectangle and renderer.
|
virtual |
Perform pick operation in volume behind the given screen coordinates. Props intersecting the selection frustum will be accessible via GetProp3D. GetPlanes returns a vtkImplicitFunciton suitable for vtkExtractGeometry.
Reimplemented in vtkRenderedAreaPicker.
|
inlinevirtual |
Perform pick operation in volume behind the given screen coordinate. This makes a thin frustum around the selected pixel. Note: this ignores Z in order to pick everying in a volume from z=0 to z=1.
Definition at line 90 of file vtkAreaPicker.h.
|
virtual |
Return mapper that was picked (if any).
|
virtual |
Get a pointer to the dataset that was picked (if any). If nothing was picked then NULL is returned.
|
inline |
Return a collection of all the prop 3D's that were intersected by the pick ray. This collection is not sorted.
Definition at line 108 of file vtkAreaPicker.h.
|
virtual |
Return the six planes that define the selection frustum. The implicit function defined by the planes evaluates to negative inside and positive outside.
|
virtual |
Return eight points that define the selection frustum.
|
protectedvirtual |
Reimplemented from vtkAbstractPropPicker.
|
protected |
|
protectedvirtual |
|
protected |
|
protected |
Definition at line 135 of file vtkAreaPicker.h.
|
protected |
Definition at line 136 of file vtkAreaPicker.h.
|
protected |
Definition at line 138 of file vtkAreaPicker.h.
|
protected |
Definition at line 139 of file vtkAreaPicker.h.
|
protected |
Definition at line 140 of file vtkAreaPicker.h.
|
protected |
Definition at line 143 of file vtkAreaPicker.h.
|
protected |
Definition at line 145 of file vtkAreaPicker.h.
|
protected |
Definition at line 146 of file vtkAreaPicker.h.
|
protected |
Definition at line 147 of file vtkAreaPicker.h.
|
protected |
Definition at line 148 of file vtkAreaPicker.h.