16 #ifndef SURGSIM_GRAPHICS_OSGSCENERYREPRESENTATION_H 17 #define SURGSIM_GRAPHICS_OSGSCENERYREPRESENTATION_H 19 #include "SurgSim/Graphics/OsgRepresentation.h" 20 #include "SurgSim/Graphics/SceneryRepresentation.h" 26 #pragma warning(disable:4250) 39 SURGSIM_STATIC_REGISTRATION(OsgSceneryRepresentation);
53 void loadModel(
const std::string& fileName)
override;
55 void setModel(std::shared_ptr<SurgSim::Framework::Asset> model)
override;
57 std::shared_ptr<Model> getModel()
const override;
60 osg::ref_ptr<osg::Node> getModelNode()
const;
62 void setGenerateTangents(
bool value)
override;
65 bool doInitialize()
override;
67 osg::ref_ptr<osg::Node> m_osgNode;
69 std::shared_ptr<Model> m_model;
72 std::string m_fileName;
83 #endif // SURGSIM_GRAPHICS_OSGSCENERYREPRESENTATION_H Wraps glewInit() to separate the glew opengl definitions from the osg opengl definitions only imgui n...
Definition: AddRandomSphereBehavior.cpp:36
Model
The models of LabJack devices. Numbers come from LabJackUD.h.
Definition: LabJackDevice.h:117
Base class defining the interface for a Graphics Scenery Object.
Definition: SceneryRepresentation.h:36
A OsgSceneryRepresentation is used to load osg object/node from file.
Definition: OsgSceneryRepresentation.h:42
Definition: OsgSceneryRepresentationTests.cpp:39
Base OSG implementation of a graphics representation.
Definition: OsgRepresentation.h:55