VTK
|
Uses graphics hardware to picks props behind a selection rectangle on a viewport. More...
#include <vtkRenderedAreaPicker.h>
Public Types | |
typedef vtkAreaPicker | Superclass |
Public Member Functions | |
virtual int | IsA (const char *type) |
vtkRenderedAreaPicker * | NewInstance () const |
void | PrintSelf (ostream &os, vtkIndent indent) |
virtual int | AreaPick (double x0, double y0, double x1, double y1, vtkRenderer *) |
Static Public Member Functions | |
static vtkRenderedAreaPicker * | New () |
static int | IsTypeOf (const char *type) |
static vtkRenderedAreaPicker * | SafeDownCast (vtkObjectBase *o) |
Protected Member Functions | |
virtual vtkObjectBase * | NewInstanceInternal () const |
vtkRenderedAreaPicker () | |
~vtkRenderedAreaPicker () |
Uses graphics hardware to picks props behind a selection rectangle on a viewport.
Like vtkAreaPicker, this class picks all props within a selection area on the screen. The difference is in implementation. This class uses graphics hardware to perform the test where the other uses software bounding box/frustum intersection testing.
This picker is more conservative than vtkAreaPicker. It will reject some objects that pass the bounding box test of vtkAreaPicker. This will happen, for instance, when picking through a corner of the bounding box when the data set does not have any visible geometry in that corner.
Definition at line 45 of file vtkRenderedAreaPicker.h.
Reimplemented from vtkAreaPicker.
Definition at line 49 of file vtkRenderedAreaPicker.h.
vtkRenderedAreaPicker::vtkRenderedAreaPicker | ( | ) | [protected] |
vtkRenderedAreaPicker::~vtkRenderedAreaPicker | ( | ) | [protected] |
static vtkRenderedAreaPicker* vtkRenderedAreaPicker::New | ( | ) | [static] |
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
Reimplemented from vtkAreaPicker.
static int vtkRenderedAreaPicker::IsTypeOf | ( | const char * | name | ) | [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 vtkTypeMacro found in vtkSetGet.h.
Reimplemented from vtkAreaPicker.
virtual int vtkRenderedAreaPicker::IsA | ( | const char * | name | ) | [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 vtkAreaPicker.
static vtkRenderedAreaPicker* vtkRenderedAreaPicker::SafeDownCast | ( | vtkObjectBase * | o | ) | [static] |
Reimplemented from vtkAreaPicker.
virtual vtkObjectBase* vtkRenderedAreaPicker::NewInstanceInternal | ( | ) | const [protected, virtual] |
Reimplemented from vtkAreaPicker.
Reimplemented from vtkAreaPicker.
void vtkRenderedAreaPicker::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 vtkAreaPicker.
virtual int vtkRenderedAreaPicker::AreaPick | ( | double | x0, |
double | y0, | ||
double | x1, | ||
double | y1, | ||
vtkRenderer * | |||
) | [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 from vtkAreaPicker.