mirror of
https://github.com/lucaspalomodevelop/meshlab.git
synced 2026-03-18 10:34:41 +00:00
skeleton files for 3dRI format plugin
This commit is contained in:
parent
587a136da6
commit
a9a4e5c29e
30
src/meshlabplugins/io_3dcoform/io_3dcoform.cpp
Normal file
30
src/meshlabplugins/io_3dcoform/io_3dcoform.cpp
Normal 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;
|
||||
}
|
||||
21
src/meshlabplugins/io_3dcoform/io_3dcoform.h
Normal file
21
src/meshlabplugins/io_3dcoform/io_3dcoform.h
Normal 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
|
||||
9
src/meshlabplugins/io_3dcoform/io_3dcoform.pro
Normal file
9
src/meshlabplugins/io_3dcoform/io_3dcoform.pro
Normal file
@ -0,0 +1,9 @@
|
||||
include (../../shared.pri)
|
||||
|
||||
HEADERS += io_3dcoform.h
|
||||
|
||||
SOURCES += io_3dcoform.cpp
|
||||
|
||||
TARGET = io_3dcoform
|
||||
|
||||
QT += xml
|
||||
Loading…
x
Reference in New Issue
Block a user