1 #ifndef CSV_RENDER_INSTANCEMODE_H
2 #define CSV_RENDER_INSTANCEMODE_H
18 class InstanceSelectionMode;
42 osg::Vec3f
quatToEuler(
const osg::Quat& quat)
const;
43 osg::Quat
eulerToQuat(
const osg::Vec3f& euler)
const;
45 osg::Vec3f
getSelectionCenter(
const std::vector<osg::ref_ptr<TagBase> >& selection)
const;
70 virtual void drag (
const QPoint& pos,
int diffX,
int diffY,
double speedFactor);
78 virtual void dragWheel (
int diff,
double speedFactor);
82 virtual void dropEvent (QDropEvent *event);
virtual void primaryEditPressed(const WorldspaceHitResult &hit)
Default-implementation: Ignored.
Definition: instancemode.cpp:173
Definition: instancemode.hpp:27
Definition: instancemode.hpp:20
Definition: instancemode.hpp:26
int mDragAxis
Definition: instancemode.hpp:36
osg::Vec3f getSelectionCenter(const std::vector< osg::ref_ptr< TagBase > > &selection) const
Definition: instancemode.cpp:62
virtual void deactivate(CSVWidget::SceneToolbar *toolbar)
Default-Implementation: do nothing.
Definition: instancemode.cpp:143
virtual void primarySelectPressed(const WorldspaceHitResult &hit)
Default-implementation: Ignored.
Definition: instancemode.cpp:185
DragMode mDragMode
Definition: instancemode.hpp:35
std::string mSubModeId
Definition: instancemode.hpp:33
osg::Vec3f getScreenCoords(const osg::Vec3f &pos)
Definition: instancemode.cpp:84
void subModeChanged(const std::string &id)
Definition: instancemode.cpp:644
virtual void secondarySelectPressed(const WorldspaceHitResult &hit)
Default-implementation: Ignored.
Definition: instancemode.cpp:201
virtual void drag(const QPoint &pos, int diffX, int diffY, double speedFactor)
Default-implementation: ignored.
Definition: instancemode.cpp:293
virtual int getSubMode() const
Default: return -1.
Definition: instancemode.cpp:639
Definition: worldspacewidget.hpp:40
Definition: instancemode.hpp:28
virtual void dragAborted()
Definition: instancemode.cpp:485
virtual bool secondaryEditStartDrag(const QPoint &pos)
Definition: instancemode.cpp:285
virtual void dropEvent(QDropEvent *event)
Default-implementation: ignored.
Definition: instancemode.cpp:534
InstanceMode(WorldspaceWidget *worldspaceWidget, QWidget *parent=0)
Definition: instancemode.cpp:94
osg::Quat eulerToQuat(const osg::Vec3f &euler) const
Definition: instancemode.cpp:53
int getSubModeFromId(const std::string &id) const
Definition: instancemode.cpp:25
osg::Vec3f quatToEuler(const osg::Quat &quat) const
Definition: instancemode.cpp:30
virtual void secondaryEditPressed(const WorldspaceHitResult &hit)
Default-implementation: Ignored.
Definition: instancemode.cpp:179
InstanceSelectionMode * mSelectionMode
Definition: instancemode.hpp:34
DragMode
Definition: instancemode.hpp:24
bool mLocked
Definition: instancemode.hpp:37
float mUnitScaleDist
Definition: instancemode.hpp:38
virtual void dragEnterEvent(QDragEnterEvent *event)
Default-implementation: ignored.
Definition: instancemode.cpp:522
virtual void dragWheel(int diff, double speedFactor)
Default-implementation: ignored.
Definition: instancemode.cpp:491
virtual bool primaryEditStartDrag(const QPoint &pos)
Definition: instancemode.cpp:215
Definition: instanceselectionmode.hpp:8
virtual void setEditLock(bool locked)
Default-implementation: Ignored.
Definition: instancemode.cpp:165
CSVWidget::SceneToolMode * mSubMode
Definition: instancemode.hpp:32
Definition: editmode.hpp:19
Definition: instancemode.hpp:29
virtual void dragCompleted(const QPoint &pos)
Default-implementation: ignored.
Definition: instancemode.cpp:452
virtual void activate(CSVWidget::SceneToolbar *toolbar)
Default-Implementation: do nothing.
Definition: instancemode.cpp:101