1
0
mirror of https://github.com/rwengine/openrw.git synced 2024-11-01 16:32:31 +01:00
openrw/rwviewer/views/ModelViewer.hpp
2018-09-16 00:52:41 +02:00

46 lines
779 B
C++

#ifndef _MODELVIEWER_HPP_
#define _MODELVIEWER_HPP_
#include <engine/GameData.hpp>
#include <engine/GameWorld.hpp>
#include "ViewerInterface.hpp"
#include <QLabel>
#include <QLayout>
#include <QSplitter>
#include <QTreeView>
#include <QVBoxLayout>
class ViewerWidget;
class Clump;
class ModelFramesWidget;
class ModelViewer : public ViewerInterface {
Q_OBJECT
ClumpPtr viewing;
QSplitter* mainSplit;
QVBoxLayout* mainLayout;
ViewerWidget* viewerWidget;
ModelFramesWidget* frames;
public:
ModelViewer(QWidget* parent = 0, Qt::WindowFlags f = 0);
public slots:
/**
* Display a raw model
*/
void showModel(ClumpPtr model);
/**
* Display a game object's model
*/
void showObject(uint16_t object);
};
#endif