50 #ifndef FILESKLPLUGIN_HH
51 #define FILESKLPLUGIN_HH
62 #include <OpenFlipper/BasePlugin/INIInterface.hh>
74 #if QT_VERSION >= 0x050000
75 Q_PLUGIN_METADATA(IID
"org.OpenFlipper.Plugins.Plugin-FileSkeleton")
78 void openedFile(
int _id );
79 void addEmptyObject(
DataType _type,
int& _id);
80 void load(QString _filename,
DataType _type,
int& _id);
81 void save(
int _id , QString _filename );
82 void log(
Logtype _type, QString _message);
83 void log(QString _message);
84 void updatedObject(
int _identifier,
const UpdateType& _type);
88 void fileOpened(
int ){};
101 QString
name() {
return (QString(
"FileSKL")); };
102 QString
description( ) {
return (QString(
"Load/Save Skeletons")); };
114 int loadObject(QString _filename);
116 bool saveObject(
int _id, QString _filename);
119 template<
typename Skeleton>
bool LoadSkeleton(
Skeleton *_pSkeleton, QString _filename);
120 template<
typename Skeleton>
bool SaveSkeleton(
Skeleton *_pSkeleton, QString _filename);
124 #endif //FILESKLPLUGIN_HH
Interface class from which all plugins have to be created.
Interface class for Plugins which have to store information in ini files.
void loadIniFile(INIFile &_ini, int _id)
Load per object settings.
Logtype
Log types for Message Window.
Interface for all Plugins which do logging to the logging window of the framework.
void initializePlugin()
Initialize Plugin.
QString name()
Return a name for the plugin.
Interface class for file handling.
QString description()
Return a description of what the plugin is doing.
Class for the handling of simple configuration files.
Interface for all Plugins which provide scriptable Functions.
QWidget * saveOptionsWidget(QString)
Interface for all plugins which want to Load or Save files and create Objects.
void saveIniFile(INIFile &_ini, int _id)
Save per object settings.
DataType supportedType()
Return your supported object type( e.g. DATA_TRIANGLE_MESH )
QWidget * loadOptionsWidget(QString)