![]() |
VR-Forces 4.5 Class Documentation
|
This is the 2D widget used as an indicator for Tactical Graphics objects. More...
Public Types | |
| enum | ControlPointState { Normal, Active, Selected, MultiSelected } |
| The possible states of a control point. More... | |
| typedef boost::signal< void(DtMouseState &mouseState, const std::string &displayEngineName, const std::string &windowName, const std::string &channelName)> | WidgetMouseEventSignal |
Public Member Functions | |
| DtControlPointWidget (int modelSet, DtAgentManagerInterface &sceneInterface) | |
| virtual | ~DtControlPointWidget () |
| virtual void | setModelDefinitions (const std::string &emptyTheme="ControlPointTheme", const std::string &normalTheme="ControlPointTheme", const std::string &activeTheme="ControlPointPinnedTheme", const std::string &normalPointTheme="ControlPointPinnedTheme", const std::string &selectedPointTheme="ControlPointPinnedTheme") |
| Set the widget model definitions. | |
| virtual void | setState (ControlPointState state) |
| Sets the indicator state. | |
| virtual void | setColor (float r, float g, float b) |
| Sets the color filter for the indicator. | |
| virtual void | setDimensions (int height, int width) |
| Sets the dimensions in screen coordinates of the widgets. | |
| DtModelAgent * | model () |
| Get the model which can be added to the scene objects. | |
| ControlPointState | state () |
| Get the widget's state. | |
| virtual void | setEventsEnabled (bool enabled) |
| Enable/disable event handling for the control point's widgets. | |
| DtWidgetEventSignals & | eventSignals (DtWidgetSignaler &signaler) |
| Get the widget agent for the indicator. If the signals. | |
| virtual void | setOrderGroup (int) |
| Sets the group layer on which to display this graphic on the 2D overlay. | |
Public Attributes | |
| boost::signal< void(bool) > | signal_mouseInChanged |
| WidgetMouseEventSignal | signal_mouseDown |
| WidgetMouseEventSignal | signal_mouseUp |
| WidgetMouseEventSignal | signal_mouseDblClick |
Protected Member Functions | |
| void | onMouseEnter (DtUniqueID id) |
| void | onMouseLeave (DtUniqueID id) |
| void | onMouseDown (DtUniqueID id, double x, double y, int button, const std::string &displayEngineName, const std::string &windowName, const std::string &channelName) |
| void | onMouseUp (DtUniqueID id, double x, double y, int button, const std::string &displayEngineName, const std::string &windowName, const std::string &channelName) |
| void | onMouseDblClick (DtUniqueID id, double x, double y, int button, const std::string &displayEngineName, const std::string &windowName, const std::string &channelName) |
Protected Attributes | |
| int | myModelSet |
| DtAgentManagerInterface & | mySceneInterface |
| DtProjectedWidgetModelAgent * | myProjectedWidgetModelAgent |
| DtWidgetAgent * | myWidgetAgent |
| DtWidgetAgent * | myPointWidgetAgent |
| DtWidgetInstanceSignaler * | myWidgetSignaler |
| std::string | myEmptyTheme |
| std::string | myNormalTheme |
| std::string | myActiveTheme |
| std::string | mySelectedPointTheme |
| std::string | myMultiSelectedPointTheme |
| int | myHeight |
| int | myWidth |
| ControlPointState | myState |
| bool | myEventsEnabled |
| bool | mySelected |
| int | myOrderGroup |
This is the 2D widget used as an indicator for Tactical Graphics objects.
| typedef boost::signal< void(DtMouseState& mouseState, const std::string& displayEngineName, const std::string& windowName, const std::string& channelName)> makVrv::DtControlPointWidget::WidgetMouseEventSignal |
| makVrv::DtControlPointWidget::DtControlPointWidget | ( | int | modelSet, |
| DtAgentManagerInterface & | sceneInterface | ||
| ) |
|
virtual |
|
virtual |
Set the widget model definitions.
|
virtual |
Sets the indicator state.
|
virtual |
Sets the color filter for the indicator.
Sets the dimensions in screen coordinates of the widgets.
| DtModelAgent* makVrv::DtControlPointWidget::model | ( | ) |
Get the model which can be added to the scene objects.
| ControlPointState makVrv::DtControlPointWidget::state | ( | ) |
Get the widget's state.
|
virtual |
Enable/disable event handling for the control point's widgets.
| DtWidgetEventSignals& makVrv::DtControlPointWidget::eventSignals | ( | DtWidgetSignaler & | signaler | ) |
Get the widget agent for the indicator. If the signals.
|
virtual |
Sets the group layer on which to display this graphic on the 2D overlay.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
| boost::signal< void(bool) > makVrv::DtControlPointWidget::signal_mouseInChanged |
| WidgetMouseEventSignal makVrv::DtControlPointWidget::signal_mouseDown |
| WidgetMouseEventSignal makVrv::DtControlPointWidget::signal_mouseUp |
| WidgetMouseEventSignal makVrv::DtControlPointWidget::signal_mouseDblClick |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |