16 #ifndef SURGSIM_GRAPHICS_OSGSCENERYREPRESENTATION_H 17 #define SURGSIM_GRAPHICS_OSGSCENERYREPRESENTATION_H 26 #pragma warning(disable:4250) 39 SURGSIM_STATIC_REGISTRATION(OsgSceneryRepresentation);
45 friend class OsgSceneryRepresentationTest;
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;
83 #endif // SURGSIM_GRAPHICS_OSGSCENERYREPRESENTATION_H Definition: CompoundShapeToGraphics.cpp:29
std::shared_ptr< Model > m_model
Definition: OsgSceneryRepresentation.h:69
std::string m_fileName
Name of the object file to be loaded.
Definition: OsgSceneryRepresentation.h:72
Model
The models of LabJack devices. Numbers come from LabJackUD.h.
Definition: LabJackDevice.h:117
#define SURGSIM_CLASSNAME(ClassName)
Declare the class name of a class with the appropriate function header, do not use quotes...
Definition: Macros.h:21
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
osg::ref_ptr< osg::Node > m_osgNode
A osg::Node to hold the objet loaded from file.
Definition: OsgSceneryRepresentation.h:67
Base OSG implementation of a graphics representation.
Definition: OsgRepresentation.h:55