67 #if QT_VERSION >= 0x050000 68 Q_PLUGIN_METADATA(IID
"org.OpenFlipper.Plugins.Plugin-FileHeightFieldImage")
72 void openedFile(
int _id );
73 void addEmptyObject(
DataType _type,
int& _id);
74 void load(QString _filename,
DataType _type,
int& _id);
75 void save(
int _id , QString _filename );
76 void log(
Logtype _type, QString _message);
77 void log(QString _message);
78 void updatedObject(
int _identifier,
const UpdateType& _type);
82 void fileOpened(
int ){};
88 bool showImageDialog(
const QImage& _image,
int* minX,
int* maxX,
int* minY,
int* maxY,
double* height);
94 QString
name() {
return (QString(
"FileHeightFieldPNG")); };
95 QString
description( ) {
return (QString(tr(
"Load/Save a height field from an png image"))); };
107 int loadObject(QString _filename);
109 bool saveObject(
int _id, QString _filename);
111 QString version() {
return QString(
"1.0"); };
114 void loadImageAsTriangleMesh(QImage& _image,TriMesh* _mesh,
int _minX ,
int _maxX ,
int _minY ,
int _maxY,
double _height);
QWidget * loadOptionsWidget(QString)
Logtype
Log types for Message Window.
QWidget * saveOptionsWidget(QString)
void initializePlugin()
Initialize Plugin.
Interface class from which all plugins have to be created.
Interface for all Plugins which do logging to the logging window of the framework.
Interface class for file handling.
Interface for all plugins which want to Load or Save files and create Objects.
QString name()
Return a name for the plugin.
QString description()
Return a description of what the plugin is doing.
DataType supportedType()
Return your supported object type( e.g. DATA_TRIANGLE_MESH )