20#ifndef SDFORMAT_EDITOR_MODEL_VIEWER_INTERFACE_HH_
21#define SDFORMAT_EDITOR_MODEL_VIEWER_INTERFACE_HH_
30#include <glm/gtc/quaternion.hpp>
36 public:
typedef struct {
37 std::string model_absolute_path;
39 glm::dquat orientation;
40 glm::dvec3 scale = {1,1,1};
41 double opacity = 1.0f;
52 public:
typedef struct {
55 glm::dquat orientation;
56 glm::dvec3 scale = {1,1,1};
57 double opacity = 1.0f;
70 public:
virtual void Quit() = 0;
Interface for the SDFormat Editor's 3D Model Vewer.
Definition model_viewer_interface.h:34
virtual void Initialize()=0
Initialization of the Model Viewer.
virtual void ResetModels()=0
Sets a flag in the model viewer to remove the models in the scene.
virtual void AddModel(ModelInfo model_info)=0
Add a model to the model viewer, the model will be rendered on the next frame.
virtual std::mutex & GetMutex()=0
Method to get the model viewer's mutex.
virtual void AddModel(PresetModelInfo model_info)=0
Add a model to the model viewer, the model will be rendered on the next frame.
virtual void Quit()=0
Tells the model viewer to quit on its next iteration.
PresetType
Preset shapes which do not require a mesh to be provided in the sdf.
Definition model_viewer_interface.h:45
virtual bool IsRunning()=0
Indicates if the model viewer is running.
virtual void RenderFrame()=0
Rander a single frame.
Struct representing information of a model's visual information.
Definition model_viewer_interface.h:36
Struct representing information of a model's visual information for pre-defined shapes.
Definition model_viewer_interface.h:52