26 #include "repo_model_export_abstract.h"
27 #include "../../../lib/repo_property_tree.h"
28 #include "../../../lib/datastructure/repo_structs.h"
29 #include "../../../core/model/collection/repo_scene.h"
32 namespace manipulator{
33 namespace modelconvertor{
34 enum class WebExportType { GLTF, SRC };
56 const std::string &filePath);
92 return convertSuccess;
98 std::unordered_map<std::string, repo::lib::PropertyTree> trees;
99 std::unordered_map<std::string, std::vector<uint8_t>> x3dBufs;
100 std::unordered_map<std::string, repo::lib::PropertyTree> jsonTrees;
103 std::string sanitizeFileName(
104 const std::string &name)
const;
virtual std::unordered_map< std::string, std::vector< uint8_t > > getJSONFilesAsBuffer() const
Definition: repo_model_export_web.cpp:115
Definition: repo_connection_pool_mongo.h:32
Definition: repo_scene.h:44
Definition: repo_model_export_web.h:36
std::unordered_map< std::string, std::vector< uint8_t > > getX3DFilesAsBuffer() const
Definition: repo_model_export_web.h:75
Definition: repo_model_export_abstract.h:31
static std::string getSupportedFormats()
Definition: repo_model_export_web.cpp:133
virtual ~WebModelExport()
Definition: repo_model_export_web.cpp:53
virtual repo_web_buffers_t getAllFilesExportedAsBuffer() const =0
virtual bool exportToFile(const std::string &filePath)
Definition: repo_model_export_web.cpp:57
bool isOk() const
Definition: repo_model_export_web.h:90
WebModelExport(const repo::core::model::RepoScene *scene)
Definition: repo_model_export_web.cpp:30
Definition: repo_structs.h:25
GraphType
Definition: repo_scene.h:75