surface_subdivision.h 997 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
#ifndef _SURFACE_SUBDIVISION_PLUGIN_H_
#define _SURFACE_SUBDIVISION_PLUGIN_H_

#include "plugin_processing.h"

#include "dialog_surface_subdivision.h"

namespace CGoGN
{

namespace SCHNApps
{

class Surface_Subdivision_Plugin : public Plugin
{
	Q_OBJECT
	Q_INTERFACES(CGoGN::SCHNApps::Plugin)

public:
	Surface_Subdivision_Plugin()
	{}

	~Surface_Subdivision_Plugin()
	{}

	virtual bool enable();
27
	virtual void disable();
28 29 30 31

private slots:
	void openSubdivisionDialog();
	void subdivideFromDialog();
Sylvain Thery's avatar
Sylvain Thery committed
32
	void appsFinished();
33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58

public slots:
	void loopSubdivision(
		const QString& mapName,
		const QString& positionAttributeName = "position"
	);
	void CCSubdivision(
		const QString& mapName,
		const QString& positionAttributeName = "position"
	);
	void trianguleFaces(
		const QString& mapName,
		const QString& positionAttributeName = "position"
	);

private:
	Dialog_Surface_Subdivision* m_subdivisionDialog;

	QAction* m_subdivisionAction;
};

} // namespace SCHNApps

} // namespace CGoGN

#endif