44 #ifndef FILESPHPLUGIN_HH 45 #define FILESPHPLUGIN_HH 66 Q_PLUGIN_METADATA(IID
"org.OpenFlipper.Plugins.Plugin-FileSPH")
69 void openedFile(
int _id );
70 void addEmptyObject(
DataType _type,
int& _id);
71 void load(QString _filename,
DataType _type,
int& _id);
72 void save(
int _id , QString _filename );
73 void log(
Logtype _type, QString _message);
74 void log(QString _message);
76 void updatedObject(
int _id,
const UpdateType& _type);
80 void fileOpened(
int ){};
90 QString
name() {
return (QString(
"FileSPH")); };
91 QString
description( ) {
return (QString(tr(
"Load/Save Spheres"))); };
103 int loadObject(QString _filename);
105 bool saveObject(
int _id, QString _filename);
107 QString version() {
return QString(
"1.0"); };
111 #endif //FILESPHPLUGIN_HH
Logtype
Log types for Message Window.
void initializePlugin()
Initialize Plugin.
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.
QWidget * saveOptionsWidget(QString)
Interface class from which all plugins have to be created.
DataType supportedType()
Return your supported object type( e.g. DATA_TRIANGLE_MESH )
Interface class for file handling.
QString name()
Return a name for the plugin.
QString description()
Return a description of what the plugin is doing.
QWidget * loadOptionsWidget(QString)