51 #ifndef FILESTLPLUGIN_HH
52 #define FILESTLPLUGIN_HH
80 #if QT_VERSION >= 0x050000
81 Q_PLUGIN_METADATA(IID
"org.OpenFlipper.Plugins.Plugin-FileSTL")
85 void openedFile(
int _id );
86 void addEmptyObject(
DataType _type,
int& _id);
87 void load(QString _filename,
DataType _type,
int& _id);
88 void save(
int _id , QString _filename );
89 void log(
Logtype _type, QString _message);
90 void log(QString _message);
92 void updatedObject(
int _identifier,
const UpdateType& _type);
94 void deleteObject(
int _id );
98 void fileOpened(
int ){};
116 QString
name() {
return (QString(
"FileSTL")); };
117 QString
description( ) {
return (QString(tr(
"Load/Save STL-Files"))); };
132 bool saveObject(
int _id, QString _filename);
134 QString version() {
return QString(
"1.0"); };
139 QWidget* saveOptions_;
140 QWidget* loadOptions_;
142 QCheckBox* saveBinary_;
143 QLabel* savePrecisionLabel_;
144 QSpinBox* savePrecision_;
146 QCheckBox* loadFaceNormal_;
148 QPushButton* saveDefaultButton_;
149 QPushButton* loadDefaultButton_;
152 #endif //FILESTLPLUGIN_HH
DataType supportedType()
Return your supported object type( e.g. DATA_TRIANGLE_MESH )
FileSTLPlugin()
Constructor.
void slotLoadDefault()
Slot called when user wants to save the given Load options as default.
Interface for all plugins which want to Load or Save files and create Objects.
Interface for all Plugins which provide scriptable Functions.
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.
Interface class from which all plugins have to be created.
QString description()
Return a description of what the plugin is doing.
Logtype
Log types for Message Window.
int loadObject(QString _filename)
Loads Object as triangle mesh.
Interface class for file handling.
void initializePlugin()
Initialize Plugin.
QString name()
Return a name for the plugin.
QWidget * saveOptionsWidget(QString)
QWidget * loadOptionsWidget(QString)