class SG_EXPORT osg::Matrix: public Object

4x4 Matrix for storage & manipulation of transformations in scene graph.

Inheritance:


Public Fields

[more]float _mat[4][4]

Public Methods

[more] Matrix()
[more] Matrix(const Matrix& matrix)
[more] 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)
[more]Matrix& operator = (const Matrix& matrix)
[more]virtual ~Matrix()
[more]static Matrix* instance()
[more]virtual Object* clone() const
[more]virtual bool isSameKindAs(Object* obj)
[more]virtual const char* className() const
[more]void makeIdent()
[more]void set(const float* m)
[more]void copy(const Matrix& matrix)
[more]void makeScale(float sx, float sy, float sz)
[more]void preScale( float sx, float sy, float sz, const Matrix& m )
[more]void postScale( const Matrix& m, float sx, float sy, float sz )
[more]void preScale( float sx, float sy, float sz )
[more]void postScale( float sx, float sy, float sz )
[more]void makeTrans( float tx, float ty, float tz )
[more]void preTrans( float tx, float ty, float tz, const Matrix& m )
[more]void postTrans( const Matrix& m, float tx, float ty, float tz )
[more]void preTrans( float tx, float ty, float tz )
[more]void postTrans( float tx, float ty, float tz )
[more]void makeRot( float deg, float x, float y, float z )
[more]void preRot( float deg, float x, float y, float z, const Matrix& m )
[more]void postRot( const Matrix& m, float deg, float x, float y, float z )
[more]void preRot( float deg, float x, float y, float z )
[more]void postRot( float deg, float x, float y, float z )
[more]void setTrans( float tx, float ty, float tz )
[more]void setTrans( const Vec3& v )
[more]Vec3 getTrans() const
[more]void preMult(const Matrix& m)
[more]void postMult(const Matrix& m)
[more]void mult(const Matrix& lhs, const Matrix& rhs)
[more]Matrix operator * (const Matrix& m) const
[more]inline Vec3 operator * (const Vec3& v) const
[more]inline friend Vec3 operator * (const Vec3& v, const Matrix& m)
[more]bool invert(const Matrix& m)

Protected Methods

[more]virtual bool readLocalData(Input& fr)
[more]virtual bool writeLocalData(Output& fw)


Inherited from Object:

Public Methods

ovirtual Object* readClone(Input& fr)
ovirtual bool write(Output& fw)


Inherited from Referenced:

Public Methods

ovoid ref()
ovoid unref()
oint referenceCount()

Protected Fields

oint _refCount


Documentation

4x4 Matrix for storage & manipulation of transformations in scene graph. Provides basic maths operations, IO and via osg::Object reference counting.
o Matrix()

o Matrix(const Matrix& matrix)

o 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)

oMatrix& operator = (const Matrix& matrix)

ovirtual ~Matrix()

ostatic Matrix* instance()

ovirtual Object* clone() const

ovirtual bool isSameKindAs(Object* obj)

ovirtual const char* className() const

ovoid makeIdent()

ovoid set(const float* m)

ovoid copy(const Matrix& matrix)

ovoid makeScale(float sx, float sy, float sz)

ovoid preScale( float sx, float sy, float sz, const Matrix& m )

ovoid postScale( const Matrix& m, float sx, float sy, float sz )

ovoid preScale( float sx, float sy, float sz )

ovoid postScale( float sx, float sy, float sz )

ovoid makeTrans( float tx, float ty, float tz )

ovoid preTrans( float tx, float ty, float tz, const Matrix& m )

ovoid postTrans( const Matrix& m, float tx, float ty, float tz )

ovoid preTrans( float tx, float ty, float tz )

ovoid postTrans( float tx, float ty, float tz )

ovoid makeRot( float deg, float x, float y, float z )

ovoid preRot( float deg, float x, float y, float z, const Matrix& m )

ovoid postRot( const Matrix& m, float deg, float x, float y, float z )

ovoid preRot( float deg, float x, float y, float z )

ovoid postRot( float deg, float x, float y, float z )

ovoid setTrans( float tx, float ty, float tz )

ovoid setTrans( const Vec3& v )

oVec3 getTrans() const

ovoid preMult(const Matrix& m)

ovoid postMult(const Matrix& m)

ovoid mult(const Matrix& lhs, const Matrix& rhs)

oMatrix operator * (const Matrix& m) const

oinline Vec3 operator * (const Vec3& v) const

oinline friend Vec3 operator * (const Vec3& v, const Matrix& m)

obool invert(const Matrix& m)

ofloat _mat[4][4]

ovirtual bool readLocalData(Input& fr)

ovirtual bool writeLocalData(Output& fw)


Direct child classes:
TexMat

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.