2001-10-04 23:12:57 +08:00
|
|
|
//C++ header - Open Scene Graph - Copyright (C) 1998-2001 Robert Osfield
|
|
|
|
//Distributed under the terms of the GNU Library General Public License (LGPL)
|
|
|
|
//as published by the Free Software Foundation.
|
|
|
|
|
2001-01-11 00:32:10 +08:00
|
|
|
#ifndef OSG_MATRIX
|
|
|
|
#define OSG_MATRIX 1
|
|
|
|
|
|
|
|
#include <osg/Object>
|
2001-09-20 05:08:56 +08:00
|
|
|
#include <osg/Vec3>
|
|
|
|
#include <osg/Vec4>
|
|
|
|
|
2002-02-07 09:15:15 +08:00
|
|
|
#include <string.h>
|
|
|
|
|
2001-09-20 05:08:56 +08:00
|
|
|
#include <iostream>
|
2001-01-11 00:32:10 +08:00
|
|
|
|
|
|
|
namespace osg {
|
|
|
|
|
2001-09-22 10:42:08 +08:00
|
|
|
class Quat;
|
2001-09-20 05:08:56 +08:00
|
|
|
|
2002-02-06 05:51:06 +08:00
|
|
|
/** The range of matrix modes that the scene graph might utilize.
|
|
|
|
* Similar in concept to different modes in OpenGL glMatrixMode().*/
|
|
|
|
enum MatrixMode
|
|
|
|
{
|
|
|
|
PROJECTION,
|
|
|
|
VIEW,
|
|
|
|
MODEL,
|
|
|
|
MODELVIEW
|
|
|
|
};
|
|
|
|
|
2001-01-11 00:32:10 +08:00
|
|
|
class SG_EXPORT Matrix : public Object
|
|
|
|
{
|
2001-09-28 00:34:41 +08:00
|
|
|
|
2001-09-22 10:42:08 +08:00
|
|
|
public:
|
2001-09-28 00:34:41 +08:00
|
|
|
|
2001-01-11 00:32:10 +08:00
|
|
|
Matrix();
|
Added support for shallow and deep copy of nodes, drawables and state, via a
copy constructor which takes an optional Cloner object, and the old
osg::Object::clone() has changed so that it now requires a Cloner as paramter.
This is passed on to the copy constructor to help control the shallow vs
deep copying. The old functionality of clone() which was clone of type has
been renamed to cloneType().
Updated all of the OSG to work with these new conventions, implemention all
the required copy constructors etc. A couple of areas will do shallow
copies by design, a couple of other still need to be updated to do either
shallow or deep.
Neither of the shallow or deep copy operations have been tested yet, only
the old functionality of the OSG has been checked so far, such running the
viewer on various demo datasets.
Also fixed a problem in osg::Optimize::RemoveRendundentNodesVisitor which
was not checking that Group didn't have have any attached StateSet's, Callbacks
or UserData. These checks have now been added, which fixes a bug which was
revealled by the new osgscribe demo, this related to removal of group acting
as state decorator.
method
2002-01-29 05:17:01 +08:00
|
|
|
Matrix( const Matrix& other);
|
2001-09-22 10:42:08 +08:00
|
|
|
explicit Matrix( float const * const def );
|
2001-01-11 00:32:10 +08:00
|
|
|
Matrix( float a00, float a01, float a02, float a03,
|
|
|
|
float a10, float a11, float a12, float a13,
|
|
|
|
float a20, float a21, float a22, float a23,
|
|
|
|
float a30, float a31, float a32, float a33);
|
|
|
|
|
Added support for shallow and deep copy of nodes, drawables and state, via a
copy constructor which takes an optional Cloner object, and the old
osg::Object::clone() has changed so that it now requires a Cloner as paramter.
This is passed on to the copy constructor to help control the shallow vs
deep copying. The old functionality of clone() which was clone of type has
been renamed to cloneType().
Updated all of the OSG to work with these new conventions, implemention all
the required copy constructors etc. A couple of areas will do shallow
copies by design, a couple of other still need to be updated to do either
shallow or deep.
Neither of the shallow or deep copy operations have been tested yet, only
the old functionality of the OSG has been checked so far, such running the
viewer on various demo datasets.
Also fixed a problem in osg::Optimize::RemoveRendundentNodesVisitor which
was not checking that Group didn't have have any attached StateSet's, Callbacks
or UserData. These checks have now been added, which fixes a bug which was
revealled by the new osgscribe demo, this related to removal of group acting
as state decorator.
method
2002-01-29 05:17:01 +08:00
|
|
|
virtual Object* cloneType() const { return new Matrix(); } \
|
2002-01-29 22:04:06 +08:00
|
|
|
virtual Object* clone(const CopyOp&) const { return new Matrix(*this); } \
|
Added support for shallow and deep copy of nodes, drawables and state, via a
copy constructor which takes an optional Cloner object, and the old
osg::Object::clone() has changed so that it now requires a Cloner as paramter.
This is passed on to the copy constructor to help control the shallow vs
deep copying. The old functionality of clone() which was clone of type has
been renamed to cloneType().
Updated all of the OSG to work with these new conventions, implemention all
the required copy constructors etc. A couple of areas will do shallow
copies by design, a couple of other still need to be updated to do either
shallow or deep.
Neither of the shallow or deep copy operations have been tested yet, only
the old functionality of the OSG has been checked so far, such running the
viewer on various demo datasets.
Also fixed a problem in osg::Optimize::RemoveRendundentNodesVisitor which
was not checking that Group didn't have have any attached StateSet's, Callbacks
or UserData. These checks have now been added, which fixes a bug which was
revealled by the new osgscribe demo, this related to removal of group acting
as state decorator.
method
2002-01-29 05:17:01 +08:00
|
|
|
virtual bool isSameKindAs(const Object* obj) const { return dynamic_cast<const Matrix*>(obj)!=NULL; } \
|
|
|
|
virtual const char* className() const { return "Matrix"; }
|
|
|
|
|
2001-09-22 10:42:08 +08:00
|
|
|
virtual ~Matrix() {}
|
2001-01-11 00:32:10 +08:00
|
|
|
|
2001-09-22 10:42:08 +08:00
|
|
|
Matrix& operator = (const Matrix& );
|
2001-01-11 00:32:10 +08:00
|
|
|
|
2002-02-06 05:51:06 +08:00
|
|
|
int compare(const Matrix& m) const { return memcmp(_mat,m._mat,sizeof(_mat)); }
|
2001-01-11 00:32:10 +08:00
|
|
|
|
2001-09-22 10:42:08 +08:00
|
|
|
bool operator < (const Matrix& m) const { return compare(m)<0; }
|
|
|
|
bool operator == (const Matrix& m) const { return compare(m)==0; }
|
|
|
|
bool operator != (const Matrix& m) const { return compare(m)!=0; }
|
2001-01-11 00:32:10 +08:00
|
|
|
|
2002-02-06 05:51:06 +08:00
|
|
|
inline float& operator()(int row, int col) { return _mat[row][col]; }
|
|
|
|
inline float operator()(int row, int col) const { return _mat[row][col]; }
|
|
|
|
|
|
|
|
inline const bool valid() const { return !isNaN(); }
|
|
|
|
inline const bool isNaN() const { return osg::isNaN(_mat[0][0]) || osg::isNaN(_mat[0][1]) || osg::isNaN(_mat[0][2]) || osg::isNaN(_mat[0][3]) ||
|
|
|
|
osg::isNaN(_mat[1][0]) || osg::isNaN(_mat[1][1]) || osg::isNaN(_mat[1][2]) || osg::isNaN(_mat[1][3]) ||
|
|
|
|
osg::isNaN(_mat[2][0]) || osg::isNaN(_mat[2][1]) || osg::isNaN(_mat[2][2]) || osg::isNaN(_mat[2][3]) ||
|
|
|
|
osg::isNaN(_mat[3][0]) || osg::isNaN(_mat[3][1]) || osg::isNaN(_mat[3][2]) || osg::isNaN(_mat[3][3]); }
|
|
|
|
|
|
|
|
|
2001-09-20 05:08:56 +08:00
|
|
|
|
2001-09-22 10:42:08 +08:00
|
|
|
void set( float const * const );
|
2001-09-20 05:08:56 +08:00
|
|
|
void set( float a00, float a01, float a02, float a03,
|
|
|
|
float a10, float a11, float a12, float a13,
|
|
|
|
float a20, float a21, float a22, float a23,
|
|
|
|
float a30, float a31, float a32, float a33);
|
2001-09-28 00:34:41 +08:00
|
|
|
|
2002-02-06 05:51:06 +08:00
|
|
|
float * ptr() { return (float *)_mat; }
|
|
|
|
const float * ptr() const { return (const float *)_mat; }
|
2001-09-20 05:08:56 +08:00
|
|
|
|
2001-12-16 00:56:39 +08:00
|
|
|
void makeIdentity();
|
|
|
|
|
2001-09-22 10:42:08 +08:00
|
|
|
void makeScale( const Vec3& );
|
|
|
|
void makeScale( float, float, float );
|
|
|
|
|
2001-12-13 04:29:10 +08:00
|
|
|
void makeTranslate( const Vec3& );
|
|
|
|
void makeTranslate( float, float, float );
|
2001-12-16 00:56:39 +08:00
|
|
|
|
2001-12-13 04:29:10 +08:00
|
|
|
void makeRotate( const Vec3& from, const Vec3& to );
|
|
|
|
void makeRotate( float angle, const Vec3& axis );
|
|
|
|
void makeRotate( float angle, float x, float y, float z );
|
|
|
|
void makeRotate( const Quat& );
|
|
|
|
void makeRotate( float, float, float ); //Euler angles
|
2001-09-22 10:42:08 +08:00
|
|
|
|
|
|
|
bool invert( const Matrix& );
|
|
|
|
bool invertAffine( const Matrix& );
|
|
|
|
|
2001-12-16 00:56:39 +08:00
|
|
|
//basic utility functions to create new matrices
|
2001-12-02 16:59:39 +08:00
|
|
|
inline static Matrix identity( void );
|
2001-09-22 10:42:08 +08:00
|
|
|
inline static Matrix scale( const Vec3& );
|
|
|
|
inline static Matrix scale( float, float, float );
|
2001-12-13 04:29:10 +08:00
|
|
|
inline static Matrix translate( const Vec3& );
|
|
|
|
inline static Matrix translate( float, float, float );
|
2001-09-22 10:42:08 +08:00
|
|
|
inline static Matrix rotate( const Vec3&, const Vec3& );
|
|
|
|
inline static Matrix rotate( float, float, float, float );
|
2001-11-12 06:32:59 +08:00
|
|
|
inline static Matrix rotate( float angle, const Vec3& axis);
|
2001-09-22 10:42:08 +08:00
|
|
|
inline static Matrix rotate( const Quat& );
|
|
|
|
|
|
|
|
inline Vec3 preMult( const Vec3& v ) const;
|
|
|
|
inline Vec3 postMult( const Vec3& v ) const;
|
|
|
|
inline Vec3 operator* ( const Vec3& v ) const;
|
|
|
|
inline Vec4 preMult( const Vec4& v ) const;
|
|
|
|
inline Vec4 postMult( const Vec4& v ) const;
|
|
|
|
inline Vec4 operator* ( const Vec4& v ) const;
|
|
|
|
|
|
|
|
void setTrans( float tx, float ty, float tz );
|
|
|
|
void setTrans( const Vec3& v );
|
2002-02-06 05:51:06 +08:00
|
|
|
Vec3 getTrans() const { return Vec3(_mat[3][0],_mat[3][1],_mat[3][2]); }
|
2001-09-22 10:42:08 +08:00
|
|
|
|
2001-09-20 05:08:56 +08:00
|
|
|
/** apply apply an 3x3 transform of v*M[0..2,0..2] */
|
|
|
|
inline static Vec3 transform3x3(const Vec3& v,const Matrix& m);
|
|
|
|
/** apply apply an 3x3 transform of M[0..2,0..2]*v */
|
|
|
|
inline static Vec3 transform3x3(const Matrix& m,const Vec3& v);
|
2001-09-22 10:42:08 +08:00
|
|
|
|
|
|
|
|
|
|
|
// basic Matrix multiplication, our workhorse methods.
|
|
|
|
void mult( const Matrix&, const Matrix& );
|
|
|
|
void preMult( const Matrix& );
|
|
|
|
void postMult( const Matrix& );
|
|
|
|
|
|
|
|
inline void operator *= ( const Matrix& other )
|
2001-12-16 00:56:39 +08:00
|
|
|
{ if( this == &other ) {
|
|
|
|
Matrix temp(other);
|
|
|
|
postMult( temp );
|
2001-09-22 10:42:08 +08:00
|
|
|
}
|
2001-12-16 00:56:39 +08:00
|
|
|
else postMult( other );
|
|
|
|
}
|
2001-09-29 10:48:31 +08:00
|
|
|
|
2001-12-16 00:56:39 +08:00
|
|
|
inline Matrix operator * ( const Matrix &m ) const
|
2001-09-29 10:48:31 +08:00
|
|
|
{
|
2001-09-29 17:37:43 +08:00
|
|
|
osg::Matrix r;
|
|
|
|
r.mult(*this,m);
|
2001-09-29 10:48:31 +08:00
|
|
|
return r;
|
|
|
|
}
|
|
|
|
|
2001-12-16 00:56:39 +08:00
|
|
|
|
|
|
|
// temporarily commented out while waiting for a more generic implementation
|
|
|
|
// of MatrixProduct proxy class.
|
|
|
|
// // Helper class to optimize product expressions somewhat
|
|
|
|
// class MatrixProduct {
|
|
|
|
// public:
|
|
|
|
// const Matrix& A;
|
|
|
|
// const Matrix& B;
|
|
|
|
//
|
|
|
|
// MatrixProduct( const Matrix& lhs, const Matrix& rhs ) : A(lhs), B(rhs) {}
|
|
|
|
// };
|
|
|
|
//
|
|
|
|
// inline MatrixProduct operator * ( const Matrix& other ) const
|
|
|
|
// { return MatrixProduct(*this, other); }
|
|
|
|
//
|
|
|
|
// inline void operator = ( const MatrixProduct& p )
|
|
|
|
// {
|
|
|
|
// if( this == &(p.A)) postMult(p.B);
|
|
|
|
// else if( this == &(p.B)) preMult(p.A);
|
|
|
|
// else mult( p.A, p.B );
|
|
|
|
// }
|
|
|
|
//
|
|
|
|
// Matrix( const MatrixProduct& p ) //allows implicit evaluation of the product
|
|
|
|
// { mult( p.A, p.B ); }
|
|
|
|
|
|
|
|
private:
|
|
|
|
float _mat[4][4];
|
|
|
|
|
2001-09-22 10:42:08 +08:00
|
|
|
};
|
2001-09-20 05:08:56 +08:00
|
|
|
|
2001-09-22 10:42:08 +08:00
|
|
|
//static utility methods
|
2001-12-02 16:59:39 +08:00
|
|
|
inline Matrix Matrix::identity(void)
|
|
|
|
{
|
|
|
|
Matrix m;
|
2001-12-16 00:56:39 +08:00
|
|
|
m.makeIdentity();
|
2001-12-02 16:59:39 +08:00
|
|
|
return m;
|
|
|
|
}
|
|
|
|
|
2001-09-22 10:42:08 +08:00
|
|
|
inline Matrix Matrix::scale(float sx, float sy, float sz)
|
|
|
|
{
|
|
|
|
Matrix m;
|
|
|
|
m.makeScale(sx,sy,sz);
|
|
|
|
return m;
|
|
|
|
}
|
2001-09-20 05:08:56 +08:00
|
|
|
|
2001-09-22 10:42:08 +08:00
|
|
|
inline Matrix Matrix::scale(const Vec3& v )
|
|
|
|
{
|
|
|
|
return scale(v.x(), v.y(), v.z() );
|
|
|
|
}
|
2001-09-20 05:08:56 +08:00
|
|
|
|
2001-12-13 04:29:10 +08:00
|
|
|
inline Matrix Matrix::translate(float tx, float ty, float tz)
|
2001-09-22 10:42:08 +08:00
|
|
|
{
|
|
|
|
Matrix m;
|
2001-12-13 04:29:10 +08:00
|
|
|
m.makeTranslate(tx,ty,tz);
|
2001-09-22 10:42:08 +08:00
|
|
|
return m;
|
|
|
|
}
|
2001-01-11 00:32:10 +08:00
|
|
|
|
2001-12-13 04:29:10 +08:00
|
|
|
inline Matrix Matrix::translate(const Vec3& v )
|
2001-09-22 10:42:08 +08:00
|
|
|
{
|
2001-12-13 04:29:10 +08:00
|
|
|
return translate(v.x(), v.y(), v.z() );
|
2001-09-22 10:42:08 +08:00
|
|
|
}
|
2001-01-11 00:32:10 +08:00
|
|
|
|
2001-09-22 10:42:08 +08:00
|
|
|
inline Matrix Matrix::rotate( const Quat& q )
|
|
|
|
{
|
|
|
|
Matrix m;
|
2001-12-13 04:29:10 +08:00
|
|
|
m.makeRotate( q );
|
2001-09-22 10:42:08 +08:00
|
|
|
return m;
|
|
|
|
}
|
|
|
|
inline Matrix Matrix::rotate(float angle, float x, float y, float z )
|
|
|
|
{
|
|
|
|
Matrix m;
|
2001-12-13 04:29:10 +08:00
|
|
|
m.makeRotate(angle,x,y,z);
|
2001-09-22 10:42:08 +08:00
|
|
|
return m;
|
|
|
|
}
|
2001-11-12 06:32:59 +08:00
|
|
|
inline Matrix Matrix::rotate(float angle, const Vec3& axis )
|
|
|
|
{
|
|
|
|
Matrix m;
|
2001-12-13 04:29:10 +08:00
|
|
|
m.makeRotate(angle,axis);
|
2001-11-12 06:32:59 +08:00
|
|
|
return m;
|
|
|
|
}
|
2001-09-22 10:42:08 +08:00
|
|
|
inline Matrix Matrix::rotate(const Vec3& from, const Vec3& to )
|
|
|
|
{
|
|
|
|
Matrix m;
|
2001-12-13 04:29:10 +08:00
|
|
|
m.makeRotate(from,to);
|
2001-09-22 10:42:08 +08:00
|
|
|
return m;
|
|
|
|
}
|
2001-01-11 00:32:10 +08:00
|
|
|
|
2001-09-22 10:42:08 +08:00
|
|
|
inline Vec3 Matrix::postMult( const Vec3& v ) const
|
2001-01-11 00:32:10 +08:00
|
|
|
{
|
|
|
|
float d = 1.0f/(_mat[3][0]*v.x()+_mat[3][1]*v.y()+_mat[3][2]*v.z()+_mat[3][3]) ;
|
|
|
|
return Vec3( (_mat[0][0]*v.x() + _mat[0][1]*v.y() + _mat[0][2]*v.z() + _mat[0][3])*d,
|
|
|
|
(_mat[1][0]*v.x() + _mat[1][1]*v.y() + _mat[1][2]*v.z() + _mat[1][3])*d,
|
|
|
|
(_mat[2][0]*v.x() + _mat[2][1]*v.y() + _mat[2][2]*v.z() + _mat[2][3])*d) ;
|
|
|
|
}
|
|
|
|
|
2001-09-22 10:42:08 +08:00
|
|
|
inline Vec3 Matrix::preMult( const Vec3& v ) const
|
2001-01-11 00:32:10 +08:00
|
|
|
{
|
2001-09-22 10:42:08 +08:00
|
|
|
float d = 1.0f/(_mat[0][3]*v.x()+_mat[1][3]*v.y()+_mat[2][3]*v.z()+_mat[3][3]) ;
|
|
|
|
return Vec3( (_mat[0][0]*v.x() + _mat[1][0]*v.y() + _mat[2][0]*v.z() + _mat[3][0])*d,
|
|
|
|
(_mat[0][1]*v.x() + _mat[1][1]*v.y() + _mat[2][1]*v.z() + _mat[3][1])*d,
|
|
|
|
(_mat[0][2]*v.x() + _mat[1][2]*v.y() + _mat[2][2]*v.z() + _mat[3][2])*d);
|
2001-01-11 00:32:10 +08:00
|
|
|
}
|
|
|
|
|
2001-09-22 10:42:08 +08:00
|
|
|
inline Vec4 Matrix::postMult( const Vec4& v ) const
|
2001-09-20 05:08:56 +08:00
|
|
|
{
|
|
|
|
return Vec4( (_mat[0][0]*v.x() + _mat[0][1]*v.y() + _mat[0][2]*v.z() + _mat[0][3]*v.w()),
|
|
|
|
(_mat[1][0]*v.x() + _mat[1][1]*v.y() + _mat[1][2]*v.z() + _mat[1][3]*v.w()),
|
|
|
|
(_mat[2][0]*v.x() + _mat[2][1]*v.y() + _mat[2][2]*v.z() + _mat[2][3]*v.w()),
|
|
|
|
(_mat[3][0]*v.x() + _mat[3][1]*v.y() + _mat[3][2]*v.z() + _mat[3][3]*v.w())) ;
|
|
|
|
}
|
|
|
|
|
2001-09-22 10:42:08 +08:00
|
|
|
inline Vec4 Matrix::preMult( const Vec4& v ) const
|
2001-09-20 05:08:56 +08:00
|
|
|
{
|
2001-09-22 10:42:08 +08:00
|
|
|
return Vec4( (_mat[0][0]*v.x() + _mat[1][0]*v.y() + _mat[2][0]*v.z() + _mat[3][0]*v.w()),
|
|
|
|
(_mat[0][1]*v.x() + _mat[1][1]*v.y() + _mat[2][1]*v.z() + _mat[3][1]*v.w()),
|
|
|
|
(_mat[0][2]*v.x() + _mat[1][2]*v.y() + _mat[2][2]*v.z() + _mat[3][2]*v.w()),
|
|
|
|
(_mat[0][3]*v.x() + _mat[1][3]*v.y() + _mat[2][3]*v.z() + _mat[3][3]*v.w()));
|
2001-09-20 05:08:56 +08:00
|
|
|
}
|
|
|
|
inline Vec3 Matrix::transform3x3(const Vec3& v,const Matrix& m)
|
|
|
|
{
|
|
|
|
return Vec3( (m._mat[0][0]*v.x() + m._mat[1][0]*v.y() + m._mat[2][0]*v.z()),
|
|
|
|
(m._mat[0][1]*v.x() + m._mat[1][1]*v.y() + m._mat[2][1]*v.z()),
|
|
|
|
(m._mat[0][2]*v.x() + m._mat[1][2]*v.y() + m._mat[2][2]*v.z()));
|
|
|
|
}
|
|
|
|
|
|
|
|
inline Vec3 Matrix::transform3x3(const Matrix& m,const Vec3& v)
|
|
|
|
{
|
|
|
|
return Vec3( (m._mat[0][0]*v.x() + m._mat[0][1]*v.y() + m._mat[0][2]*v.z()),
|
|
|
|
(m._mat[1][0]*v.x() + m._mat[1][1]*v.y() + m._mat[1][2]*v.z()),
|
|
|
|
(m._mat[2][0]*v.x() + m._mat[2][1]*v.y() + m._mat[2][2]*v.z()) ) ;
|
|
|
|
}
|
|
|
|
|
2001-09-22 10:42:08 +08:00
|
|
|
|
|
|
|
inline Vec3 operator* (const Vec3& v, const Matrix& m )
|
|
|
|
{
|
|
|
|
return m.preMult(v);
|
|
|
|
}
|
|
|
|
inline Vec4 operator* (const Vec4& v, const Matrix& m )
|
2001-09-20 05:08:56 +08:00
|
|
|
{
|
2001-09-22 10:42:08 +08:00
|
|
|
return m.preMult(v);
|
2001-09-20 05:08:56 +08:00
|
|
|
}
|
|
|
|
|
2001-09-22 10:42:08 +08:00
|
|
|
inline Vec3 Matrix::operator* (const Vec3& v) const
|
|
|
|
{
|
|
|
|
return postMult(v);
|
|
|
|
}
|
|
|
|
inline Vec4 Matrix::operator* (const Vec4& v) const
|
|
|
|
{
|
|
|
|
return postMult(v);
|
|
|
|
}
|
|
|
|
|
2001-12-15 05:49:04 +08:00
|
|
|
inline std::ostream& operator<< (std::ostream& os, const Matrix& m )
|
2001-09-22 10:42:08 +08:00
|
|
|
{
|
2001-12-15 05:49:04 +08:00
|
|
|
os << "{"<<std::endl;
|
2001-09-22 10:42:08 +08:00
|
|
|
for(int row=0; row<4; ++row) {
|
|
|
|
os << "\t";
|
|
|
|
for(int col=0; col<4; ++col)
|
2001-11-03 04:11:37 +08:00
|
|
|
os << m(row,col) << " ";
|
2001-12-15 05:49:04 +08:00
|
|
|
os << std::endl;
|
2001-09-22 10:42:08 +08:00
|
|
|
}
|
2001-12-15 07:18:28 +08:00
|
|
|
os << "}" << std::endl;
|
2001-09-22 10:42:08 +08:00
|
|
|
return os;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2002-02-03 20:33:41 +08:00
|
|
|
} //namespace osg
|
2001-09-22 10:42:08 +08:00
|
|
|
|
2001-01-11 00:32:10 +08:00
|
|
|
|
|
|
|
#endif
|