surface_distance.h 934 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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#ifndef _SURFACE_DISTANCE_PLUGIN_H_
#define _SURFACE_DISTANCE_PLUGIN_H_

#include "plugin_processing.h"

#include "dialog_computeDistance.h"

namespace CGoGN
{

namespace SCHNApps
{

class Surface_Distance_Plugin : public PluginProcessing
{
	Q_OBJECT
	Q_INTERFACES(CGoGN::SCHNApps::Plugin)

public:
	Surface_Distance_Plugin()
	{}

	~Surface_Distance_Plugin()
	{}

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

private slots:
	void openComputeDistanceDialog();
	void computeDistanceFromDialog();

	void appsFinished();

public slots:
	void computeDistance(
		const QString& mapName1,
		const QString& positionAttributeName1,
		const QString& distanceAttributeName1,
		const QString& mapName2,
		const QString& positionAttributeName2,
		const QString& distanceAttributeName2
	);

private:
	Dialog_ComputeDistance* m_computeDistanceDialog;
	QAction* m_computeDistanceAction;
};

} // namespace SCHNApps

} // namespace CGoGN

#endif