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"); };
Logtype
Log types for Message Window.
Interface class from which all plugins have to be created.
Interface class for file handling.
QWidget * saveOptionsWidget(QString)
DataType supportedType()
Return your supported object type( e.g. DATA_TRIANGLE_MESH )
QString description()
Return a description of what the plugin is doing.
QWidget * loadOptionsWidget(QString)
QString name()
Return a name for the plugin.
void initializePlugin()
Initialize Plugin.
Interface for all plugins which want to Load or Save files and create Objects.
Interface for all Plugins which do logging to the logging window of the framework.
Interface for all Plugins which provide scriptable Functions.