![]() |
VR-Forces 4.0.4 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. | |
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 |
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 makVrv::DtControlPointWidget::~DtControlPointWidget | ( | ) | [virtual] |
| virtual void makVrv::DtControlPointWidget::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" |
||
| ) | [virtual] |
Set the widget model definitions.
| virtual void makVrv::DtControlPointWidget::setState | ( | ControlPointState | state | ) | [virtual] |
Sets the indicator state.
| virtual void makVrv::DtControlPointWidget::setColor | ( | float | r, |
| float | g, | ||
| float | b | ||
| ) | [virtual] |
Sets the color filter for the indicator.
| virtual void makVrv::DtControlPointWidget::setDimensions | ( | int | height, |
| int | width | ||
| ) | [virtual] |
Sets the dimensions in screen coordinates of the widgets.
| DtModelAgent* makVrv::DtControlPointWidget::model | ( | ) |
Get the model which can be added to the scene objects.
Get the widget's state.
| virtual void makVrv::DtControlPointWidget::setEventsEnabled | ( | bool | enabled | ) | [virtual] |
Enable/disable event handling for the control point's widgets.
Get the widget agent for the indicator. If the signals.
| void makVrv::DtControlPointWidget::onMouseEnter | ( | DtUniqueID | id | ) | [protected] |
| void makVrv::DtControlPointWidget::onMouseLeave | ( | DtUniqueID | id | ) | [protected] |
| void makVrv::DtControlPointWidget::onMouseDown | ( | DtUniqueID | id, |
| double | x, | ||
| double | y, | ||
| int | button, | ||
| const std::string & | displayEngineName, | ||
| const std::string & | windowName, | ||
| const std::string & | channelName | ||
| ) | [protected] |
| void makVrv::DtControlPointWidget::onMouseUp | ( | DtUniqueID | id, |
| double | x, | ||
| double | y, | ||
| int | button, | ||
| const std::string & | displayEngineName, | ||
| const std::string & | windowName, | ||
| const std::string & | channelName | ||
| ) | [protected] |
| void makVrv::DtControlPointWidget::onMouseDblClick | ( | DtUniqueID | id, |
| double | x, | ||
| double | y, | ||
| int | button, | ||
| const std::string & | displayEngineName, | ||
| const std::string & | windowName, | ||
| const std::string & | channelName | ||
| ) | [protected] |
| boost::signal< void(bool) > makVrv::DtControlPointWidget::signal_mouseInChanged |
int makVrv::DtControlPointWidget::myModelSet [protected] |
DtProjectedWidgetModelAgent* makVrv::DtControlPointWidget::myProjectedWidgetModelAgent [protected] |
DtWidgetAgent* makVrv::DtControlPointWidget::myWidgetAgent [protected] |
Referenced by makVrf::MyControlPointWidget::setOrderGroup().
DtWidgetAgent* makVrv::DtControlPointWidget::myPointWidgetAgent [protected] |
Referenced by makVrf::MyControlPointWidget::setOrderGroup().
std::string makVrv::DtControlPointWidget::myEmptyTheme [protected] |
std::string makVrv::DtControlPointWidget::myNormalTheme [protected] |
std::string makVrv::DtControlPointWidget::myActiveTheme [protected] |
std::string makVrv::DtControlPointWidget::mySelectedPointTheme [protected] |
std::string makVrv::DtControlPointWidget::myMultiSelectedPointTheme [protected] |
int makVrv::DtControlPointWidget::myHeight [protected] |
int makVrv::DtControlPointWidget::myWidth [protected] |
bool makVrv::DtControlPointWidget::myEventsEnabled [protected] |
bool makVrv::DtControlPointWidget::mySelected [protected] |