|
OpenMW
|
#include <worldspacewidget.hpp>
Public Slots | |
| void | abortDrag () |
Public Slots inherited from CSVRender::SceneWidget | |
| void | update (double dt) |
Signals | |
| void | closeRequest () |
| void | dataDropped (const std::vector< CSMWorld::UniversalId > &data) |
Signals inherited from CSVRender::SceneWidget | |
| void | focusToolbarRequest () |
Public Member Functions | |
| WorldspaceWidget (CSMDoc::Document &document, QWidget *parent=0) | |
| ~WorldspaceWidget () | |
| CSVWidget::SceneToolMode * | makeNavigationSelector (CSVWidget::SceneToolbar *parent) |
| CSVWidget::SceneToolToggle2 * | makeSceneVisibilitySelector (CSVWidget::SceneToolbar *parent) |
| CSVWidget::SceneToolRun * | makeRunTool (CSVWidget::SceneToolbar *parent) |
| CSVWidget::SceneToolMode * | makeEditModeSelector (CSVWidget::SceneToolbar *parent) |
| void | selectDefaultNavigationMode () |
| void | centerOrbitCameraOnSelection () |
| virtual dropRequirments | getDropRequirements (DropType type) const |
| virtual void | useViewHint (const std::string &hint) |
| Default-implementation: ignored. More... | |
| virtual bool | handleDrop (const std::vector< CSMWorld::UniversalId > &data, DropType type) |
| virtual unsigned int | getVisibilityMask () const |
| virtual void | setInteractionMask (unsigned int mask) |
| unsigned int | getInteractionMask () const |
| virtual void | setEditLock (bool locked) |
| CSMDoc::Document & | getDocument () |
| virtual void | clearSelection (int elementMask)=0 |
| virtual void | invertSelection (int elementMask)=0 |
| virtual void | selectAll (int elementMask)=0 |
| virtual void | selectAllWithSameParentId (int elementMask)=0 |
| WorldspaceHitResult | mousePick (const QPoint &localPos, unsigned int interactionMask) const |
| virtual std::string | getCellId (const osg::Vec3f &point) const =0 |
| virtual Cell * | getCell (const osg::Vec3d &point) const =0 |
| virtual std::vector < osg::ref_ptr< TagBase > > | getSelection (unsigned int elementMask) const =0 |
| virtual std::vector < osg::ref_ptr< TagBase > > | getEdited (unsigned int elementMask) const =0 |
| virtual void | setSubMode (int subMode, unsigned int elementMask)=0 |
| virtual void | reset (unsigned int elementMask)=0 |
| Erase all overrides and restore the visual representation to its true state. More... | |
Public Member Functions inherited from CSVRender::SceneWidget | |
| SceneWidget (boost::shared_ptr< Resource::ResourceSystem > resourceSystem, QWidget *parent=0, Qt::WindowFlags f=0, bool retrieveInput=true) | |
| virtual | ~SceneWidget () |
| CSVWidget::SceneToolMode * | makeLightingSelector (CSVWidget::SceneToolbar *parent) |
| void | setDefaultAmbient (const osg::Vec4f &colour) |
Public Member Functions inherited from CSVRender::RenderWidget | |
| RenderWidget (QWidget *parent=0, Qt::WindowFlags f=0) | |
| virtual | ~RenderWidget () |
| void | flagAsModified () |
| Initiates a request to redraw the view. More... | |
| void | setVisibilityMask (int mask) |
| osg::Camera * | getCamera () |
Static Public Member Functions | |
| static DropType | getDropType (const std::vector< CSMWorld::UniversalId > &data) |
Protected Types | |
| enum | ButtonId { Button_Reference = 0x1, Button_Pathgrid = 0x2, Button_Water = 0x4, Button_Fog = 0x8, Button_Terrain = 0x10 } |
Protected Slots | |
| void | elementSelectionChanged () |
Protected Slots inherited from CSVRender::SceneWidget | |
| void | selectNavigationMode (const std::string &mode) |
Protected Slots inherited from CSVRender::RenderWidget | |
| void | toggleRenderStats () |
Protected Member Functions | |
| virtual void | addVisibilitySelectorButtons (CSVWidget::SceneToolToggle2 *tool) |
| virtual void | addEditModeSelectorButtons (CSVWidget::SceneToolMode *tool) |
| virtual void | updateOverlay () |
| virtual void | mouseMoveEvent (QMouseEvent *event) |
| virtual void | wheelEvent (QWheelEvent *event) |
| virtual void | handleInteractionPress (const WorldspaceHitResult &hit, InteractionType type) |
| virtual void | settingChanged (const CSMPrefs::Setting *setting) |
| EditMode * | getEditMode () |
| bool | getSpeedMode () |
Protected Member Functions inherited from CSVRender::SceneWidget | |
| void | setLighting (Lighting *lighting) |
| void | setAmbient (const osg::Vec4f &ambient) |
Private Slots | |
| virtual void | referenceableDataChanged (const QModelIndex &topLeft, const QModelIndex &bottomRight)=0 |
| virtual void | referenceableAboutToBeRemoved (const QModelIndex &parent, int start, int end)=0 |
| virtual void | referenceableAdded (const QModelIndex &index, int start, int end)=0 |
| virtual void | referenceDataChanged (const QModelIndex &topLeft, const QModelIndex &bottomRight)=0 |
| virtual void | referenceAboutToBeRemoved (const QModelIndex &parent, int start, int end)=0 |
| virtual void | referenceAdded (const QModelIndex &index, int start, int end)=0 |
| virtual void | pathgridDataChanged (const QModelIndex &topLeft, const QModelIndex &bottomRight)=0 |
| virtual void | pathgridAboutToBeRemoved (const QModelIndex &parent, int start, int end)=0 |
| virtual void | pathgridAdded (const QModelIndex &parent, int start, int end)=0 |
| virtual void | runRequest (const std::string &profile) |
| void | debugProfileDataChanged (const QModelIndex &topLeft, const QModelIndex &bottomRight) |
| void | debugProfileAboutToBeRemoved (const QModelIndex &parent, int start, int end) |
| void | editModeChanged (const std::string &id) |
| void | showToolTip () |
| void | primaryEdit (bool activate) |
| void | secondaryEdit (bool activate) |
| void | primarySelect (bool activate) |
| void | secondarySelect (bool activate) |
| void | speedMode (bool activate) |
Private Member Functions | |
| void | dragEnterEvent (QDragEnterEvent *event) |
| void | dropEvent (QDropEvent *event) |
| void | dragMoveEvent (QDragMoveEvent *event) |
| virtual std::string | getStartupInstruction ()=0 |
| void | handleInteraction (InteractionType type, bool activate) |
Private Attributes | |
| CSVWidget::SceneToolToggle2 * | mSceneElements |
| CSVWidget::SceneToolRun * | mRun |
| CSMDoc::Document & | mDocument |
| unsigned int | mInteractionMask |
| CSVWidget::SceneToolMode * | mEditMode |
| bool | mLocked |
| int | mDragMode |
| bool | mDragging |
| int | mDragX |
| int | mDragY |
| bool | mSpeedMode |
| double | mDragFactor |
| double | mDragWheelFactor |
| double | mDragShiftFactor |
| QTimer | mToolTipDelayTimer |
| QPoint | mToolTipPos |
| bool | mShowToolTips |
| int | mToolTipDelay |
Friends | |
| class | MouseState |
Additional Inherited Members | |
Protected Attributes inherited from CSVRender::SceneWidget | |
| boost::shared_ptr < Resource::ResourceSystem > | mResourceSystem |
| Lighting * | mLighting |
| osg::Vec4f | mDefaultAmbient |
| bool | mHasDefaultAmbient |
| LightingDay | mLightingDay |
| LightingNight | mLightingNight |
| LightingBright | mLightingBright |
| int | mPrevMouseX |
| int | mPrevMouseY |
| bool | mCamPositionSet |
| Tells update that camera isn't set. More... | |
| FreeCameraController * | mFreeCamControl |
| OrbitCameraController * | mOrbitCamControl |
| CameraController * | mCurrentCamControl |
Protected Attributes inherited from CSVRender::RenderWidget | |
| osg::ref_ptr< osgViewer::View > | mView |
| osg::ref_ptr< osg::Group > | mRootNode |
| QTimer | mTimer |
|
protected |
| CSVRender::WorldspaceWidget::WorldspaceWidget | ( | CSMDoc::Document & | document, |
| QWidget * | parent = 0 |
||
| ) |
| CSVRender::WorldspaceWidget::~WorldspaceWidget | ( | ) |
|
slot |
|
protectedvirtual |
Reimplemented in CSVRender::PagedWorldspaceWidget.
|
protectedvirtual |
Reimplemented in CSVRender::PagedWorldspaceWidget, and CSVRender::UnpagedWorldspaceWidget.
| void CSVRender::WorldspaceWidget::centerOrbitCameraOnSelection | ( | ) |
|
pure virtual |
| elementMask | Elements to be affected by the clear operation |
Implemented in CSVRender::PagedWorldspaceWidget, and CSVRender::UnpagedWorldspaceWidget.
|
signal |
|
signal |
|
privateslot |
|
privateslot |
|
private |
|
private |
|
private |
|
privateslot |
|
protectedslot |
|
pure virtual |
Implemented in CSVRender::PagedWorldspaceWidget, and CSVRender::UnpagedWorldspaceWidget.
|
pure virtual |
Implemented in CSVRender::PagedWorldspaceWidget, and CSVRender::UnpagedWorldspaceWidget.
| CSMDoc::Document & CSVRender::WorldspaceWidget::getDocument | ( | ) |
|
virtual |
Reimplemented in CSVRender::PagedWorldspaceWidget, and CSVRender::UnpagedWorldspaceWidget.
|
static |
|
pure virtual |
Implemented in CSVRender::PagedWorldspaceWidget, and CSVRender::UnpagedWorldspaceWidget.
|
protected |
| unsigned int CSVRender::WorldspaceWidget::getInteractionMask | ( | ) | const |
|
pure virtual |
Implemented in CSVRender::PagedWorldspaceWidget, and CSVRender::UnpagedWorldspaceWidget.
|
protected |
|
privatepure virtual |
Implemented in CSVRender::UnpagedWorldspaceWidget, and CSVRender::PagedWorldspaceWidget.
|
virtual |
|
virtual |
Reimplemented in CSVRender::PagedWorldspaceWidget, and CSVRender::UnpagedWorldspaceWidget.
|
private |
|
protectedvirtual |
Reimplemented in CSVRender::PagedWorldspaceWidget.
|
pure virtual |
| elementMask | Elements to be affected by the select operation |
Implemented in CSVRender::PagedWorldspaceWidget, and CSVRender::UnpagedWorldspaceWidget.
| CSVWidget::SceneToolMode * CSVRender::WorldspaceWidget::makeEditModeSelector | ( | CSVWidget::SceneToolbar * | parent | ) |
| CSVWidget::SceneToolMode * CSVRender::WorldspaceWidget::makeNavigationSelector | ( | CSVWidget::SceneToolbar * | parent | ) |
| CSVWidget::SceneToolRun * CSVRender::WorldspaceWidget::makeRunTool | ( | CSVWidget::SceneToolbar * | parent | ) |
| CSVWidget::SceneToolToggle2 * CSVRender::WorldspaceWidget::makeSceneVisibilitySelector | ( | CSVWidget::SceneToolbar * | parent | ) |
|
protectedvirtual |
| CSVRender::WorldspaceHitResult CSVRender::WorldspaceWidget::mousePick | ( | const QPoint & | localPos, |
| unsigned int | interactionMask | ||
| ) | const |
Return the next intersection with scene elements matched by interactionMask based on localPos and the camera vector. If there is no such intersection, instead a point "in front" of localPos will be returned.
|
privatepure virtualslot |
Implemented in CSVRender::UnpagedWorldspaceWidget, and CSVRender::PagedWorldspaceWidget.
|
privatepure virtualslot |
Implemented in CSVRender::UnpagedWorldspaceWidget, and CSVRender::PagedWorldspaceWidget.
|
privatepure virtualslot |
Implemented in CSVRender::UnpagedWorldspaceWidget, and CSVRender::PagedWorldspaceWidget.
|
privateslot |
|
privateslot |
|
privatepure virtualslot |
Implemented in CSVRender::UnpagedWorldspaceWidget, and CSVRender::PagedWorldspaceWidget.
|
privatepure virtualslot |
Implemented in CSVRender::UnpagedWorldspaceWidget, and CSVRender::PagedWorldspaceWidget.
|
privatepure virtualslot |
Implemented in CSVRender::UnpagedWorldspaceWidget, and CSVRender::PagedWorldspaceWidget.
|
privatepure virtualslot |
Implemented in CSVRender::UnpagedWorldspaceWidget, and CSVRender::PagedWorldspaceWidget.
|
privatepure virtualslot |
Implemented in CSVRender::UnpagedWorldspaceWidget, and CSVRender::PagedWorldspaceWidget.
|
privatepure virtualslot |
Implemented in CSVRender::UnpagedWorldspaceWidget, and CSVRender::PagedWorldspaceWidget.
|
pure virtual |
Erase all overrides and restore the visual representation to its true state.
Implemented in CSVRender::PagedWorldspaceWidget, and CSVRender::UnpagedWorldspaceWidget.
|
privatevirtualslot |
|
privateslot |
|
privateslot |
|
pure virtual |
| elementMask | Elements to be affected by the select operation |
Implemented in CSVRender::PagedWorldspaceWidget, and CSVRender::UnpagedWorldspaceWidget.
|
pure virtual |
| elementMask | Elements to be affected by the select operation |
Implemented in CSVRender::PagedWorldspaceWidget, and CSVRender::UnpagedWorldspaceWidget.
| void CSVRender::WorldspaceWidget::selectDefaultNavigationMode | ( | ) |
|
virtual |
|
virtual |
|
pure virtual |
Implemented in CSVRender::PagedWorldspaceWidget, and CSVRender::UnpagedWorldspaceWidget.
|
protectedvirtual |
|
privateslot |
|
privateslot |
|
protectedvirtual |
|
virtual |
Default-implementation: ignored.
Reimplemented in CSVRender::PagedWorldspaceWidget.
|
protectedvirtual |
|
friend |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
1.8.6