25 #include "WFiberHandler.h" 
   26 #include "WKeyboardHandler.h" 
   29 static const unsigned int CTRL_DOWN = 65507;
 
   30 static const unsigned int CTRL_UP = 16777249;
 
   31 static const unsigned int SHIFT_DOWN = 65505;
 
   32 static const unsigned int SHIFT_UP = 16777248;
 
   34 static const unsigned int KEY_A = 65;
 
   35 static const unsigned int KEY_C = 67;
 
   36 static const unsigned int KEY_T = 84;
 
   37 static const unsigned int KEY_X = 88;
 
   38 static const unsigned int KEY_Y = 89;
 
   39 static const unsigned int KEY_Z = 90;
 
   41 static const double SCALING_FACTOR = 2.0;
 
   44     m_connector( connector )
 
   50     if( ea.getEventType() == osgGA::GUIEventAdapter::KEYDOWN )
 
  102     if( ea.getEventType() == osgGA::GUIEventAdapter::KEYUP )
 
  104         switch( ea.getKey() )
 
void redo()
Redos the last action and pushes it to the undo vector.
 
void undo()
Undos the last action and pushes it to the redo vector.
 
bool m_isCtrl
Whether ctrl is pressed or not.
 
WMPointConnector * m_connector
The WMPointConnector this handler belongs to.
 
WKeyboardHandler(WMPointConnector *connector)
Constructs one WKeyboardHandler.
 
bool handle(const osgGA::GUIEventAdapter &ea, osgGA::GUIActionAdapter &aa)
The callback for the event listener.
 
bool m_isShift
Whether shift is pressed or not.
 
This module connects the points in a point dataset.
 
WPropPosition getScaling()
 
void pushEventQueue(std::function< void() > func)
Pushes a function to the selection queue.
 
std::shared_ptr< WFiberHandler > getFiberHandler()
 
void acceptPrediction()
Accepts the current prediction.
 
This only is a 3d double vector.