mirror of
https://github.com/lucaspalomodevelop/meshlab.git
synced 2026-03-20 11:26:11 +00:00
Added plugin info methods
This commit is contained in:
parent
69a80ac4fa
commit
288aff1699
@ -23,6 +23,9 @@
|
||||
/****************************************************************************
|
||||
History
|
||||
$Log$
|
||||
Revision 1.7 2005/12/12 22:48:42 cignoni
|
||||
Added plugin info methods
|
||||
|
||||
Revision 1.6 2005/12/08 22:52:50 cignoni
|
||||
Added safer min max search
|
||||
|
||||
@ -43,6 +46,21 @@ Added copyright info
|
||||
|
||||
using namespace vcg;
|
||||
|
||||
|
||||
const ActionInfo &MeshColorCurvaturePlugin::Info(QAction *)
|
||||
{
|
||||
ActionInfo ai;
|
||||
ai.Help=tr("Generic Help for an action");
|
||||
return ai;
|
||||
}
|
||||
|
||||
const PluginInfo &MeshColorCurvaturePlugin::Info()
|
||||
{
|
||||
PluginInfo ai;
|
||||
ai.Date=tr("__DATE__");
|
||||
return ai;
|
||||
}
|
||||
|
||||
static void Gaussian(CMeshO &m){
|
||||
|
||||
assert(m.HasPerVertexQuality());
|
||||
|
||||
@ -46,7 +46,9 @@ class MeshColorCurvaturePlugin : public QObject, public MeshColorizeInterface
|
||||
QList <QAction *> actionList;
|
||||
|
||||
public:
|
||||
|
||||
virtual const ActionInfo &Info(QAction *);
|
||||
virtual const PluginInfo &Info();
|
||||
|
||||
MeshColorCurvaturePlugin()
|
||||
{
|
||||
QAction *qa;
|
||||
|
||||
@ -23,6 +23,9 @@
|
||||
/****************************************************************************
|
||||
History
|
||||
$Log$
|
||||
Revision 1.4 2005/12/12 22:48:42 cignoni
|
||||
Added plugin info methods
|
||||
|
||||
Revision 1.3 2005/12/12 11:19:41 cignoni
|
||||
Added bbox corners and axis,
|
||||
cleaned up the identification between by string of decorations
|
||||
@ -37,7 +40,20 @@ cleaned up the identification between by string of decorations
|
||||
#include "meshdecorate.h"
|
||||
|
||||
using namespace vcg;
|
||||
const ActionInfo &ExtraMeshDecoratePlugin::Info(QAction *)
|
||||
{
|
||||
ActionInfo ai;
|
||||
ai.Help=tr("Generic Help for an action");
|
||||
return ai;
|
||||
}
|
||||
|
||||
const PluginInfo &ExtraMeshDecoratePlugin::Info()
|
||||
{
|
||||
PluginInfo ai;
|
||||
ai.Date=tr("__DATE__");
|
||||
return ai;
|
||||
}
|
||||
|
||||
const QString ExtraMeshDecoratePlugin::ST(int id) const
|
||||
{
|
||||
switch(id)
|
||||
|
||||
@ -23,6 +23,9 @@
|
||||
/****************************************************************************
|
||||
History
|
||||
$Log$
|
||||
Revision 1.5 2005/12/12 22:47:35 cignoni
|
||||
Added plugin info methods
|
||||
|
||||
Revision 1.4 2005/12/12 11:19:41 cignoni
|
||||
Added bbox corners and axis,
|
||||
cleaned up the identification between by string of decorations
|
||||
@ -42,7 +45,9 @@ class ExtraMeshDecoratePlugin : public QObject, public MeshDecorateInterface
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_INTERFACES(MeshDecorateInterface)
|
||||
|
||||
virtual const ActionInfo &Info(QAction *);
|
||||
virtual const PluginInfo &Info();
|
||||
|
||||
QList <QAction *> actionList;
|
||||
enum {
|
||||
DP_SHOW_NORMALS = 1,
|
||||
|
||||
@ -23,6 +23,9 @@
|
||||
/****************************************************************************
|
||||
History
|
||||
$Log$
|
||||
Revision 1.18 2005/12/12 22:48:42 cignoni
|
||||
Added plugin info methods
|
||||
|
||||
Revision 1.17 2005/12/09 20:56:16 giec
|
||||
Added the call to cluster algorithm
|
||||
|
||||
@ -77,9 +80,24 @@ ExtraMeshFilterPlugin::ExtraMeshFilterPlugin() {
|
||||
|
||||
QList<QAction *> ExtraMeshFilterPlugin::actions() const {
|
||||
return actionList;
|
||||
|
||||
}
|
||||
|
||||
|
||||
const ActionInfo &ExtraMeshFilterPlugin::Info(QAction *)
|
||||
{
|
||||
ActionInfo ai;
|
||||
ai.Help=tr("Generic Help for an action");
|
||||
return ai;
|
||||
}
|
||||
|
||||
const PluginInfo &ExtraMeshFilterPlugin::Info()
|
||||
{
|
||||
PluginInfo ai;
|
||||
ai.Date=tr("__DATE__");
|
||||
return ai;
|
||||
}
|
||||
|
||||
|
||||
bool ExtraMeshFilterPlugin::applyFilter(QAction *filter, MeshModel &m, QWidget *parent, vcg::CallBackPos *cb)
|
||||
{
|
||||
if(filter->text() == tr("Loop Subdivision Surface") )
|
||||
|
||||
@ -36,6 +36,8 @@ class ExtraMeshFilterPlugin : public QObject, public MeshFilterInterface
|
||||
|
||||
public:
|
||||
ExtraMeshFilterPlugin();
|
||||
virtual const ActionInfo &Info(QAction *);
|
||||
virtual const PluginInfo &Info();
|
||||
|
||||
virtual QList<QAction *> actions() const;
|
||||
bool applyFilter(QAction *filter, MeshModel &m, QWidget *parent, vcg::CallBackPos * cb) ;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user