![]() |
SUMO - Simulation of Urban MObility
|
class used to group all variables related with key pressed after certain events More...
#include <GNEViewNet.h>
Public Member Functions | |
bool | controlKeyPressed () const |
check if CONTROL key was pressed during click More... | |
KeyPressed () | |
constructor More... | |
bool | shiftKeyPressed () const |
check if SHIFT key was pressed during click More... | |
void | update (void *eventData) |
update status of KeyPressed More... | |
Private Attributes | |
FXEvent * | myEventInfo |
information of event More... | |
class used to group all variables related with key pressed after certain events
Definition at line 216 of file GNEViewNet.h.
GNEViewNet::KeyPressed::KeyPressed | ( | ) |
constructor
Definition at line 453 of file GNEViewNet.cpp.
bool GNEViewNet::KeyPressed::controlKeyPressed | ( | ) | const |
check if CONTROL key was pressed during click
Definition at line 475 of file GNEViewNet.cpp.
References myEventInfo.
Referenced by GNEConnectorFrame::handleLaneClick(), GNEProhibitionFrame::handleProhibitionClick(), GNEViewNet::onLeftBtnPress(), GNEInspectorFrame::processClick(), and GNEViewNet::updateCursor().
bool GNEViewNet::KeyPressed::shiftKeyPressed | ( | ) | const |
check if SHIFT key was pressed during click
Definition at line 465 of file GNEViewNet.cpp.
References myEventInfo.
Referenced by GNEViewNet::MoveSingleElementValues::calculateEdgeValues(), GNEViewNet::MoveSingleElementValues::calculatePolyValues(), GNEViewNet::MoveSingleElementValues::calculateTAZValues(), GNEConnectorFrame::handleLaneClick(), GNEProhibitionFrame::handleProhibitionClick(), GNEViewNet::onKeyPress(), GNEViewNet::onKeyRelease(), GNEViewNet::onLeftBtnPress(), GNEViewNet::onLeftBtnRelease(), GNEViewNet::onMouseMove(), GNEInspectorFrame::processClick(), GNEViewNet::SelectingArea::processEdgeRectangleSelection(), and GNEViewNet::SelectingArea::processRectangleSelection().
void GNEViewNet::KeyPressed::update | ( | void * | eventData | ) |
update status of KeyPressed
Definition at line 459 of file GNEViewNet.cpp.
References myEventInfo.
Referenced by GNEViewNet::onKeyPress(), GNEViewNet::onKeyRelease(), GNEViewNet::onLeftBtnPress(), GNEViewNet::onLeftBtnRelease(), GNEViewNet::onMouseMove(), GNEViewNet::onRightBtnPress(), and GNEViewNet::onRightBtnRelease().
|
private |
information of event
Definition at line 232 of file GNEViewNet.h.
Referenced by controlKeyPressed(), shiftKeyPressed(), and update().