import.h 1.18 KB
Newer Older
1
2
3
4
#ifndef _IMPORT_PLUGIN_H_
#define _IMPORT_PLUGIN_H_

#include "plugin.h"
Pierre Kraemer's avatar
Pierre Kraemer committed
5
#include "view.h"
6
7
8
9
10
11

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


Pierre Kraemer's avatar
Pierre Kraemer committed
12
13
14
15
16
using namespace CGoGN;
using namespace SCHNApps;


struct PFP: public PFP_STANDARD
17
{
Pierre Kraemer's avatar
Pierre Kraemer committed
18
	typedef EmbeddedMap2 MAP;
19
20
21
22
23
24
25
26
};

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

class ImportPlugin : public Plugin
{
	Q_OBJECT
Pierre Kraemer's avatar
Pierre Kraemer committed
27
	Q_INTERFACES(CGoGN::SCHNApps::Plugin)
28
29
30
31
32
33
34
35
36
37

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

	~ImportPlugin()
	{}

38
39
	virtual bool enable();
	virtual void disable();
40
41
42
43
44
45
46
47
48
49
50
51

	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) {}
52
	virtual void currentViewChanged(View* view) {}
53
54
55
56
57
58
59
60

public slots:
	void cb_import();

private:
	QAction* importAction;
};

61
#endif