importVolume.h 955 Bytes
Newer Older
1 2
#ifndef _IMPORTVOLUME_PLUGIN_H_
#define _IMPORTVOLUME_PLUGIN_H_
3 4 5 6

#include "plugin.h"


7 8
namespace CGoGN
{
9

10 11
namespace SCHNApps
{
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31

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

public:
	ImportVolumePlugin()
	{
		setProvidesRendering(false);
	}

	~ImportVolumePlugin()
	{}

	virtual bool enable();
	virtual void disable() {}

	virtual void redraw(View *view) {}

32 33 34 35 36 37
	virtual void keyPress(View* view, QKeyEvent* event) {}
	virtual void keyRelease(View* view, QKeyEvent* event) {}
	virtual void mousePress(View* view, QMouseEvent* event) {}
	virtual void mouseRelease(View* view, QMouseEvent* event) {}
	virtual void mouseMove(View* view, QMouseEvent* event) {}
	virtual void wheelEvent(View* view, QWheelEvent* event) {}
38 39

public slots:
40
	MapHandlerGen* importFromFile(const QString& fileName);
41
	void importFromFileDialog();
42 43 44 45 46

private:
	QAction* importAction;
};

47 48 49 50
} // namespace SCHNApps

} // namespace CGoGN

51
#endif