62 #ifndef FILEBUNDLEPLUGIN_HH
63 #define FILEBUNDLEPLUGIN_HH
92 #if QT_VERSION >= 0x050000
93 Q_PLUGIN_METADATA(IID
"org.OpenFlipper.Plugins.Plugin-FileBundle")
98 void openedFile(
int _objectId );
101 void addEmptyObject(
DataType _type,
int &_objectId );
102 void deleteObject (
int _objectId );
103 void updatedObject(
int _objectId,
const UpdateType &_type );
106 void log( QString _message );
107 void log(
Logtype _type, QString _message );
112 QString version() {
return QString(
"1.0" ); }
115 int loadObject( QString _filename );
116 bool saveObject(
int _objectId, QString _filename );
121 void noguiSupported() { }
126 QString
name() {
return QString(
"FileBundle" ); }
127 QString
description( ) {
return QString( tr(
"Load/Save SplatCloud Bundler format files" ) ); }
133 QString
getSaveFilters() {
return QString( tr(
"Bundler SplatCloud files ( *.out )" ) ); }
134 QString
getLoadFilters() {
return QString( tr(
"Bundler SplatCloud files ( *.out )" ) ); }
141 bool addEmptyObjects(
unsigned int _num,
const DataType &_dataType, std::vector<int> &_objectIDs );
142 void deleteObjects( std::vector<int> &_objectIDs );
145 bool readImagelistFile(
const char *_filename, std::vector<std::string> &_imagePaths ) ;
148 void readCameras( FILE *_file,
const std::vector<int> &_cameraObjectIDs, SplatCloud_Cameras &_cameras ) ;
149 void readPoints ( FILE *_file,
const std::vector<int> &_cameraObjectIDs,
SplatCloud &_splatCloud ) ;
150 bool readBundleFile(
const char *_filename,
SplatCloud &_splatCloud ) ;
153 bool writeBundleFile(
const char *_filename,
const SplatCloud &_splatCloud ) ;
160 #endif // FILEBUNDLEPLUGIN_HH
Interface class from which all plugins have to be created.
DataType supportedType()
Return your supported object type( e.g. DATA_TRIANGLE_MESH )
QWidget * loadOptionsWidget(QString)
Logtype
Log types for Message Window.
QWidget * saveOptionsWidget(QString)
QString name()
Return a name for the plugin.
Interface for all Plugins which do logging to the logging window of the framework.
Interface class for file handling.
Interface for all Plugins which provide scriptable Functions.
Interface for all plugins which want to Load or Save files and create Objects.
QString description()
Return a description of what the plugin is doing.