16 #ifndef SURGSIM_GRAPHICS_OSGREPRESENTATION_H 17 #define SURGSIM_GRAPHICS_OSGREPRESENTATION_H 21 #include <osg/ref_ptr> 28 class PositionAttitudeTransform;
51 osg::ref_ptr<osg::Node> getOsgNode()
const;
56 virtual void setVisible(
bool visible)
override;
60 virtual bool isVisible()
const override;
66 virtual bool setMaterial(std::shared_ptr<Material> material)
override;
70 virtual std::shared_ptr<Material> getMaterial()
const override;
73 virtual void clearMaterial()
override;
75 virtual void setDrawAsWireFrame(
bool val)
override;
76 virtual bool getDrawAsWireFrame()
const override;
80 virtual void update(
double dt)
override;
83 virtual void doUpdate(
double dt);
100 #endif // SURGSIM_GRAPHICS_OSGREPRESENTATION_H bool m_drawAsWireFrame
Indicates if the representation is rendered as a wireframe.
Definition: OsgRepresentation.h:94
Definition: DriveElementFromInputBehavior.cpp:27
osg::ref_ptr< osg::Switch > m_switch
Switch used to toggle the visibility of the representation.
Definition: OsgRepresentation.h:86
osg::ref_ptr< osg::PositionAttitudeTransform > m_transform
Transform used to pose the representation.
Definition: OsgRepresentation.h:88
string(TOUPPER ${DEVICE}DEVICE_UPPER_CASE) option(BUILD_DEVICE_ $
Definition: CMakeLists.txt:35
Base graphics representation class, which defines the interface that all graphics representations mus...
Definition: Representation.h:39
Definition: OsgLight.h:33
std::shared_ptr< OsgMaterial > m_material
Material defining the visual appearance of the representation.
Definition: OsgRepresentation.h:91
Base OSG implementation of a graphics representation.
Definition: OsgRepresentation.h:42