Go to the documentation of this file.
16 #ifndef SURGSIM_GRAPHICS_OSGPLANE_H
17 #define SURGSIM_GRAPHICS_OSGPLANE_H
20 #include <osg/Geometry>
39 explicit OsgPlane(
float length = 1000.0f,
float width = 1000.0f) :
42 osg::ref_ptr<osg::Geometry> plane = osg::createTexturedQuadGeometry(
43 osg::Vec3(- length / 2.0f, 0.0f, width / 2.0f),
44 osg::Vec3(length, 0.0f, 0.0f),
45 osg::Vec3(0.0f, 0.0f, - width));
65 #endif // SURGSIM_GRAPHICS_OSGPLANE_H
OsgPlane(float length=1000.0f, float width=1000.0f)
Constructor.
Definition: OsgPlane.h:39
Definition: OculusView.h:25
osg::ref_ptr< osg::Geode > m_geode
Root OSG node of the plane.
Definition: OsgPlane.h:58
Definition: CompoundShapeToGraphics.cpp:29
OSG plane geode to be used as a primitive shape The plane is the XZ plane, with normal +Y.
Definition: OsgPlane.h:33
osg::ref_ptr< osg::Node > getNode() const
Returns the root OSG node for the plane to be inserted into the scene-graph.
Definition: OsgPlane.h:51