OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Signals | Public Member Functions | Protected Member Functions | Private Slots | Private Member Functions | Private Attributes | List of all members
CSVRender::UnpagedWorldspaceWidget Class Reference

#include <unpagedworldspacewidget.hpp>

Inheritance diagram for CSVRender::UnpagedWorldspaceWidget:
Collaboration diagram for CSVRender::UnpagedWorldspaceWidget:

Signals

void cellChanged (const CSMWorld::UniversalId &id)
 
- Signals inherited from CSVRender::WorldspaceWidget
void closeRequest ()
 
void dataDropped (const std::vector< CSMWorld::UniversalId > &data)
 
- Signals inherited from CSVRender::SceneWidget
void focusToolbarRequest ()
 

Public Member Functions

 UnpagedWorldspaceWidget (const std::string &cellId, CSMDoc::Document &document, QWidget *parent)
 
virtual dropRequirments getDropRequirements (DropType type) const
 
virtual bool handleDrop (const std::vector< CSMWorld::UniversalId > &data, DropType type)
 
virtual void clearSelection (int elementMask)
 
virtual void invertSelection (int elementMask)
 
virtual void selectAll (int elementMask)
 
virtual void selectAllWithSameParentId (int elementMask)
 
virtual std::string getCellId (const osg::Vec3f &point) const
 
virtual CellgetCell (const osg::Vec3d &point) const
 
virtual std::vector
< osg::ref_ptr< TagBase > > 
getSelection (unsigned int elementMask) const
 
virtual std::vector
< osg::ref_ptr< TagBase > > 
getEdited (unsigned int elementMask) const
 
virtual void setSubMode (int subMode, unsigned int elementMask)
 
virtual void reset (unsigned int elementMask)
 Erase all overrides and restore the visual representation to its true state. More...
 
- Public Member Functions inherited from CSVRender::WorldspaceWidget
 WorldspaceWidget (CSMDoc::Document &document, QWidget *parent=0)
 
 ~WorldspaceWidget ()
 
CSVWidget::SceneToolModemakeNavigationSelector (CSVWidget::SceneToolbar *parent)
 
CSVWidget::SceneToolToggle2makeSceneVisibilitySelector (CSVWidget::SceneToolbar *parent)
 
CSVWidget::SceneToolRunmakeRunTool (CSVWidget::SceneToolbar *parent)
 
CSVWidget::SceneToolModemakeEditModeSelector (CSVWidget::SceneToolbar *parent)
 
void selectDefaultNavigationMode ()
 
void centerOrbitCameraOnSelection ()
 
virtual void useViewHint (const std::string &hint)
 Default-implementation: ignored. More...
 
virtual unsigned int getVisibilityMask () const
 
virtual void setInteractionMask (unsigned int mask)
 
unsigned int getInteractionMask () const
 
virtual void setEditLock (bool locked)
 
CSMDoc::DocumentgetDocument ()
 
WorldspaceHitResult mousePick (const QPoint &localPos, unsigned int interactionMask) const
 
- 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::SceneToolModemakeLightingSelector (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 ()
 

Protected Member Functions

virtual void addVisibilitySelectorButtons (CSVWidget::SceneToolToggle2 *tool)
 
- Protected Member Functions inherited from CSVRender::WorldspaceWidget
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)
 
EditModegetEditMode ()
 
bool getSpeedMode ()
 
- Protected Member Functions inherited from CSVRender::SceneWidget
void setLighting (Lighting *lighting)
 
void setAmbient (const osg::Vec4f &ambient)
 

Private Slots

void cellDataChanged (const QModelIndex &topLeft, const QModelIndex &bottomRight)
 
void cellRowsAboutToBeRemoved (const QModelIndex &parent, int start, int end)
 

Private Member Functions

void update ()
 
virtual void referenceableDataChanged (const QModelIndex &topLeft, const QModelIndex &bottomRight)
 
virtual void referenceableAboutToBeRemoved (const QModelIndex &parent, int start, int end)
 
virtual void referenceableAdded (const QModelIndex &index, int start, int end)
 
virtual void referenceDataChanged (const QModelIndex &topLeft, const QModelIndex &bottomRight)
 
virtual void referenceAboutToBeRemoved (const QModelIndex &parent, int start, int end)
 
virtual void referenceAdded (const QModelIndex &index, int start, int end)
 
