56 #ifndef FILEBUNDLEPLUGIN_HH 57 #define FILEBUNDLEPLUGIN_HH 86 Q_PLUGIN_METADATA(IID
"org.OpenFlipper.Plugins.Plugin-FileBundle")
90 void openedFile(
int _objectId );
93 void addEmptyObject(
DataType _type,
int &_objectId );
94 void deleteObject (
int _objectId );
95 void updatedObject(
int _objectId,
const UpdateType &_type );
98 void log( QString _message );
99 void log(
Logtype _type, QString _message );
104 QString version() {
return QString(
"1.0" ); }
107 int loadObject( QString _filename );
108 bool saveObject(
int _objectId, QString _filename );
113 void noguiSupported() { }
118 QString
name() {
return QString(
"FileBundle" ); }
119 QString
description( ) {
return QString( tr(
"Load/Save SplatCloud Bundler format files" ) ); }
125 QString
getSaveFilters() {
return QString( tr(
"Bundler SplatCloud files ( *.out )" ) ); }
126 QString
getLoadFilters() {
return QString( tr(
"Bundler SplatCloud files ( *.out )" ) ); }
133 bool addEmptyObjects(
unsigned int _num,
const DataType &_dataType, std::vector<int> &_objectIDs );
134 void deleteObjects( std::vector<int> &_objectIDs );
137 bool readImagelistFile(
const char *_filename, std::vector<std::string> &_imagePaths ) ;
140 void readCameras( FILE *_file,
const std::vector<int> &_cameraObjectIDs, SplatCloud_Cameras &_cameras ) ;
141 void readPoints ( FILE *_file,
const std::vector<int> &_cameraObjectIDs,
SplatCloud &_splatCloud ) ;
142 bool readBundleFile(
const char *_filename,
SplatCloud &_splatCloud ) ;
145 bool writeBundleFile(
const char *_filename,
const SplatCloud &_splatCloud ) ;
152 #endif // FILEBUNDLEPLUGIN_HH
Logtype
Log types for Message Window.
Interface for all plugins which want to Load or Save files and create Objects.
QWidget * loadOptionsWidget(QString)
Interface for all Plugins which provide scriptable Functions.
QWidget * saveOptionsWidget(QString)
Interface for all Plugins which do logging to the logging window of the framework.
DataType supportedType()
Return your supported object type( e.g. DATA_TRIANGLE_MESH )
Interface class from which all plugins have to be created.
QString description()
Return a description of what the plugin is doing.
QString name()
Return a name for the plugin.
Interface class for file handling.