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 )
QString name()
Return a name for the plugin.
QWidget * loadOptionsWidget(QString)
Logtype
Log types for Message Window.
void slotSaveDefault()
Slot called when user wants to save the given Save options as default.
QString description()
Return a description of what the plugin is doing.
void initializePlugin()
Initialize Plugin.
Interface for all Plugins which provide scriptable Functions.
Interface class from which all plugins have to be created.
Interface for all Plugins which do logging to the logging window of the framework.
int loadObject(QString _filename)
Loads Object as triangle mesh.
FileSTLPlugin()
Constructor.
QWidget * saveOptionsWidget(QString)
Interface class for file handling.
Interface for all plugins which want to Load or Save files and create Objects.
void slotLoadDefault()
Slot called when user wants to save the given Load options as default.