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