50 #ifndef FILEBVHPLUGIN_HH
51 #define FILEBVHPLUGIN_HH
78 #if QT_VERSION >= 0x050000
79 Q_PLUGIN_METADATA(IID
"org.OpenFlipper.Plugins.Plugin-FileBVH")
82 void openedFile(
int _id );
83 void addEmptyObject(
DataType _type,
int& _id);
84 void load(QString _filename,
DataType _type,
int& _id);
85 void save(
int _id , QString _filename );
86 void log(
Logtype _type, QString _message);
87 void log(QString _message);
89 void updatedObject(
int _identifier,
const UpdateType& _type);
92 void deleteObject(
int _id );
96 void fileOpened(
int ){};
108 QString
name() {
return (QString(
"FileBVH")); };
109 QString
description( ) {
return (QString(tr(
"Load/Save BioVision Format"))); };
121 bool writeSkeleton( std::ostream& _out,
Skeleton& _skeleton );
125 bool ignoreJointScaling_;
127 QWidget* loadOptions_;
128 QCheckBox* checkJointScaling_;
129 QPushButton* loadDefaultButton_;
139 bool saveObject(
int _id, QString _filename);
141 QString version() {
return QString(
"1.0"); };
145 #endif //FILEBVHPLUGIN_HH
QString name()
Return a name for the plugin.
Interface class from which all plugins have to be created.
Logtype
Log types for Message Window.
QWidget * saveOptionsWidget(QString)
QString description()
Return a description of what the plugin is doing.
Interface for all Plugins which do logging to the logging window of the framework.
QWidget * loadOptionsWidget(QString)
Interface class for file handling.
void initializePlugin()
Initialize Plugin.
Interface for all Plugins which provide scriptable Functions.
DataType supportedType()
Return your supported object type( e.g. DATA_TRIANGLE_MESH )
int loadObject(QString _filename)
Loads Object.
Interface for all plugins which want to Load or Save files and create Objects.
FileBVHPlugin()
Constructor.
void slotLoadDefault()
Slot called when user wants to save the given Load options as default.