From a9a4e5c29ef0d32a371f8fed9985fa5a1dd7f6b2 Mon Sep 17 00:00:00 2001 From: Guido Ranzuglia granzuglia Date: Tue, 16 Feb 2010 10:53:42 +0000 Subject: [PATCH] skeleton files for 3dRI format plugin --- .../io_3dcoform/io_3dcoform.cpp | 30 +++++++++++++++++++ src/meshlabplugins/io_3dcoform/io_3dcoform.h | 21 +++++++++++++ .../io_3dcoform/io_3dcoform.pro | 9 ++++++ 3 files changed, 60 insertions(+) create mode 100644 src/meshlabplugins/io_3dcoform/io_3dcoform.cpp create mode 100644 src/meshlabplugins/io_3dcoform/io_3dcoform.h create mode 100644 src/meshlabplugins/io_3dcoform/io_3dcoform.pro 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