17 #ifndef GEPETTO_GUI_SELECTION_EVENT_HH 18 #define GEPETTO_GUI_SELECTION_EVENT_HH 43 , hasIntersection_ (false)
47 nodeName_ = QString::fromStdString(
node->getID());
53 , hasIntersection_ (false)
61 void modKey (
const Qt::KeyboardModifiers& m) { modKey_ = m; }
70 Qt::KeyboardModifiers
modKey ()
const {
return modKey_; }
73 QVector3D
normal(
bool local)
const {
return (local ? localNormal_ : worldNormal_); }
74 QVector3D
point (
bool local)
const {
return (local ? localPoint_ : worldPoint_ ); }
85 Qt::KeyboardModifiers modKey_;
87 bool hasIntersection_;
88 QVector3D localPoint_, localNormal_, worldPoint_, worldNormal_;
94 #endif // GEPETTO_GUI_SELECTION_EVENT_HH Type type() const
Definition: selection-event.hh:68
QVector3D point(bool local) const
Definition: selection-event.hh:74
SelectionEvent(const Type &t, Qt::KeyboardModifiers modKey)
Definition: selection-event.hh:50
const NodePtr_t & node() const
Definition: selection-event.hh:59
void setCounter(int c)
Definition: selection-event.hh:65
QString nodeName() const
Definition: selection-event.hh:69
QVector3D normal(bool local) const
Definition: selection-event.hh:73
SelectionEvent(const Type &t, NodePtr_t node=NodePtr_t(), Qt::KeyboardModifiers modKey=Qt::NoModifier)
Definition: selection-event.hh:39
Definition: selection-event.hh:35
Definition: selection-event.hh:30
void setupIntersection(const osgUtil::LineSegmentIntersector::Intersection &it)
viewer::NodePtr_t NodePtr_t
Definition: fwd.hh:47
Definition: action-search-bar.hh:27
void modKey(const Qt::KeyboardModifiers &m)
Definition: selection-event.hh:61
Type
Definition: selection-event.hh:34
bool hasIntersection()
Definition: selection-event.hh:72
Definition: selection-event.hh:36
Qt::KeyboardModifiers modKey() const
Definition: selection-event.hh:70