45 #ifndef FILESTLPLUGIN_HH 46 #define FILESTLPLUGIN_HH 76 Q_PLUGIN_METADATA(IID
"org.OpenFlipper.Plugins.Plugin-FileSTL")
79 void openedFile(
int _id );
80 void addEmptyObject(
DataType _type,
int& _id);
81 void load(QString _filename,
DataType _type,
int& _id);
82 void save(
int _id , QString _filename );
83 void log(
Logtype _type, QString _message);
84 void log(QString _message);
86 void updatedObject(
int _identifier,
const UpdateType& _type);
88 void deleteObject(
int _id );
90 void setSlotDescription(QString _slotName, QString _slotDescription,
91 QStringList _parameters, QStringList _descriptions);
95 void fileOpened(
int ){};
113 QString
name() {
return (QString(
"FileSTL")); };
114 QString
description( ) {
return (QString(tr(
"Load/Save STL-Files"))); };
129 bool saveObject(
int _id, QString _filename);
140 bool saveObject(
int _id, QString _filename,
const bool _binary ,
const std::streamsize _precision = 6 );
142 QString version() {
return QString(
"1.0"); };
147 QWidget* saveOptions_;
148 QWidget* loadOptions_;
150 QCheckBox* saveBinary_;
151 QLabel* savePrecisionLabel_;
152 QSpinBox* savePrecision_;
154 QCheckBox* loadFaceNormal_;
156 QPushButton* saveDefaultButton_;
157 QPushButton* loadDefaultButton_;
160 #endif //FILESTLPLUGIN_HH QString description()
Return a description of what the plugin is doing.
void initializePlugin()
Initialize Plugin.
Interface class for exporting functions to python.
DataType supportedType()
Return your supported object type( e.g. DATA_TRIANGLE_MESH )
QWidget * loadOptionsWidget(QString)
Logtype
Log types for Message Window.
Interface for all Plugins which do logging to the logging window of the framework.
FileSTLPlugin()
Constructor.
int loadObject(QString _filename)
Loads Object as triangle mesh.
void slotLoadDefault()
Slot called when user wants to save the given Load options as default.
QString name()
Return a name for the plugin.
QWidget * saveOptionsWidget(QString)
Interface for all Plugins which provide scriptable Functions.
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.
Interface class for file handling.
Interface for all plugins which want to Load or Save files and create Objects.