Go to the documentation of this file.
16 #ifndef SURGSIM_GRAPHICS_OSGSCENERYREPRESENTATION_H
17 #define SURGSIM_GRAPHICS_OSGSCENERYREPRESENTATION_H
26 #pragma warning(disable:4250)
39 SURGSIM_STATIC_REGISTRATION(OsgSceneryRepresentation);
55 void setModel(std::shared_ptr<SurgSim::Framework::Asset> model)
override;
57 std::shared_ptr<Model>
getModel()
const override;
83 #endif // SURGSIM_GRAPHICS_OSGSCENERYREPRESENTATION_H
void setModel(std::shared_ptr< SurgSim::Framework::Asset > model) override
Set the current model to the model passed.
Definition: OsgSceneryRepresentation.cpp:53
std::shared_ptr< Model > getModel() const override
Definition: OsgSceneryRepresentation.cpp:75
SURGSIM_CLASSNAME(SurgSim::Graphics::OsgSceneryRepresentation)
bool doInitialize() override
Interface to be implemented by derived classes.
Definition: OsgSceneryRepresentation.cpp:41
OsgSceneryRepresentation(const std::string &name)
Constructor.
Definition: OsgSceneryRepresentation.cpp:32
Definition: CompoundShapeToGraphics.cpp:29
std::string m_fileName
Name of the object file to be loaded.
Definition: OsgSceneryRepresentation.h:72
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
void setGenerateTangents(bool value) override
Enable the generation of tangents When enabled it is up to the subclasses responsibility to react to ...
Definition: OsgSceneryRepresentation.cpp:85
Base class defining the interface for a Graphics Scenery Object.
Definition: SceneryRepresentation.h:36
void loadModel(const std::string &fileName) override
Convenience function to trigger the load of the model with the given filename, if successful,...
Definition: OsgSceneryRepresentation.cpp:46
friend class OsgSceneryRepresentationTest
Definition: OsgSceneryRepresentation.h:45
string(TOUPPER ${DEVICE} DEVICE_UPPER_CASE) option(BUILD_DEVICE_$
Definition: CMakeLists.txt:38
osg::ref_ptr< osg::Node > getModelNode() const
Definition: OsgSceneryRepresentation.cpp:80
Model
The models of LabJack devices. Numbers come from LabJackUD.h.
Definition: LabJackDevice.h:117
std::shared_ptr< Model > m_model
Definition: OsgSceneryRepresentation.h:69
Base OSG implementation of a graphics representation.
Definition: OsgRepresentation.h:55