mirror of
https://github.com/lucaspalomodevelop/meshlab.git
synced 2026-03-18 10:34:41 +00:00
Usable version. Still working on.
This commit is contained in:
parent
ca5ac3fc66
commit
cb856b34e7
@ -18,6 +18,7 @@
|
||||
** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
|
||||
**
|
||||
****************************************************************************/
|
||||
#include <QtGui>
|
||||
|
||||
#include "dummy.h"
|
||||
|
||||
@ -27,6 +28,4 @@ void DummyPlugin::Render(QAction *a, MeshModel &m, RenderMode &rm, GLArea *gla)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
Q_EXPORT_PLUGIN(DummyPlugin)
|
||||
|
||||
Q_EXPORT_PLUGIN(DummyPlugin)
|
||||
@ -24,31 +24,30 @@
|
||||
|
||||
#include <QObject>
|
||||
#include <QAction>
|
||||
#include <QString>
|
||||
#include <QList>
|
||||
|
||||
#include <meshlab/glArea.h>
|
||||
#include <meshlab/meshmodel.h>
|
||||
#include <meshlab/interfaces.h>
|
||||
|
||||
|
||||
class DummyPlugin : public QObject, public MeshRenderInterface
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_INTERFACES(MeshRenderInterface)
|
||||
|
||||
QList<QAction *> actionList;
|
||||
QList <QAction *> actionList;
|
||||
|
||||
public:
|
||||
ExtraMeshIOPlugin()
|
||||
DummyPlugin()
|
||||
{
|
||||
actionList<<new QAction(QString("action 1"),this);
|
||||
actionList<<new QAction(QString("action 2"),this);
|
||||
actionList<<new QAction(QString("action 3"),this);
|
||||
actionList << new QAction(QString("action 1"),this);
|
||||
actionList << new QAction(QString("action 2"),this);
|
||||
actionList << new QAction(QString("action 3"),this);
|
||||
}
|
||||
|
||||
QList<QAction *> actions () {return actionList;}
|
||||
|
||||
virtual void Render(QAction *, MeshModel &, RenderMode &, GLArea *);
|
||||
QList<QAction *> actions () const {return actionList;}
|
||||
|
||||
void Render(QAction *a, MeshModel &m, RenderMode &rm, GLArea *gla);
|
||||
};
|
||||
|
||||
#endif
|
||||
#endif
|
||||
Loading…
x
Reference in New Issue
Block a user