17 #ifndef GEPETTO_GUI_SELECTION_EVENT_HH
18 #define GEPETTO_GUI_SELECTION_EVENT_HH
38 Qt::KeyboardModifiers
modKey = Qt::NoModifier)
42 hasIntersection_(false),
44 if (
node) nodeName_ = QString::fromStdString(
node->getID());
48 : type_(t), modKey_(
modKey), hasIntersection_(false), c_(-1) {}
51 const osgUtil::LineSegmentIntersector::Intersection& it);
55 void modKey(
const Qt::KeyboardModifiers& m) { modKey_ = m; }
64 Qt::KeyboardModifiers
modKey()
const {
return modKey_; }
69 return (local ? localNormal_ : worldNormal_);
71 QVector3D
point(
bool local)
const {
72 return (local ? localPoint_ : worldPoint_);
84 Qt::KeyboardModifiers modKey_;
86 bool hasIntersection_;
87 unsigned int primitiveIndex_;
88 QVector3D localPoint_, localNormal_, worldPoint_, worldNormal_;
Definition: selection-event.hh:31
SelectionEvent(const Type &t, Qt::KeyboardModifiers modKey)
Definition: selection-event.hh:47
QVector3D normal(bool local) const
Definition: selection-event.hh:68
Qt::KeyboardModifiers modKey() const
Definition: selection-event.hh:64
Type type() const
Definition: selection-event.hh:62
void modKey(const Qt::KeyboardModifiers &m)
Definition: selection-event.hh:55
const NodePtr_t & node() const
Definition: selection-event.hh:53
SelectionEvent(const Type &t, NodePtr_t node=NodePtr_t(), Qt::KeyboardModifiers modKey=Qt::NoModifier)
Definition: selection-event.hh:37
const unsigned int & primitiveIndex() const
Definition: selection-event.hh:67
void setupIntersection(const osgUtil::LineSegmentIntersector::Intersection &it)
QString nodeName() const
Definition: selection-event.hh:63
bool hasIntersection()
Definition: selection-event.hh:66
Type
Definition: selection-event.hh:35
@ FromBodyTree
Definition: selection-event.hh:35
@ FromOsgWindow
Definition: selection-event.hh:35
QVector3D point(bool local) const
Definition: selection-event.hh:71
void setCounter(int c)
Definition: selection-event.hh:59
viewer::NodePtr_t NodePtr_t
Definition: fwd.hh:50
Definition: action-search-bar.hh:27