virtual void pathgridDataChanged (const QModelIndex &topLeft, const QModelIndex &bottomRight)
 
virtual void pathgridAboutToBeRemoved (const QModelIndex &parent, int start, int end)
 
virtual void pathgridAdded (const QModelIndex &parent, int start, int end)
 
virtual std::string getStartupInstruction ()
 

Private Attributes

CSMDoc::DocumentmDocument
 
std::string mCellId
 
CSMWorld::IdTablemCellsModel
 
CSMWorld::IdTablemReferenceablesModel
 
std::auto_ptr< CellmCell
 

Additional Inherited Members

- Public Types inherited from CSVRender::WorldspaceWidget
enum  DropType { Type_CellsInterior, Type_CellsExterior, Type_Other, Type_DebugProfile }
 
enum  dropRequirments { canHandle, needPaged, needUnpaged, ignored }
 
enum  InteractionType {
  InteractionType_PrimaryEdit, InteractionType_PrimarySelect, InteractionType_SecondaryEdit, InteractionType_SecondarySelect,
  InteractionType_None
}
 
- Public Slots inherited from CSVRender::WorldspaceWidget
void abortDrag ()
 
- Public Slots inherited from CSVRender::SceneWidget
void update (double dt)
 
- Static Public Member Functions inherited from CSVRender::WorldspaceWidget
static DropType getDropType (const std::vector< CSMWorld::UniversalId > &data)
 
- Protected Types inherited from CSVRender::WorldspaceWidget
enum  ButtonId {
  Button_Reference = 0x1, Button_Pathgrid = 0x2, Button_Water = 0x4, Button_Fog = 0x8,
  Button_Terrain = 0x10
}
 
- Protected Slots inherited from CSVRender::WorldspaceWidget
void elementSelectionChanged ()
 
- Protected Slots inherited from CSVRender::SceneWidget
void selectNavigationMode (const std::string &mode)
 
- Protected Slots inherited from CSVRender::RenderWidget
void toggleRenderStats ()
 
- Protected Attributes inherited from CSVRender::SceneWidget
boost::shared_ptr
< Resource::ResourceSystem
mResourceSystem
 
LightingmLighting
 
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...
 
FreeCameraControllermFreeCamControl
 
OrbitCameraControllermOrbitCamControl
 
CameraControllermCurrentCamControl
 
- Protected Attributes inherited from CSVRender::RenderWidget
osg::ref_ptr< osgViewer::View > mView
 
osg::ref_ptr< osg::Group > mRootNode
 
QTimer mTimer
 

Constructor & Destructor Documentation

CSVRender::UnpagedWorldspaceWidget::UnpagedWorldspaceWidget ( const std::string &  cellId,
CSMDoc::Document document,
QWidget parent 
)

Here is the call graph for this function:

Member Function Documentation

void CSVRender::UnpagedWorldspaceWidget::addVisibilitySelectorButtons ( CSVWidget::SceneToolToggle2 tool)
protectedvirtual

Reimplemented from CSVRender::WorldspaceWidget.

Here is the call graph for this function:

void CSVRender::UnpagedWorldspaceWidget::cellChanged ( const CSMWorld::UniversalId id)
signal
void CSVRender::UnpagedWorldspaceWidget::cellDataChanged ( const QModelIndex &  topLeft,
const QModelIndex &  bottomRight 
)
privateslot
Todo:
possible optimisation: check columns and update only if relevant columns have changed

Here is the caller graph for this function:

void CSVRender::UnpagedWorldspaceWidget::cellRowsAboutToBeRemoved ( const QModelIndex &  parent,
int  start,
int  end 
)
privateslot

Here is the caller graph for this function:

void CSVRender::UnpagedWorldspaceWidget::clearSelection ( int  elementMask)
virtual
Parameters
elementMaskElements to be affected by the clear operation

Implements CSVRender::WorldspaceWidget.

CSVRender::Cell * CSVRender::UnpagedWorldspaceWidget::getCell ( const osg::Vec3d &  point) const
virtual
Note
Returns the cell if it exists, otherwise a null pointer

Implements CSVRender::WorldspaceWidget.

std::string CSVRender::UnpagedWorldspaceWidget::getCellId ( const osg::Vec3f &  point) const
virtual
CSVRender::WorldspaceWidget::dropRequirments CSVRender::UnpagedWorldspaceWidget::getDropRequirements ( DropType  type) const
virtual

