MIRA
|
Extended version of OgreWidget that provides default setup of Ogre components (scene manager, light, camera, etc.) and hence provides a ready-to-use playground for 3D rendering. More...
#include <widgets/OgreWidgetEx.h>
Public Types | |
enum | CameraMode { PERSPECTIVE =0, ORTHOGRAPHIC, BIRDS_EYE } |
enum | StereoMode { NONE, CROSSED_EYE } |
enum | BackgroundMode { BACKGROUND_SOLID =0, BACKGROUND_GRADIENT, BACKGROUND_WHITE, BACKGROUND_BLACK } |
enum | RenderMode { NORMAL = 0, WIREFRAME, HIDDEN_LINE } |
Public Member Functions | |
OgreWidgetEx (QWidget *parent=0) | |
virtual | ~OgreWidgetEx () |
void | setBackgroundMode (BackgroundMode mode) |
void | setBackgroundColor1 (Ogre::ColourValue color1) |
void | setBackgroundColor2 (Ogre::ColourValue color2) |
void | setBackgroundColors (Ogre::ColourValue color1, Ogre::ColourValue color2) |
void | setCameraMode (CameraMode mode) |
void | setRenderMode (RenderMode mode) |
void | setStereoMode (StereoMode mode) |
void | showBoundingBoxes (bool show=true) |
void | setCamera (const Point3f &position, float yaw, float pitch, float roll, float distance) |
void | lookAt (const Point3f &from, const Point3f &to) |
virtual void | paintGL () |
Protected Member Functions | |
virtual void | initOgre () |
May be overwritten in subclasses to initialize your Ogre components. More... | |
void | updateCamera () |
virtual void | initializeGL () |
virtual void | resizeGL (int w, int h) |
Ogre::RenderWindow * | getRenderWindow () |
Protected Attributes | |
BackgroundMode | mBackgroundMode |
Ogre::ColourValue | mBackgroundColor1 |
Ogre::ColourValue | mBackgroundColor2 |
CameraMode | mCameraMode |
struct { | |
Point3f position | |
float yaw | |
float pitch | |
float roll | |
float distance | |
} | mCameraSettings |
RenderMode | mRenderMode |
StereoMode | mStereoMode |
float | mStereoEyeDistance |
bool | mShowBoundingBoxes |
Ogre::Light * | mLight |
Ogre::Camera * | mCamera |
Ogre::Camera * | mCameraRight |
Ogre::Viewport * | mViewport |
Ogre::Viewport * | mViewportRight |
Ogre::SceneManager * | mSceneManager |
ColouredRectangle2D * | mBackground |
RenderModeTechniqueMod * | mRenderModeTechniqueMod |
Extended version of OgreWidget that provides default setup of Ogre components (scene manager, light, camera, etc.) and hence provides a ready-to-use playground for 3D rendering.
It moreover provides advanced capabilities such as:
enum CameraMode |
enum StereoMode |
enum BackgroundMode |
enum RenderMode |
|
explicit |
|
virtual |
|
protectedvirtual |
May be overwritten in subclasses to initialize your Ogre components.
This method is called after the main parts of Ogre (including the render window) are created.
Reimplemented from OgreWidget.
Reimplemented in Visualization3DContainer.
void setBackgroundMode | ( | BackgroundMode | mode | ) |
void setBackgroundColor1 | ( | Ogre::ColourValue | color1 | ) |
void setBackgroundColor2 | ( | Ogre::ColourValue | color2 | ) |
void setBackgroundColors | ( | Ogre::ColourValue | color1, |
Ogre::ColourValue | color2 | ||
) |
void setCameraMode | ( | CameraMode | mode | ) |
void setRenderMode | ( | RenderMode | mode | ) |
void setStereoMode | ( | StereoMode | mode | ) |
void showBoundingBoxes | ( | bool | show = true | ) |
void setCamera | ( | const Point3f & | position, |
float | yaw, | ||
float | pitch, | ||
float | roll, | ||
float | distance | ||
) |
|
protected |
|
virtualinherited |
|
protectedvirtualinherited |
|
protectedvirtualinherited |
|
inlineprotectedinherited |
|
protected |
|
protected |
|
protected |
|
protected |
Point3f position |
float yaw |
float pitch |
float roll |
float distance |
struct { ... } mCameraSettings |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |