renderDockTab.h 882 Bytes
Newer Older
1 2 3 4
#ifndef _RENDER_DOCK_TAB_H_
#define _RENDER_DOCK_TAB_H_

#include "ui_render.h"
5
#include "Utils/vbo.h"
6 7 8 9 10 11 12 13 14

namespace CGoGN
{

namespace SCHNApps
{

class Window;
class RenderPlugin;
15
struct ParameterSet;
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33

class RenderDockTab : public QWidget, public Ui::RenderDockWidget
{
	Q_OBJECT

public:
	RenderDockTab(Window* w, RenderPlugin* p);

private:
	Window* m_window;
	RenderPlugin* m_plugin;
	ParameterSet* m_currentParams;
	bool b_refreshingUI;

public slots:
	void refreshUI(ParameterSet* params);

	void selectedMapChanged();
34

35 36 37 38 39 40 41
	void positionVBOChanged(int index);
	void normalVBOChanged(int index);
	void renderVerticesChanged(bool b);
	void verticesScaleFactorChanged(int i);
	void renderEdgesChanged(bool b);
	void renderFacesChanged(bool b);
	void faceStyleChanged(QAbstractButton* b);
42 43

	void addVBOToList(Utils::VBO* vbo);
44 45 46 47 48 49 50
};

} // namespace SCHNApps

} // namespace CGoGN

#endif