surface_lsm_dockTab.h 947 Bytes
Newer Older
1 2 3
#ifndef _SURFACE_DEFORMATION_DOCK_TAB_H_
#define _SURFACE_DEFORMATION_DOCK_TAB_H_

4
#include "ui_surface_lsm.h"
5 6 7 8 9 10 11 12

namespace CGoGN
{

namespace SCHNApps
{

class SCHNApps;
13
class Surface_LSM_Plugin;
14 15
struct MapParameters;

16
class Surface_LSM_DockTab : public QWidget, public Ui::Surface_LSM_TabWidget
17 18 19
{
	Q_OBJECT

20
	friend class Surface_LSM_Plugin;
21 22

public:
23
	Surface_LSM_DockTab(SCHNApps* s, Surface_LSM_Plugin* p);
24 25 26

private:
	SCHNApps* m_schnapps;
27
	Surface_LSM_Plugin* m_plugin;
28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
	bool b_updatingUI;

private slots:
	void positionAttributeChanged(int index);
	void handleSelectorChanged(int index);
	void freeSelectorChanged(int index);
	void startStopButtonClicked();

private:
	void addVertexAttribute(const QString& nameAttr);
	void addVertexSelector(const QString& name);
	void removeVertexSelector(const QString& name);

	void mapParametersInitialized(bool b);

	void updateMapParameters();
};

} // namespace SCHNApps

} // namespace CGoGN

#endif