surface_renderVector_dockTab.h 1.03 KB
Newer Older
1 2
#ifndef _SURFACE_RENDERVECTOR_DOCK_TAB_H_
#define _SURFACE_RENDERVECTOR_DOCK_TAB_H_
Pierre Kraemer's avatar
Pierre Kraemer committed
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31

#include "ui_surface_renderVector.h"

namespace CGoGN
{

namespace SCHNApps
{

class SCHNApps;
class Surface_RenderVector_Plugin;
struct MapParameters;

class Surface_RenderVector_DockTab : public QWidget, public Ui::Surface_RenderVector_TabWidget
{
	Q_OBJECT

	friend class Surface_RenderVector_Plugin;

public:
	Surface_RenderVector_DockTab(SCHNApps* s, Surface_RenderVector_Plugin* p);

private:
	SCHNApps* m_schnapps;
	Surface_RenderVector_Plugin* m_plugin;
	bool b_updatingUI;

private slots:
	void positionVBOChanged(int index);
32 33
	void selectedVectorVBOChanged(QListWidgetItem* item, QListWidgetItem* old);
	void vectorsVBOChecked(QListWidgetItem* item);
Pierre Kraemer's avatar
Pierre Kraemer committed
34
	void vectorsScaleFactorChanged(int i);
35
	void colorChanged(int i);
Pierre Kraemer's avatar
Pierre Kraemer committed
36 37 38 39 40 41 42 43 44 45 46 47 48 49 50

private:
	void addPositionVBO(QString name);
	void removePositionVBO(QString name);
	void addVectorVBO(QString name);
	void removeVectorVBO(QString name);

	void updateMapParameters();
};

} // namespace SCHNApps

} // namespace CGoGN

#endif