ProjectStore.hpp 543 B

123456789101112131415161718192021222324
  1. #pragma once
  2. #include "lib3mf_implicit.hpp"
  3. #include <string>
  4. class ProjectStore {
  5. public:
  6. // Create an empty project
  7. ProjectStore();
  8. // Load an existing project
  9. ProjectStore(std::string projectFile);
  10. // Destructor
  11. ~ProjectStore();
  12. // Load a mesh
  13. void loadMesh(std::string meshFile);
  14. private:
  15. bool projectLoaded;
  16. Lib3MF::PWrapper _wrapper;
  17. Lib3MF::PModel _project;
  18. void load3mfLib();
  19. void render3MFMesh(const std::vector<Lib3MF::sPosition> verticesBuffer, const std::vector<Lib3MF::sTriangle> triangleBuffer);
  20. };