3D Repo Bouncer  1.4
repo_scene_manager.h
1 
17 #pragma once
18 #include "../../core/model/collection/repo_scene.h"
19 #include "../../core/handler/repo_database_handler_abstract.h"
20 #include "../modelconvertor/export/repo_model_export_web.h"
21 
22 namespace repo{
23  namespace manipulator{
24  namespace modelutility{
26  {
27  public:
28  SceneManager(){}
29  ~SceneManager(){}
30 
45  const std::string &database,
46  const std::string &project,
47  const repoUUID &uuid,
48  const bool &headRevision = true,
49  const bool &lightFetch = false);
50 
53  const std::string &database,
54  const std::string &project)
55  {
56  repoUUID master = stringToUUID(REPO_HISTORY_MASTER_BRANCH);
57  return fetchScene(handler, database, project, master);
58  }
59 
65  void fetchScene(
68 
80  );
81 
91  bool generateStashGraph(
94  );
95 
107  const repo::manipulator::modelconvertor::WebExportType &exType,
108  repo_web_buffers_t &resultBuffers,
110 
118  bool removeStashGraph(
121  );
122 
123  private:
130  repo_web_buffers_t generateGLTFBuffer(
132 
139  repo_web_buffers_t generateSRCBuffer(
141  };
142  }
143  }
144 }
Definition: repo_scene_manager.h:25
bool generateAndCommitSelectionTree(repo::core::model::RepoScene *scene, repo::core::handler::AbstractDatabaseHandler *handler)
Definition: repo_scene_manager.cpp:315
Definition: repo_connection_pool_mongo.h:32
Definition: repo_scene.h:44
Definition: repo_database_handler_abstract.h:37
bool generateWebViewBuffers(repo::core::model::RepoScene *scene, const repo::manipulator::modelconvertor::WebExportType &exType, repo_web_buffers_t &resultBuffers, repo::core::handler::AbstractDatabaseHandler *handler=nullptr)
Definition: repo_scene_manager.cpp:202
bool generateStashGraph(repo::core::model::RepoScene *scene, repo::core::handler::AbstractDatabaseHandler *handler=nullptr)
Definition: repo_scene_manager.cpp:157
repo::core::model::RepoScene * fetchScene(repo::core::handler::AbstractDatabaseHandler *handler, const std::string &database, const std::string &project, const repoUUID &uuid, const bool &headRevision=true, const bool &lightFetch=false)
Definition: repo_scene_manager.cpp:28
bool removeStashGraph(repo::core::model::RepoScene *scene, repo::core::handler::AbstractDatabaseHandler *handler=nullptr)
Definition: repo_scene_manager.cpp:380
Definition: repo_structs.h:25