import.h 1.11 KB
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
27
28
29
30
31
32
33
#ifndef _IMPORT_PLUGIN_H_
#define _IMPORT_PLUGIN_H_

#include "plugin.h"

#include "Topology/generic/functor.h"
#include "Topology/generic/parameters.h"
#include "Topology/map/embeddedMap2.h"


struct PFP: public CGoGN::PFP_STANDARD
{
	typedef CGoGN::EmbeddedMap2 MAP;
};

typedef PFP::MAP MAP;
typedef PFP::VEC3 VEC3;


class ImportPlugin : public Plugin
{
	Q_OBJECT
	Q_INTERFACES(Plugin)

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

	~ImportPlugin()
	{}

34
35
	virtual bool enable();
	virtual void disable();
36
37
38
39
40
41
42
43
44
45
46
47

	virtual void redraw(View *view) {}

	virtual void keyPress(View* view, int key) {}
	virtual void keyRelease(View* view, int key) {}
	virtual void mousePress(View* view, int button, int x, int y) {}
	virtual void mouseRelease(View* view, int button, int x, int y) {}
	virtual void mouseMove(View* view, int buttons, int x, int y) {}
	virtual void wheelEvent(View* view, int delta, int x, int y) {}

	virtual void viewLinked(View* view) {}
	virtual void viewUnlinked(View* view) {}
48
	virtual void currentViewChanged(View* view) {}
49
50
51
52
53
54
55
56

public slots:
	void cb_import();

private:
	QAction* importAction;
};

57
#endif