VTK
|
Picks an entire viewport at one shot. More...
#include <vtkScenePicker.h>
Picks an entire viewport at one shot.
The Scene picker, unline conventional pickers picks an entire viewport at one shot and caches the result, which can be retrieved later. The utility of the class arises during Actor Selection. Let's say you have a couple of polygonal objects in your scene and you wish to have a status bar that indicates the object your mouse is over. Picking repeatedly every time your mouse moves would be very slow. The scene picker automatically picks your viewport every time the camera is changed and caches the information. Additionally, it observes the vtkRenderWindowInteractor to avoid picking during interaction, so that you still maintain your interactivity. In effect, the picker does an additional pick-render of your scene every time you stop interacting with your scene. As an example, see Rendering/TestScenePicker.
Definition at line 57 of file vtkScenePicker.h.
typedef vtkObject vtkScenePicker::Superclass |
Reimplemented from vtkObject.
Definition at line 65 of file vtkScenePicker.h.
vtkScenePicker::vtkScenePicker | ( | ) | [protected] |
vtkScenePicker::~vtkScenePicker | ( | ) | [protected] |
static vtkScenePicker* vtkScenePicker::New | ( | ) | [static] |
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
Reimplemented from vtkObject.
static int vtkScenePicker::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 vtkObject.
virtual int vtkScenePicker::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 vtkObject.
static vtkScenePicker* vtkScenePicker::SafeDownCast | ( | vtkObjectBase * | o | ) | [static] |
Reimplemented from vtkObject.
virtual vtkObjectBase* vtkScenePicker::NewInstanceInternal | ( | ) | const [protected, virtual] |
Reimplemented from vtkObject.
vtkScenePicker* vtkScenePicker::NewInstance | ( | ) | const |
Reimplemented from vtkObject.
void vtkScenePicker::PrintSelf | ( | ostream & | os, |
vtkIndent | indent | ||
) | [virtual] |
virtual void vtkScenePicker::SetRenderer | ( | vtkRenderer * | ) | [virtual] |
Set the renderer. Scene picks are restricted to the viewport.
virtual vtkRenderer* vtkScenePicker::GetRenderer | ( | ) | [virtual] |
Set the renderer. Scene picks are restricted to the viewport.
vtkIdType vtkScenePicker::GetCellId | ( | int | displayPos[2] | ) |
Get cell id at the pick position. Returns -1 if no cell was picked. Makes sense only after Pick has been called.
vtkIdType vtkScenePicker::GetVertexId | ( | int | displayPos[2] | ) |
Get cell id at the pick position. Returns -1 if no cell was picked. Makes sense only after Pick has been called.
vtkProp* vtkScenePicker::GetViewProp | ( | int | displayPos[2] | ) |
Get actor at the pick position. Returns NULL if none. Makes sense only after Pick has been called.
virtual void vtkScenePicker::SetEnableVertexPicking | ( | int | ) | [virtual] |
Vertex picking (using the method GetVertexId()), required additional resources and can slow down still render time by 5-10%. Enabled by default.
virtual int vtkScenePicker::GetEnableVertexPicking | ( | ) | [virtual] |
Vertex picking (using the method GetVertexId()), required additional resources and can slow down still render time by 5-10%. Enabled by default.
virtual void vtkScenePicker::EnableVertexPickingOn | ( | ) | [virtual] |
Vertex picking (using the method GetVertexId()), required additional resources and can slow down still render time by 5-10%. Enabled by default.
virtual void vtkScenePicker::EnableVertexPickingOff | ( | ) | [virtual] |
Vertex picking (using the method GetVertexId()), required additional resources and can slow down still render time by 5-10%. Enabled by default.
void vtkScenePicker::PickRender | ( | ) | [protected] |
void vtkScenePicker::PickRender | ( | int | x0, |
int | y0, | ||
int | x1, | ||
int | y1 | ||
) | [protected] |
void vtkScenePicker::Update | ( | int | displayPos[2] | ) | [protected] |
void vtkScenePicker::SetInteractor | ( | vtkRenderWindowInteractor * | ) | [protected] |
friend class vtkRenderer [friend] |
Definition at line 60 of file vtkScenePicker.h.
friend class vtkScenePickerSelectionRenderCommand [friend] |
Definition at line 61 of file vtkScenePicker.h.
int vtkScenePicker::EnableVertexPicking [protected] |
Definition at line 114 of file vtkScenePicker.h.
vtkHardwareSelector* vtkScenePicker::Selector [protected] |
Definition at line 115 of file vtkScenePicker.h.
vtkRenderer* vtkScenePicker::Renderer [protected] |
Definition at line 116 of file vtkScenePicker.h.
vtkRenderWindowInteractor* vtkScenePicker::Interactor [protected] |
Definition at line 117 of file vtkScenePicker.h.
vtkIdType vtkScenePicker::VertId [protected] |
Definition at line 118 of file vtkScenePicker.h.
vtkIdType vtkScenePicker::CellId [protected] |
Definition at line 119 of file vtkScenePicker.h.
vtkProp* vtkScenePicker::Prop [protected] |
Definition at line 120 of file vtkScenePicker.h.
bool vtkScenePicker::NeedToUpdate [protected] |
Definition at line 121 of file vtkScenePicker.h.
int vtkScenePicker::LastQueriedDisplayPos[2] [protected] |
Definition at line 122 of file vtkScenePicker.h.
Definition at line 123 of file vtkScenePicker.h.
vtkTimeStamp vtkScenePicker::PickRenderTime [protected] |
Definition at line 125 of file vtkScenePicker.h.