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

Extension of RenderWidget to support lighting mode selection & toolbar. More...

#include <scenewidget.hpp>

Inheritance diagram for CSVRender::SceneWidget:
Collaboration diagram for CSVRender::SceneWidget:

Public Slots

void update (double dt)
 

Signals

void focusToolbarRequest ()
 

Public Member Functions

 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 Slots

virtual void settingChanged (const CSMPrefs::Setting *setting)
 
void selectNavigationMode (const std::string &mode)
 
- Protected Slots inherited from CSVRender::RenderWidget
void toggleRenderStats ()
 

Protected Member Functions

void setLighting (Lighting *lighting)
 
void setAmbient (const osg::Vec4f &ambient)
 
virtual void mouseMoveEvent (QMouseEvent *event)
 
virtual void wheelEvent (QWheelEvent *event)
 

Protected Attributes

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
 

Private Slots

void selectLightingMode (const std::string &mode)
 

Detailed Description

Extension of RenderWidget to support lighting mode selection & toolbar.

Constructor & Destructor Documentation

CSVRender::SceneWidget::SceneWidget ( boost::shared_ptr< Resource::ResourceSystem resourceSystem,
QWidget parent = 0,
Qt::WindowFlags  f = 0,
bool  retrieveInput = true 
)

Here is the call graph for this function:

CSVRender::SceneWidget::~SceneWidget ( )
virtual

Member Function Documentation

void CSVRender::SceneWidget::focusToolbarRequest ( )
signal

Here is the caller graph for this function:

CSVWidget::SceneToolMode * CSVRender::SceneWidget::makeLightingSelector ( CSVWidget::SceneToolbar parent)
Attention
The created tool is not added to the toolbar (via addTool). Doing that is the responsibility of the calling function.
Todo:
replace icons

Here is the call graph for this function:

Here is the caller graph for this function:

void CSVRender::SceneWidget::mouseMoveEvent ( QMouseEvent *  event)
protectedvirtual

Reimplemented in CSVRender::WorldspaceWidget.

Here is the call graph for this function:

Here is the caller graph for this function:

void CSVRender::SceneWidget::selectLightingMode ( const std::string &  mode)
privateslot

Here is the call graph for this function:

Here is the caller graph for this function:

void CSVRender::SceneWidget::selectNavigationMode ( const std::string &  mode)
protectedslot

Here is the call graph for this function:

Here is the caller graph for this function:

void CSVRender::SceneWidget::setAmbient ( const osg::Vec4f &  ambient)
protected

Here is the caller graph for this function:

void CSVRender::SceneWidget::setDefaultAmbient ( const osg::Vec4f &  colour)
Note
The actual ambient colour may differ based on lighting settings.

Here is the call graph for this function:

Here is the caller graph for this function:

void CSVRender::SceneWidget::setLighting ( Lighting lighting)
protected
Attention
The ownership of lighting is not transferred to *this.

Here is the call graph for this function:

Here is the caller graph for this function:

void CSVRender::SceneWidget::settingChanged ( const CSMPrefs::Setting setting)
protectedvirtualslot

Reimplemented in CSVRender::WorldspaceWidget.

Here is the call graph for this function:

Here is the caller graph for this function:

void CSVRender::SceneWidget::update ( double  dt)
slot

Here is the call graph for this function:

Here is the caller graph for this function:

void CSVRender::SceneWidget::wheelEvent ( QWheelEvent *  event)
protectedvirtual

Reimplemented in CSVRender::WorldspaceWidget.

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

bool CSVRender::SceneWidget::mCamPositionSet
protected

Tells update that camera isn't set.

CameraController* CSVRender::SceneWidget::mCurrentCamControl
protected
osg::Vec4f CSVRender::SceneWidget::mDefaultAmbient
protected
FreeCameraController* CSVRender::SceneWidget::mFreeCamControl
protected
bool CSVRender::SceneWidget::mHasDefaultAmbient
protected
Lighting* CSVRender::SceneWidget::mLighting
protected
LightingBright CSVRender::SceneWidget::mLightingBright
protected
LightingDay CSVRender::SceneWidget::mLightingDay
protected
LightingNight CSVRender::SceneWidget::mLightingNight
protected
OrbitCameraController* CSVRender::SceneWidget::mOrbitCamControl
protected
int CSVRender::SceneWidget::mPrevMouseX
protected
int CSVRender::SceneWidget::mPrevMouseY
protected
boost::shared_ptr<Resource::ResourceSystem> CSVRender::SceneWidget::mResourceSystem
protected

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