![]() |
VR-Forces Developer's Guide
|
The picker class which allocates and does picking operations on widgets.

Classes | |
| struct | MousePickRecord |
Public Attributes | |
| boost::signalslib::signal< void()> | signal_destroyed |
Protected Types | |
| using | WidgetIdMap = std::unordered_map< unsigned int, DtPickableWidget * > |
Protected Member Functions | |
| DtWidgetPicker (DtDe &de, DtOverlayResourceProvider &provider) | |
| virtual DtPickableWidget * | calculateWidgetFromLastPick () |
| virtual void | debugRender () |
| virtual DtQuadProxy * | allocateQuad () |
| virtual DtLineSegment * | allocateLine () |
| virtual DtTriangleProxy * | allocateTriangle () |
| virtual unsigned int | widgetCreated (DtPickableWidget *) |
| virtual void | widgetToBeDeleted (DtPickableWidget *) |
| virtual bool | allocateResources () |
Private Attributes | |
| friend | DtWidgetPickerCreator |
Friends | |
| class | DtPickableWidget |
| class | DtPickableQuad |
| class | DtPickableLine |
| class | DtPickableTriangle |
|
protected |
|
virtual |
destructor
|
delete |
not allowed
|
delete |
not allowed
|
protected |
Protected Constructor Use DtWidgetPickerCreator to create an instance of this class.
|
delete |
not allowed
Get the number of widgets.
|
virtual |
Deallocate any resources. Renderer boolean is part of a hack to get widgets pickable again.
|
virtual |
|
virtual |
Allocate a widget quad, delete when done.
|
virtual |
Allocate a widget quad, delete when done.
|
virtual |
Allocate a widget quad, delete when done.
|
virtual |
Allocate a widget decal projector, delete when done.
|
virtual |
Registers the pickable decal projector widget with this picker. The picker does not own the widget. The widget will call this in it's constuctor (no need to call it manually).
|
virtual |
Unregisters the pickable decal projector widget with this picker. The picker does not own the widget. The widget will call this in it's deconstuctor (no need to call it manually).
|
virtual |
Returns true if this widget picker requires a scene pick prior to calling the pick method. This is used for recording a support node hit location from the mouse cursor position.
|
virtual |
Pick at (int x, int y); As picking can be slow, start your pick, after updates but before rendering.
| viewport[4] | - the viewport position and dimensions (x, y, width, height) |
|
virtual |
Attempt to get the widget from the last pick.
|
virtual |
Done during the update phase.
Reimplemented in makVrf::DtVrfWidgetPicker.
|
virtual |
Clear any pending events.
|
protectedvirtual |
Get the widget at last pick. After rendering process the last pick.
|
protectedvirtual |
|
protectedvirtual |
Allocate a widget quad, delete when done.
|
protectedvirtual |
Allocate a widget quad, delete when done.
|
protectedvirtual |
Allocate a triangle.
|
protectedvirtual |
Called when a widget is created.
|
protectedvirtual |
Called when a widget is to be deleted.
|
protectedvirtual |
|
friend |
|
friend |
|
friend |
|
friend |
|
private |
| boost::signalslib::signal<void ()> makVrv::DtWidgetPicker::signal_destroyed |
Boost signal sent during widget picker destruction. Called from destructor.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |