diff --git a/src/meshlabplugins/io_3dcoform/io_3dcoform.cpp b/src/meshlabplugins/io_3dcoform/io_3dcoform.cpp new file mode 100644 index 000000000..862c25b42 --- /dev/null +++ b/src/meshlabplugins/io_3dcoform/io_3dcoform.cpp @@ -0,0 +1,30 @@ +#include "io_3dcoform.h" + +bool 3DCoformIOPlugin::open(const QString &formatName, const QString &fileName, MeshModel &m, int& mask, const RichParameterSet &par, vcg::CallBackPos *cb=0, QWidget *parent=0) +{ + return true; +} + +bool 3DCoformIOPlugin::save(const QString &formatName, const QString &fileName, MeshModel &m, const int mask, const RichParameterSet &, vcg::CallBackPos *cb=0, QWidget *parent= 0)ù +{ + return false; +} + +/* + returns the list of the file's type which can be imported +*/ +QList 3DCoformIOPlugin::importFormats() const +{ + QList formatList; + return formatList; +} + +/* + returns the list of the file's type which can be exported +*/ +QList 3DCoformIOPlugin::exportFormats() const +{ + QList formatList; + formatList << Format("3DRI File Format" ,tr("3DRI")); + return formatList; +} \ No newline at end of file diff --git a/src/meshlabplugins/io_3dcoform/io_3dcoform.h b/src/meshlabplugins/io_3dcoform/io_3dcoform.h new file mode 100644 index 000000000..f34bfdef1 --- /dev/null +++ b/src/meshlabplugins/io_3dcoform/io_3dcoform.h @@ -0,0 +1,21 @@ +#ifndef 3DCOFORMIOPLUGIN_H +#define 3DCOFORMIOPLUGIN_H + +#include +#include + +class 3DCoformIOPlugin : public QObject, public MeshIOInterface +{ + Q_OBJECT + Q_INTERFACES(MeshIOInterface) +public: + + QList importFormats() const; + QList exportFormats() const; + + + bool open(const QString &formatName, const QString &fileName, MeshModel &m, int& mask, const RichParameterSet &par, vcg::CallBackPos *cb=0, QWidget *parent=0); + bool save(const QString &formatName, const QString &fileName, MeshModel &m, const int mask, const RichParameterSet &, vcg::CallBackPos *cb=0, QWidget *parent= 0); +}; + +#endif \ No newline at end of file diff --git a/src/meshlabplugins/io_3dcoform/io_3dcoform.pro b/src/meshlabplugins/io_3dcoform/io_3dcoform.pro new file mode 100644 index 000000000..62638cad3 --- /dev/null +++ b/src/meshlabplugins/io_3dcoform/io_3dcoform.pro @@ -0,0 +1,9 @@ +include (../../shared.pri) + +HEADERS += io_3dcoform.h + +SOURCES += io_3dcoform.cpp + +TARGET = io_3dcoform + +QT += xml \ No newline at end of file