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