added navigation mode enum to SceneWidget

actorid
Marc Zinnschlag 11 years ago
parent 6ec86564d1
commit 4ec4599be3

@ -15,7 +15,7 @@ namespace CSVRender
: QWidget(parent)
, mWindow(NULL)
, mCamera(NULL)
, mSceneMgr(NULL)
, mSceneMgr(NULL), mNavigationMode (NavigationMode_Free)
{
setAttribute(Qt::WA_PaintOnScreen);
setAttribute(Qt::WA_NoSystemBackground);

@ -17,24 +17,31 @@ namespace CSVRender
{
Q_OBJECT
public:
SceneWidget(QWidget *parent);
virtual ~SceneWidget(void);
public:
QPaintEngine* paintEngine() const;
enum NavigationMode
{
NavigationMode_Free
};
private:
void paintEvent(QPaintEvent* e);
void resizeEvent(QResizeEvent* e);
bool event(QEvent* e);
SceneWidget(QWidget *parent);
virtual ~SceneWidget(void);
void updateOgreWindow();
QPaintEngine* paintEngine() const;
Ogre::Camera* mCamera;
Ogre::SceneManager* mSceneMgr;
Ogre::RenderWindow* mWindow;
};
private:
void paintEvent(QPaintEvent* e);
void resizeEvent(QResizeEvent* e);
bool event(QEvent* e);
void updateOgreWindow();
Ogre::Camera* mCamera;
Ogre::SceneManager* mSceneMgr;
Ogre::RenderWindow* mWindow;
NavigationMode mNavigationMode;
};
}
#endif

Loading…
Cancel
Save