|
OpenMW
|
#include <instancemode.hpp>
Public Member Functions | |
| InstanceMode (WorldspaceWidget *worldspaceWidget, QWidget *parent=0) | |
| virtual void | activate (CSVWidget::SceneToolbar *toolbar) |
| Default-Implementation: do nothing. More... | |
| virtual void | deactivate (CSVWidget::SceneToolbar *toolbar) |
| Default-Implementation: do nothing. More... | |
| virtual void | setEditLock (bool locked) |
| Default-implementation: Ignored. More... | |
| virtual void | primaryEditPressed (const WorldspaceHitResult &hit) |
| Default-implementation: Ignored. More... | |
| virtual void | secondaryEditPressed (const WorldspaceHitResult &hit) |
| Default-implementation: Ignored. More... | |
| virtual void | primarySelectPressed (const WorldspaceHitResult &hit) |
| Default-implementation: Ignored. More... | |
| virtual void | secondarySelectPressed (const WorldspaceHitResult &hit) |
| Default-implementation: Ignored. More... | |
| virtual bool | primaryEditStartDrag (const QPoint &pos) |
| virtual bool | secondaryEditStartDrag (const QPoint &pos) |
| virtual void | drag (const QPoint &pos, int diffX, int diffY, double speedFactor) |
| Default-implementation: ignored. More... | |
| virtual void | dragCompleted (const QPoint &pos) |
| Default-implementation: ignored. More... | |
| virtual void | dragAborted () |
| virtual void | dragWheel (int diff, double speedFactor) |
| Default-implementation: ignored. More... | |
| virtual void | dragEnterEvent (QDragEnterEvent *event) |
| Default-implementation: ignored. More... | |
| virtual void | dropEvent (QDropEvent *event) |
| Default-implementation: ignored. More... | |
| virtual int | getSubMode () const |
| Default: return -1. More... | |
Public Member Functions inherited from CSVRender::EditMode | |
| EditMode (WorldspaceWidget *worldspaceWidget, const QIcon &icon, unsigned int mask, const QString &tooltip="", QWidget *parent=0) | |
| unsigned int | getInteractionMask () const |
| virtual bool | primarySelectStartDrag (const QPoint &pos) |
| virtual bool | secondarySelectStartDrag (const QPoint &pos) |
| virtual void | dragMoveEvent (QDragMoveEvent *event) |
| Default-implementation: ignored. More... | |
Public Member Functions inherited from CSVWidget::ModeButton | |
| ModeButton (const QIcon &icon, const QString &tooltip="", QWidget *parent=0) | |
| virtual bool | createContextMenu (QMenu *menu) |
Public Member Functions inherited from CSVWidget::PushButton | |
| PushButton (const QIcon &icon, Type type, const QString &tooltip="", QWidget *parent=0) | |
| PushButton (Type type, const QString &tooltip="", QWidget *parent=0) | |
| bool | hasKeepOpen () const |
| QString | getBaseToolTip () const |
| Return tooltip used at construction (without any button-specific modifications) More... | |
| Type | getType () const |
Private Types | |
| enum | DragMode { DragMode_None, DragMode_Move, DragMode_Rotate, DragMode_Scale } |
Private Slots | |
| void | subModeChanged (const std::string &id) |
Private Member Functions | |
| int | getSubModeFromId (const std::string &id) const |
| osg::Vec3f | quatToEuler (const osg::Quat &quat) const |
| osg::Quat | eulerToQuat (const osg::Vec3f &euler) const |
| osg::Vec3f | getSelectionCenter (const std::vector< osg::ref_ptr< TagBase > > &selection) const |
| osg::Vec3f | getScreenCoords (const osg::Vec3f &pos) |
Private Attributes | |
| CSVWidget::SceneToolMode * | mSubMode |
| std::string | mSubModeId |
| InstanceSelectionMode * | mSelectionMode |
| DragMode | mDragMode |
| int | mDragAxis |
| bool | mLocked |
| float | mUnitScaleDist |
Additional Inherited Members | |
Public Types inherited from CSVWidget::PushButton | |
| enum | Type { Type_TopMode, Type_TopAction, Type_Mode, Type_Toggle } |
Protected Member Functions inherited from CSVRender::EditMode | |
| WorldspaceWidget & | getWorldspaceWidget () |
Protected Member Functions inherited from CSVWidget::PushButton | |
| virtual void | keyPressEvent (QKeyEvent *event) |
| virtual void | keyReleaseEvent (QKeyEvent *event) |
| virtual void | mouseReleaseEvent (QMouseEvent *event) |
|
private |
| CSVRender::InstanceMode::InstanceMode | ( | WorldspaceWidget * | worldspaceWidget, |
| QWidget * | parent = 0 |
||
| ) |
|
virtual |
Default-Implementation: do nothing.
Reimplemented from CSVRender::EditMode.
|
virtual |
Default-Implementation: do nothing.
Reimplemented from CSVWidget::ModeButton.
|
virtual |
Default-implementation: ignored.
Reimplemented from CSVRender::EditMode.
|
virtual |
Reimplemented from CSVRender::EditMode.
|
virtual |
Default-implementation: ignored.
Reimplemented from CSVRender::EditMode.
|
virtual |
Default-implementation: ignored.
Reimplemented from CSVRender::EditMode.
|
virtual |
Default-implementation: ignored.
Reimplemented from CSVRender::EditMode.
|
virtual |
Default-implementation: ignored.
Reimplemented from CSVRender::EditMode.
|
private |
|
private |
|
private |
|
virtual |
Default: return -1.
Reimplemented from CSVRender::EditMode.
|
private |
|
virtual |
Default-implementation: Ignored.
Reimplemented from CSVRender::EditMode.
|
virtual |
Default-implementation: ignore and return false
Reimplemented from CSVRender::EditMode.
|
virtual |
Default-implementation: Ignored.
Reimplemented from CSVRender::EditMode.
|
private |
|
virtual |
Default-implementation: Ignored.
Reimplemented from CSVRender::EditMode.
|
virtual |
Default-implementation: ignore and return false
Reimplemented from CSVRender::EditMode.
|
virtual |
Default-implementation: Ignored.
Reimplemented from CSVRender::EditMode.
|
virtual |
Default-implementation: Ignored.
Reimplemented from CSVRender::EditMode.
|
privateslot |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
1.8.6