44 #ifndef FILEPLYPLUGIN_HH 45 #define FILEPLYPLUGIN_HH 78 Q_PLUGIN_METADATA(IID
"org.OpenFlipper.Plugins.Plugin-PLY")
81 void openedFile(
int _id );
82 void addEmptyObject(
DataType _type,
int& _id);
83 void load(QString _filename,
DataType _type,
int& _id);
84 void save(
int _id , QString _filename );
85 void log(
Logtype _type, QString _message);
86 void log(QString _message);
88 void updatedObject(
int _identifier,
const UpdateType& _type);
90 void deleteObject(
int _id );
94 void fileOpened(
int ){};
115 QString
name() {
return (QString(
"FilePLY")); };
116 QString
description( ) {
return (QString(tr(
"Load/Save PLY-Files"))); };
140 bool saveObject(
int _id, QString _filename);
142 QString version() {
return QString(
"1.0"); };
148 template <
class MeshT>
152 QWidget* loadOptions_;
153 QWidget* saveOptions_;
155 QCheckBox* saveBinary_;
156 QCheckBox* saveVertexNormal_;
157 QCheckBox* saveVertexColor_;
158 QCheckBox* saveVertexTexCoord_;
159 QCheckBox* saveFaceNormal_;
160 QCheckBox* saveFaceColor_;
161 QLabel* savePrecisionLabel_;
162 QSpinBox* savePrecision_;
163 QPushButton* saveDefaultButton_;
165 QComboBox* triMeshHandling_;
166 QCheckBox* loadVertexNormal_;
167 QCheckBox* loadVertexColor_;
168 QCheckBox* loadVertexTexCoord_;
169 QCheckBox* loadFaceNormal_;
170 QCheckBox* loadFaceColor_;
171 QPushButton* loadDefaultButton_;
176 #if defined(INCLUDE_TEMPLATES) && !defined(FILEPLYPLUGIN_C) 177 #define FILEPLYPLUGIN_TEMPLATES 178 #include "FilePLYT_impl.hh" 181 #endif //FILEPLYPLUGIN_HH void slotLoadDefault()
Slot called when user wants to save the given Load options as default.
QWidget * loadOptionsWidget(QString)
int loadObject(QString _filename)
Loads Object and converts it to a triangle mesh if possible.
int loadTriMeshObject(QString _filename, OpenMesh::IO::Options &_opt)
Loads a triangle mesh.
DataType supportedType()
Return your supported object type( e.g. DATA_TRIANGLE_MESH )
Interface class for exporting functions to python.
Logtype
Log types for Message Window.
int loadPolyMeshObject(QString _filename, OpenMesh::IO::Options &_opt)
Always loads mesh as polymesh.
Interface for all Plugins which do logging to the logging window of the framework.
void slotSaveDefault()
Slot called when user wants to save the given Save options as default.
void handleTrimeshDialog()
Displays a dialog to ask how to load the mesh (triangle, polymesh , autodetect)
void initializePlugin()
Initialize Plugin.
QWidget * saveOptionsWidget(QString)
Set options for reader/writer modules.
Interface for all Plugins which provide scriptable Functions.
QString description()
Return a description of what the plugin is doing.
QString name()
Return a name for the plugin.
FilePLYPlugin()
Constructor.
void backupTextureCoordinates(MeshT &_mesh)
creates a backup of the original per vertex/face texture coordinates
Interface class from which all plugins have to be created.
Interface class for file handling.
Interface for all plugins which want to Load or Save files and create Objects.