mirror of
https://github.com/lucaspalomodevelop/meshlab.git
synced 2026-03-14 00:24:38 +00:00
removed declared edit interface - the only plugin is the factory
This commit is contained in:
parent
767c93cfd9
commit
125eceb0b5
@ -43,7 +43,7 @@ QAction* DecoratePlugin::action(QString name) const
|
||||
return 0;
|
||||
}
|
||||
|
||||
MeshLabPlugin::ActionIDType DecoratePlugin::ID(const QAction* a) const
|
||||
MeshLabPluginFile::ActionIDType DecoratePlugin::ID(const QAction* a) const
|
||||
{
|
||||
QString aa=a->text();
|
||||
foreach(ActionIDType tt, types())
|
||||
@ -57,7 +57,7 @@ MeshLabPlugin::ActionIDType DecoratePlugin::ID(const QAction* a) const
|
||||
return -1;
|
||||
}
|
||||
|
||||
MeshLabPlugin::ActionIDType DecoratePlugin::ID(QString name) const
|
||||
MeshLabPluginFile::ActionIDType DecoratePlugin::ID(QString name) const
|
||||
{
|
||||
QString n = name;
|
||||
foreach(ActionIDType tt, types())
|
||||
|
||||
@ -121,17 +121,7 @@ protected:
|
||||
std::list<QAction*> actionList;
|
||||
};
|
||||
|
||||
#define MESHLAB_EDIT_PLUGIN \
|
||||
public: \
|
||||
virtual std::pair<std::string, bool> getMLVersion() const { \
|
||||
return std::make_pair(meshlab::meshlabVersion(), meshlab::builtWithDoublePrecision()); \
|
||||
} \
|
||||
private:
|
||||
|
||||
#define EDIT_TOOL_IID "vcg.meshlab.EditTool/1.0"
|
||||
#define EDIT_PLUGIN_FACTORY_IID "vcg.meshlab.EditPluginFactory/1.0"
|
||||
|
||||
Q_DECLARE_INTERFACE(EditTool, EDIT_TOOL_IID)
|
||||
Q_DECLARE_INTERFACE(EditPluginFactory, EDIT_PLUGIN_FACTORY_IID)
|
||||
|
||||
|
||||
|
||||
@ -3,7 +3,7 @@
|
||||
|
||||
#include <QtGlobal>
|
||||
|
||||
QString FilterPlugin::pythonFilterName(MeshLabPlugin::ActionIDType f) const
|
||||
QString FilterPlugin::pythonFilterName(ActionIDType f) const
|
||||
{
|
||||
return pymeshlab::computePythonName(filterName(f));
|
||||
}
|
||||
@ -47,7 +47,7 @@ bool FilterPlugin::isFilterApplicable(const QAction* act, const MeshModel& m, QS
|
||||
return MissingItems.isEmpty();
|
||||
}
|
||||
|
||||
MeshLabPlugin::ActionIDType FilterPlugin::ID(const QAction* a) const
|
||||
MeshLabPluginFile::ActionIDType FilterPlugin::ID(const QAction* a) const
|
||||
{
|
||||
QString aa=a->text();
|
||||
for(ActionIDType tt : qAsConst(typeList))
|
||||
@ -61,7 +61,7 @@ MeshLabPlugin::ActionIDType FilterPlugin::ID(const QAction* a) const
|
||||
return -1;
|
||||
}
|
||||
|
||||
QAction* FilterPlugin::getFilterAction(MeshLabPlugin::ActionIDType filterID)
|
||||
QAction* FilterPlugin::getFilterAction(ActionIDType filterID)
|
||||
{
|
||||
QString idName = this->filterName(filterID);
|
||||
return getFilterAction(idName);
|
||||
|
||||
@ -52,12 +52,6 @@
|
||||
class MeshLabPlugin
|
||||
{
|
||||
public:
|
||||
/**
|
||||
* @brief the type used to identify plugin actions;
|
||||
* there is a one-to-one relation between an ID and an Action.
|
||||
*/
|
||||
typedef int ActionIDType;
|
||||
|
||||
MeshLabPlugin();
|
||||
virtual ~MeshLabPlugin() {}
|
||||
|
||||
|
||||
@ -44,6 +44,12 @@ public:
|
||||
MeshLabPluginFile() : enabled(true) {};
|
||||
virtual ~MeshLabPluginFile() {}
|
||||
|
||||
/**
|
||||
* @brief the type used to identify plugin actions;
|
||||
* there is a one-to-one relation between an ID and an Action.
|
||||
*/
|
||||
typedef int ActionIDType;
|
||||
|
||||
/**
|
||||
* This function will be automatically defined in your plugin class
|
||||
* when you use the MESHLAB_PLUGIN_IID_EXPORTER macro.
|
||||
|
||||
@ -34,10 +34,8 @@
|
||||
class EditAlignPlugin : public QObject, public EditTool
|
||||
{
|
||||
Q_OBJECT
|
||||
MESHLAB_EDIT_PLUGIN
|
||||
Q_INTERFACES(EditTool)
|
||||
|
||||
enum
|
||||
enum
|
||||
{
|
||||
ALIGN_IDLE = 0x01,
|
||||
ALIGN_INSPECT_ARC = 0x02,
|
||||
|
||||
@ -32,8 +32,6 @@
|
||||
class EditManipulatorsPlugin : public QObject, public EditTool
|
||||
{
|
||||
Q_OBJECT
|
||||
MESHLAB_EDIT_PLUGIN
|
||||
Q_INTERFACES(EditTool)
|
||||
|
||||
public:
|
||||
|
||||
|
||||
@ -50,8 +50,6 @@ public:
|
||||
class EditMeasurePlugin : public QObject, public EditTool
|
||||
{
|
||||
Q_OBJECT
|
||||
MESHLAB_EDIT_PLUGIN
|
||||
Q_INTERFACES(EditTool)
|
||||
|
||||
public:
|
||||
EditMeasurePlugin();
|
||||
|
||||
@ -36,9 +36,7 @@
|
||||
class EditMutualCorrsPlugin : public QObject, public EditTool
|
||||
{
|
||||
Q_OBJECT
|
||||
MESHLAB_EDIT_PLUGIN
|
||||
Q_INTERFACES(EditTool)
|
||||
|
||||
|
||||
public:
|
||||
EditMutualCorrsPlugin();
|
||||
virtual ~EditMutualCorrsPlugin() {}
|
||||
|
||||
@ -51,8 +51,6 @@ enum PaintOptions {
|
||||
*/
|
||||
class EditPaintPlugin : public QObject, public EditTool {
|
||||
Q_OBJECT
|
||||
MESHLAB_EDIT_PLUGIN
|
||||
Q_INTERFACES(EditTool)
|
||||
|
||||
public:
|
||||
EditPaintPlugin();
|
||||
|
||||
@ -36,9 +36,7 @@
|
||||
class EditPickPointsPlugin : public QObject, public EditTool
|
||||
{
|
||||
Q_OBJECT
|
||||
MESHLAB_EDIT_PLUGIN
|
||||
Q_INTERFACES(EditTool)
|
||||
|
||||
|
||||
public:
|
||||
//constructor
|
||||
EditPickPointsPlugin();
|
||||
|
||||
@ -30,9 +30,7 @@
|
||||
class EditPointPlugin : public QObject, public EditTool
|
||||
{
|
||||
Q_OBJECT
|
||||
MESHLAB_EDIT_PLUGIN
|
||||
Q_INTERFACES(EditTool)
|
||||
|
||||
|
||||
public:
|
||||
enum {SELECT_DEFAULT_MODE, SELECT_FITTING_PLANE_MODE};
|
||||
|
||||
|
||||
@ -41,8 +41,6 @@ FIRST RELEASE
|
||||
class QualityMapperPlugin : public QObject, public EditTool
|
||||
{
|
||||
Q_OBJECT
|
||||
MESHLAB_EDIT_PLUGIN
|
||||
Q_INTERFACES(EditTool)
|
||||
|
||||
private:
|
||||
QualityMapperDialog *_qualityMapperDialog;
|
||||
|
||||
@ -35,9 +35,7 @@
|
||||
class EditReferencingPlugin : public QObject, public EditTool
|
||||
{
|
||||
Q_OBJECT
|
||||
MESHLAB_EDIT_PLUGIN
|
||||
Q_INTERFACES(EditTool)
|
||||
|
||||
|
||||
public:
|
||||
|
||||
enum refModeType {REF_ABSOLUTE, REF_SCALE};
|
||||
|
||||
@ -30,9 +30,7 @@
|
||||
class SampleEditPlugin : public QObject, public EditTool
|
||||
{
|
||||
Q_OBJECT
|
||||
MESHLAB_EDIT_PLUGIN
|
||||
Q_INTERFACES(EditTool)
|
||||
|
||||
|
||||
public:
|
||||
SampleEditPlugin();
|
||||
virtual ~SampleEditPlugin() {}
|
||||
|
||||
@ -28,8 +28,6 @@
|
||||
class EditSelectPlugin : public QObject, public EditTool
|
||||
{
|
||||
Q_OBJECT
|
||||
MESHLAB_EDIT_PLUGIN
|
||||
Q_INTERFACES(EditTool)
|
||||
|
||||
|
||||
public:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user