56 #ifndef FILEBUNDLEPLUGIN_HH 57 #define FILEBUNDLEPLUGIN_HH 60 #if (_MSC_VER <= 1916) 61 #define QT_NO_FLOAT16_OPERATORS 92 Q_PLUGIN_METADATA(IID
"org.OpenFlipper.Plugins.Plugin-FileBundle")
96 void openedFile(
int _objectId );
99 void addEmptyObject(
DataType _type,
int &_objectId );
100 void deleteObject (
int _objectId );
101 void updatedObject(
int _objectId,
const UpdateType &_type );
104 void log( QString _message );
105 void log(
Logtype _type, QString _message );
110 QString version() {
return QString(
"1.0" ); }
113 int loadObject( QString _filename );
114 bool saveObject(
int _objectId, QString _filename );
119 void noguiSupported() { }
124 QString
name() {
return QString(
"FileBundle" ); }
125 QString
description( ) {
return QString( tr(
"Load/Save SplatCloud Bundler format files" ) ); }
131 QString
getSaveFilters() {
return QString( tr(
"Bundler SplatCloud files ( *.out )" ) ); }
132 QString
getLoadFilters() {
return QString( tr(
"Bundler SplatCloud files ( *.out )" ) ); }
139 bool addEmptyObjects(
unsigned int _num,
const DataType &_dataType, std::vector<int> &_objectIDs );
140 void deleteObjects( std::vector<int> &_objectIDs );
143 bool readImagelistFile(
const char *_filename, std::vector<std::string> &_imagePaths ) ;
146 void readCameras( FILE *_file,
const std::vector<int> &_cameraObjectIDs, SplatCloud_Cameras &_cameras ) ;
147 void readPoints ( FILE *_file,
const std::vector<int> &_cameraObjectIDs,
SplatCloud &_splatCloud ) ;
148 bool readBundleFile(
const char *_filename,
SplatCloud &_splatCloud ) ;
151 bool writeBundleFile(
const char *_filename,
const SplatCloud &_splatCloud ) ;
158 #endif // FILEBUNDLEPLUGIN_HH
QWidget * saveOptionsWidget(QString)
Logtype
Log types for Message Window.
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.
QString name()
Return a name for the plugin.
QWidget * loadOptionsWidget(QString)
Interface for all Plugins which provide scriptable Functions.
Interface class from which all plugins have to be created.
Interface class for file handling.
DataType supportedType()
Return your supported object type( e.g. DATA_TRIANGLE_MESH )
Interface for all plugins which want to Load or Save files and create Objects.