cherish
|
A tool to depict position of global axis X, Y and Z. The tool has the following scene graph structure: More...
#include <ToolGlobal.h>
Public Member Functions | |
AxisGlobalTool () | |
void | setVisibility (bool on) |
bool | getVisibility () const |
virtual void | setColor (const osg::Vec4f c1, const osg::Vec4f c2, const osg::Vec4f c3) |
![]() | |
ToolGlobal (int nVerts, osg::Array::Binding colorBind, osg::PrimitiveSet *primitiveSet, float linewidth=3.f) | |
virtual void | setVertices (const std::vector< osg::Vec3f > &source) |
virtual const osg::Vec3Array * | getVertices () const |
virtual void | setColor (const osg::Vec4f &color) |
virtual const osg::Vec4f & | getColor () const |
osg::Geode * | getGeodeWire () const |
osg::Vec3f | getCenterLocal () const |
![]() | |
ProtectedGroup (const ProtectedGroup &group, const osg::CopyOp ©op=osg::CopyOp::SHALLOW_COPY) | |
Protected Member Functions | |
void | initializeSG () |
![]() | |
void | updateGeometry () |
void | updateGeometry (osg::Geometry *geom) |
Additional Inherited Members | |
![]() | |
osg::Switch * | m_switch |
osg::Geode * | m_geodeWire |
osg::Geometry * | m_geomWire |
A tool to depict position of global axis X, Y and Z. The tool has the following scene graph structure:
AxisGlobalTool -> Switch -> Camera -> AutoTransform -> GeodeWire
The AutoTransform is to assure the global axis tool size remains constand disregarding the current camera view. The Camera node is necessary in order to set the rendering order to post order, so that the axis tool is always rendered on the top of any other elements.
entity::AxisGlobalTool::AxisGlobalTool | ( | ) |
Default contructor. All the default sizing is taken from Settings file.
|
virtual |
A method to obtain tool's visibility.
Implements entity::ToolGlobal.
|
protectedvirtual |
A method to initialize the scene graph as shown on the class description.
Implements entity::ToolGlobal.
|
virtual |
A method to set color is re-defined since each axis has different color.
c1 | is the color for axis X |
c2 | is the color for axis Y |
c3 | is the color for axis Z |
|
virtual |
A method to set tool's visibility.
Implements entity::ToolGlobal.