skeleton files for 3dRI format plugin

This commit is contained in:
Guido Ranzuglia granzuglia 2010-02-16 10:53:42 +00:00
parent 587a136da6
commit a9a4e5c29e
3 changed files with 60 additions and 0 deletions

View File

@ -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<MeshIOInterface::Format> 3DCoformIOPlugin::importFormats() const
{
QList<Format> formatList;
return formatList;
}
/*
returns the list of the file's type which can be exported
*/
QList<MeshIOInterface::Format> 3DCoformIOPlugin::exportFormats() const
{
QList<Format> formatList;
formatList << Format("3DRI File Format" ,tr("3DRI"));
return formatList;
}

View File

@ -0,0 +1,21 @@
#ifndef 3DCOFORMIOPLUGIN_H
#define 3DCOFORMIOPLUGIN_H
#include <QList>
#include <common/interfaces.h>
class 3DCoformIOPlugin : public QObject, public MeshIOInterface
{
Q_OBJECT
Q_INTERFACES(MeshIOInterface)
public:
QList<Format> importFormats() const;
QList<Format> 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

View File

@ -0,0 +1,9 @@
include (../../shared.pri)
HEADERS += io_3dcoform.h
SOURCES += io_3dcoform.cpp
TARGET = io_3dcoform
QT += xml