Reimplemented from CSVRender::WorldspaceWidget.

Here is the call graph for this function:

std::vector< osg::ref_ptr< CSVRender::TagBase > > CSVRender::UnpagedWorldspaceWidget::getEdited ( unsigned int  elementMask) const
virtual
std::vector< osg::ref_ptr< CSVRender::TagBase > > CSVRender::UnpagedWorldspaceWidget::getSelection ( unsigned int  elementMask) const
virtual
std::string CSVRender::UnpagedWorldspaceWidget::getStartupInstruction ( )
privatevirtual
bool CSVRender::UnpagedWorldspaceWidget::handleDrop ( const std::vector< CSMWorld::UniversalId > &  data,
DropType  type 
)
virtual
Returns
Drop handled?

Reimplemented from CSVRender::WorldspaceWidget.

Here is the call graph for this function:

void CSVRender::UnpagedWorldspaceWidget::invertSelection ( int  elementMask)
virtual
Parameters
elementMaskElements to be affected by the select operation

Implements CSVRender::WorldspaceWidget.

void CSVRender::UnpagedWorldspaceWidget::pathgridAboutToBeRemoved ( const QModelIndex &  parent,
int  start,
int  end 
)
privatevirtual

Implements CSVRender::WorldspaceWidget.

Here is the call graph for this function:

void CSVRender::UnpagedWorldspaceWidget::pathgridAdded ( const QModelIndex &  parent,
int  start,
int  end 
)
privatevirtual

Implements CSVRender::WorldspaceWidget.

Here is the call graph for this function:

void CSVRender::UnpagedWorldspaceWidget::pathgridDataChanged ( const QModelIndex &  topLeft,
const QModelIndex &  bottomRight 
)
privatevirtual

Implements CSVRender::WorldspaceWidget.

Here is the call graph for this function:

void CSVRender::UnpagedWorldspaceWidget::referenceableAboutToBeRemoved ( const QModelIndex &  parent,
int  start,
int  end 
)
privatevirtual
void CSVRender::UnpagedWorldspaceWidget::referenceableAdded ( const QModelIndex &  index,
int  start,
int  end 
)
privatevirtual
void CSVRender::UnpagedWorldspaceWidget::referenceableDataChanged ( const QModelIndex &  topLeft,
const QModelIndex &  bottomRight 
)
privatevirtual
void CSVRender::UnpagedWorldspaceWidget::referenceAboutToBeRemoved ( const QModelIndex &  parent,
int  start,
int  end 
)
privatevirtual
void CSVRender::UnpagedWorldspaceWidget::referenceAdded ( const QModelIndex &  index,
int  start,
int  end 
)
privatevirtual
void CSVRender::UnpagedWorldspaceWidget::referenceDataChanged ( const QModelIndex &  topLeft,
const QModelIndex &  bottomRight 
)
privatevirtual
void CSVRender::UnpagedWorldspaceWidget::reset ( unsigned int  elementMask)
virtual

Erase all overrides and restore the visual representation to its true state.

Implements CSVRender::WorldspaceWidget.

void CSVRender::UnpagedWorldspaceWidget::selectAll ( int  elementMask)
virtual
Parameters
elementMaskElements to be affected by the select operation

Implements CSVRender::WorldspaceWidget.

void CSVRender::UnpagedWorldspaceWidget::selectAllWithSameParentId ( int  elementMask)
virtual
Parameters
elementMaskElements to be affected by the select operation

Implements CSVRender::WorldspaceWidget.

void CSVRender::UnpagedWorldspaceWidget::setSubMode ( int  subMode,
unsigned int  elementMask 
)
virtual
void CSVRender::UnpagedWorldspaceWidget::update ( )
private
Todo:
deal with mSunlight and mFog/mForDensity

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

std::auto_ptr<Cell> CSVRender::UnpagedWorldspaceWidget::mCell
private
std::string CSVRender::UnpagedWorldspaceWidget::mCellId
private
CSMWorld::IdTable* CSVRender::UnpagedWorldspaceWidget::mCellsModel
private
CSMDoc::Document& CSVRender::UnpagedWorldspaceWidget::mDocument
private
CSMWorld::IdTable* CSVRender::UnpagedWorldspaceWidget::mReferenceablesModel
private

The documentation for this class was generated from the following files: