50 #ifndef FILESPHPLUGIN_HH
51 #define FILESPHPLUGIN_HH
72 #if QT_VERSION >= 0x050000
73 Q_PLUGIN_METADATA(IID
"org.OpenFlipper.Plugins.Plugin-FileSPH")
77 void openedFile(
int _id );
78 void addEmptyObject(
DataType _type,
int& _id);
79 void load(QString _filename,
DataType _type,
int& _id);
80 void save(
int _id , QString _filename );
81 void log(
Logtype _type, QString _message);
82 void log(QString _message);
84 void updatedObject(
int _id,
const UpdateType& _type);
88 void fileOpened(
int ){};
98 QString
name() {
return (QString(
"FileSPH")); };
99 QString
description( ) {
return (QString(tr(
"Load/Save Spheres"))); };
111 int loadObject(QString _filename);
113 bool saveObject(
int _id, QString _filename);
115 QString version() {
return QString(
"1.0"); };
119 #endif //FILESPHPLUGIN_HH
Interface class from which all plugins have to be created.
Logtype
Log types for Message Window.
QWidget * loadOptionsWidget(QString)
Interface for all Plugins which do logging to the logging window of the framework.
QWidget * saveOptionsWidget(QString)
Interface class for file handling.
DataType supportedType()
Return your supported object type( e.g. DATA_TRIANGLE_MESH )
Interface for all Plugins which provide scriptable Functions.
Interface for all plugins which want to Load or Save files and create Objects.
void initializePlugin()
Initialize Plugin.
QString description()
Return a description of what the plugin is doing.
QString name()
Return a name for the plugin.