VR-Forces 4.1 Class Documentation
XYZAxis.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2012 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
8 
9 
10 #include <osg/Group>
11 #include <osg/Vec3>
12 #include <osg/Vec4>
13 #include <osg/Referenced>
14 
15 namespace osg {
16  class Geometry;
17  class PositionAttitudeTransform;
18 }
19 
30 class XYZAxis : public osg::Group
31 {
32 public:
39  XYZAxis( float length = 25.0f,
40  const osg::Vec4& colorX = osg::Vec4f( 1.0f, 0.0f, 0.0f, 1.0f ),
41  const osg::Vec4& colorY = osg::Vec4f( 0.0f, 1.0f, 0.0f, 1.0f ),
42  const osg::Vec4& colorZ = osg::Vec4f( 0.0f, 0.0f, 1.0f, 1.0f ) );
43 
45  virtual ~XYZAxis();
46 
47 protected:
55  osg::Node* createAxis( const osg::Vec4& color, unsigned int numReps,
56  const osg::Vec3& tick, const osg::Vec3& endPoint,
57  const osg::Vec3& startPoint = osg::Vec3f( 0.0f, 0.0f, 0.0f ) ) const;
58 
64  osg::Geometry* createLine(const osg::Vec4& color,
65  const osg::Vec3& startPoint, const osg::Vec3& endPoint ) const;
66 };

Document ID: Generated on Tue Jan 29 18:21:16 EST 2013 from SVN revision 123193
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (www.mak.com)