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 ) ;