2014-03-16 11:44:01 +00:00
|
|
|
#ifndef OPENCS_VIEW_PREVIEWWIDGET_H
|
|
|
|
#define OPENCS_VIEW_PREVIEWWIDGET_H
|
|
|
|
|
|
|
|
#include <components/nifogre/ogrenifloader.hpp>
|
|
|
|
|
|
|
|
#include "scenewidget.hpp"
|
|
|
|
|
|
|
|
#include "navigationorbit.hpp"
|
|
|
|
|
|
|
|
namespace CSMWorld
|
|
|
|
{
|
|
|
|
class Data;
|
|
|
|
}
|
|
|
|
|
|
|
|
namespace CSVRender
|
|
|
|
{
|
|
|
|
class PreviewWidget : public SceneWidget
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
const CSMWorld::Data& mData;
|
|
|
|
CSVRender::NavigationOrbit mOrbit;
|
2014-03-16 12:22:32 +00:00
|
|
|
NifOgre::ObjectScenePtr mObject;
|
2014-03-16 16:06:45 +00:00
|
|
|
Ogre::SceneNode *mNode;
|
2014-03-16 11:44:01 +00:00
|
|
|
|
|
|
|
void setup (const std::string& id);
|
|
|
|
///< \param id ID of the referenceable to be viewed
|
|
|
|
|
2014-03-16 16:06:45 +00:00
|
|
|
void adjust (const std::string& id);
|
|
|
|
///< \param id ID of the reference to be viewed
|
|
|
|
|
2014-03-16 11:44:01 +00:00
|
|
|
public:
|
|
|
|
|
|
|
|
PreviewWidget (const CSMWorld::Data& data, const std::string& referenceableId,
|
|
|
|
QWidget *parent = 0);
|
|
|
|
|
|
|
|
PreviewWidget (const CSMWorld::Data& data, const std::string& referenceableId,
|
|
|
|
const std::string& referenceId, QWidget *parent = 0);
|
|
|
|
|
|
|
|
signals:
|
|
|
|
|
|
|
|
void closeRequest();
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|