OSG  3.4.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Protected Member Functions | List of all members
osg::RefMatrixd Class Reference

#include <Matrixd.h>

Inheritance diagram for osg::RefMatrixd:
Inheritance graph
[legend]
Collaboration diagram for osg::RefMatrixd:
Collaboration graph
[legend]

Public Member Functions

 RefMatrixd ()
 
 RefMatrixd (const Matrixd &other)
 
 RefMatrixd (const Matrixf &other)
 
 RefMatrixd (const RefMatrixd &other)
 
 RefMatrixd (Matrixd::value_type const *const def)
 
 RefMatrixd (Matrixd::value_type a00, Matrixd::value_type a01, Matrixd::value_type a02, Matrixd::value_type a03, Matrixd::value_type a10, Matrixd::value_type a11, Matrixd::value_type a12, Matrixd::value_type a13, Matrixd::value_type a20, Matrixd::value_type a21, Matrixd::value_type a22, Matrixd::value_type a23, Matrixd::value_type a30, Matrixd::value_type a31, Matrixd::value_type a32, Matrixd::value_type a33)
 
virtual ObjectcloneType () const
 
virtual Objectclone (const CopyOp &) const
 
virtual bool isSameKindAs (const Object *obj) const
 
virtual const char * libraryName () const
 
virtual const char * className () const
 
- Public Member Functions inherited from osg::Object
 Object ()
 
 Object (bool threadSafeRefUnref)
 
 Object (const Object &, const CopyOp &copyop=CopyOp::SHALLOW_COPY)
 
std::string getCompoundClassName () const
 
virtual NodeasNode ()
 
virtual const NodeasNode () const
 
virtual NodeVisitorasNodeVisitor ()
 
virtual const NodeVisitorasNodeVisitor () const
 
virtual StateAttributeasStateAttribute ()
 
virtual const StateAttributeasStateAttribute () const
 
virtual UniformasUniform ()
 
virtual const UniformasUniform () const
 
virtual void setThreadSafeRefUnref (bool threadSafe)
 
virtual void setName (const std::string &name)
 
void setName (const char *name)
 
const std::string & getName () const
 
void setDataVariance (DataVariance dv)
 
DataVariance getDataVariance () const
 
virtual void computeDataVariance ()
 
void setUserDataContainer (osg::UserDataContainer *udc)
 
osg::UserDataContainergetUserDataContainer ()
 
const osg::UserDataContainergetUserDataContainer () const
 
osg::UserDataContainergetOrCreateUserDataContainer ()
 
virtual void setUserData (Referenced *obj)
 
virtual ReferencedgetUserData ()
 
virtual const ReferencedgetUserData () const
 
template<typename T >
bool getUserValue (const std::string &name, T &value) const
 
template<typename T >
void setUserValue (const std::string &name, const T &value)
 
virtual void resizeGLObjectBuffers (unsigned int)
 
virtual void releaseGLObjects (osg::State *=0) const
 
template<typename T >
BoolValueObject
UCharValueObject
UShortValueObject
UIntValueObject
DoubleValueObject
Vec3fValueObject
Vec2dValueObject
Vec4dValueObject
PlaneValueObject
MatrixdValueObject
BoundingBoxdValueObject
BoundingSpheredValueObject
bool 
getUserValue (const std::string &name, T &value) const
 
- Public Member Functions inherited from osg::Referenced
 Referenced ()
 
 Referenced (bool threadSafeRefUnref)
 
 Referenced (const Referenced &)
 
Referencedoperator= (const Referenced &)
 
bool getThreadSafeRefUnref () const
 
OpenThreads::MutexgetRefMutex () const
 
int ref () const
 
int unref () const
 
int unref_nodelete () const
 
int referenceCount () const
 
ObserverSetgetObserverSet () const
 
ObserverSetgetOrCreateObserverSet () const
 
void addObserver (Observer *observer) const
 
void removeObserver (Observer *observer) const
 
- Public Member Functions inherited from osg::Matrixd
 Matrixd ()
 
 Matrixd (const Matrixd &mat)
 
 Matrixd (const Matrixf &mat)
 
 Matrixd (float const *const ptr)
 
 Matrixd (double const *const ptr)
 
 Matrixd (const Quat &quat)
 
 Matrixd (value_type a00, value_type a01, value_type a02, value_type a03, value_type a10, value_type a11, value_type a12, value_type a13, value_type a20, value_type a21, value_type a22, value_type a23, value_type a30, value_type a31, value_type a32, value_type a33)
 
 ~Matrixd ()
 
int compare (const Matrixd &m) const
 
bool operator< (const Matrixd &m) const
 
bool operator== (const Matrixd &m) const
 
bool operator!= (const Matrixd &m) const
 
value_typeoperator() (int row, int col)
 
value_type operator() (int row, int col) const
 
bool valid () const
 
bool isNaN () const
 
Matrixdoperator= (const Matrixd &rhs)
 
Matrixdoperator= (const Matrixf &other)
 
void set (const Matrixd &rhs)
 
void set (const Matrixf &rhs)
 
void set (float const *const ptr)
 
void set (double const *const ptr)
 
void set (value_type a00, value_type a01, value_type a02, value_type a03, value_type a10, value_type a11, value_type a12, value_type a13, value_type a20, value_type a21, value_type a22, value_type a23, value_type a30, value_type a31, value_type a32, value_type a33)
 
value_typeptr ()
 
const value_typeptr () const
 
bool isIdentity () const
 
void makeIdentity ()
 
void makeScale (const Vec3f &)
 
void makeScale (const Vec3d &)
 
void makeScale (value_type, value_type, value_type)
 
void makeTranslate (const Vec3f &)
 
void makeTranslate (const Vec3d &)
 
void makeTranslate (value_type, value_type, value_type)
 
void makeRotate (const Vec3f &from, const Vec3f &to)
 
void makeRotate (const Vec3d &from, const Vec3d &to)
 
void makeRotate (value_type angle, const Vec3f &axis)
 
void makeRotate (value_type angle, const Vec3d &axis)
 
void makeRotate (value_type angle, value_type x, value_type y, value_type z)
 
void makeRotate (const Quat &)
 
void makeRotate (value_type angle1, const Vec3f &axis1, value_type angle2, const Vec3f &axis2, value_type angle3, const Vec3f &axis3)
 
void makeRotate (value_type angle1, const Vec3d &axis1, value_type angle2, const Vec3d &axis2, value_type angle3, const Vec3d &axis3)
 
void decompose (osg::Vec3f &translation, osg::Quat &rotation, osg::Vec3f &scale, osg::Quat &so) const
 
void decompose (osg::Vec3d &translation, osg::Quat &rotation, osg::Vec3d &scale, osg::Quat &so) const
 
void makeOrtho (double left, double right, double bottom, double top, double zNear, double zFar)
 
bool getOrtho (double &left, double &right, double &bottom, double &top, double &zNear, double &zFar) const
 
bool getOrtho (float &left, float &right, float &bottom, float &top, float &zNear, float &zFar) const
 
void makeOrtho2D (double left, double right, double bottom, double top)
 
void makeFrustum (double left, double right, double bottom, double top, double zNear, double zFar)
 
bool getFrustum (double &left, double &right, double &bottom, double &top, double &zNear, double &zFar) const
 
bool getFrustum (float &left, float &right, float &bottom, float &top, float &zNear, float &zFar) const
 
void makePerspective (double fovy, double aspectRatio, double zNear, double zFar)
 
bool getPerspective (double &fovy, double &aspectRatio, double &zNear, double &zFar) const
 
bool getPerspective (float &fovy, float &aspectRatio, float &zNear, float &zFar) const
 
void makeLookAt (const Vec3d &eye, const Vec3d &center, const Vec3d &up)
 
void getLookAt (Vec3f &eye, Vec3f &center, Vec3f &up, value_type lookDistance=1.0f) const
 
void getLookAt (Vec3d &eye, Vec3d &center, Vec3d &up, value_type lookDistance=1.0f) const
 
bool invert (const Matrixd &rhs)
 
bool invert_4x3 (const Matrixd &rhs)
 
bool invert_4x4 (const Matrixd &rhs)
 
void orthoNormalize (const Matrixd &rhs)
 
Vec3f preMult (const Vec3f &v) const
 
Vec3d preMult (const Vec3d &v) const
 
Vec3f postMult (const Vec3f &v) const
 
Vec3d postMult (const Vec3d &v) const
 
Vec3f operator* (const Vec3f &v) const
 
Vec3d operator* (const Vec3d &v) const
 
Vec4f preMult (const Vec4f &v) const
 
Vec4d preMult (const Vec4d &v) const
 
Vec4f postMult (const Vec4f &v) const
 
Vec4d postMult (const Vec4d &v) const
 
Vec4f operator* (const Vec4f &v) const
 
Vec4d operator* (const Vec4d &v) const
 
void setRotate (const Quat &q)
 
Quat getRotate () const
 
void setTrans (value_type tx, value_type ty, value_type tz)
 
void setTrans (const Vec3f &v)
 
void setTrans (const Vec3d &v)
 
Vec3d getTrans () const
 
Vec3d getScale () const
 
void mult (const Matrixd &, const Matrixd &)
 
void preMult (const Matrixd &)
 
void postMult (const Matrixd &)
 
void preMultTranslate (const Vec3d &v)
 
void preMultTranslate (const Vec3f &v)
 
void postMultTranslate (const Vec3d &v)
 
void postMultTranslate (const Vec3f &v)
 
void preMultScale (const Vec3d &v)
 
void preMultScale (const Vec3f &v)
 
void postMultScale (const Vec3d &v)
 
void postMultScale (const Vec3f &v)
 
void preMultRotate (const Quat &q)
 
void postMultRotate (const Quat &q)
 
void operator*= (const Matrixd &other)
 
Matrixd operator* (const Matrixd &m) const
 

Protected Member Functions

virtual ~RefMatrixd ()
 
- Protected Member Functions inherited from osg::Object
virtual ~Object ()
 
- Protected Member Functions inherited from osg::Referenced
virtual ~Referenced ()
 
void signalObserversAndDelete (bool signalDelete, bool doDelete) const
 
void deleteUsingDeleteHandler () const
 

Additional Inherited Members

- Public Types inherited from osg::Object
enum  DataVariance { DYNAMIC, STATIC, UNSPECIFIED }
 
- Public Types inherited from osg::Matrixd
typedef double value_type
 
typedef float other_value_type
 
- Static Public Member Functions inherited from osg::Referenced
static OpenThreads::MutexgetGlobalReferencedMutex ()
 
static void setThreadSafeReferenceCounting (bool enableThreadSafeReferenceCounting)
 
static bool getThreadSafeReferenceCounting ()
 
static void setDeleteHandler (DeleteHandler *handler)
 
static DeleteHandlergetDeleteHandler ()
 
- Static Public Member Functions inherited from osg::Matrixd
static Matrixd identity (void)
 
static Matrixd scale (const Vec3f &sv)
 
static Matrixd scale (const Vec3d &sv)
 
static Matrixd scale (value_type sx, value_type sy, value_type sz)
 
static Matrixd translate (const Vec3f &dv)
 
static Matrixd translate (const Vec3d &dv)
 
static Matrixd translate (value_type x, value_type y, value_type z)
 
static Matrixd rotate (const Vec3f &from, const Vec3f &to)
 
static Matrixd rotate (const Vec3d &from, const Vec3d &to)
 
static Matrixd rotate (value_type angle, value_type x, value_type y, value_type z)
 
static Matrixd rotate (value_type angle, const Vec3f &axis)
 
static Matrixd rotate (value_type angle, const Vec3d &axis)
 
static Matrixd rotate (value_type angle1, const Vec3f &axis1, value_type angle2, const Vec3f &axis2, value_type angle3, const Vec3f &axis3)
 
static Matrixd rotate (value_type angle1, const Vec3d &axis1, value_type angle2, const Vec3d &axis2, value_type angle3, const Vec3d &axis3)
 
static Matrixd rotate (const Quat &quat)
 
static Matrixd inverse (const Matrixd &matrix)
 
static Matrixd orthoNormal (const Matrixd &matrix)
 
static Matrixd ortho (double left, double right, double bottom, double top, double zNear, double zFar)
 
static Matrixd ortho2D (double left, double right, double bottom, double top)
 
static Matrixd frustum (double left, double right, double bottom, double top, double zNear, double zFar)
 
static Matrixd perspective (double fovy, double aspectRatio, double zNear, double zFar)
 
static Matrixd lookAt (const Vec3f &eye, const Vec3f &center, const Vec3f &up)
 
static Matrixd lookAt (const Vec3d &eye, const Vec3d &center, const Vec3d &up)
 
static Vec3f transform3x3 (const Vec3f &v, const Matrixd &m)
 
static Vec3d transform3x3 (const Vec3d &v, const Matrixd &m)
 
static Vec3f transform3x3 (const Matrixd &m, const Vec3f &v)
 
static Vec3d transform3x3 (const Matrixd &m, const Vec3d &v)
 
- Protected Attributes inherited from osg::Object
std::string _name
 
DataVariance _dataVariance
 
osg::UserDataContainer_userDataContainer
 
- Protected Attributes inherited from osg::Referenced
OpenThreads::AtomicPtr _observerSet
 
OpenThreads::Atomic _refCount
 
- Protected Attributes inherited from osg::Matrixd
value_type _mat [4][4]
 

Detailed Description

Definition at line 405 of file Matrixd.h.

Constructor & Destructor Documentation

osg::RefMatrixd::RefMatrixd ( )
inline

Definition at line 409 of file Matrixd.h.

Here is the caller graph for this function:

osg::RefMatrixd::RefMatrixd ( const Matrixd other)
inline

Definition at line 410 of file Matrixd.h.

osg::RefMatrixd::RefMatrixd ( const Matrixf other)
inline

Definition at line 411 of file Matrixd.h.

osg::RefMatrixd::RefMatrixd ( const RefMatrixd other)
inline

Definition at line 412 of file Matrixd.h.

osg::RefMatrixd::RefMatrixd ( Matrixd::value_type const *const  def)
inlineexplicit

Definition at line 413 of file Matrixd.h.

Definition at line 414 of file Matrixd.h.

virtual osg::RefMatrixd::~RefMatrixd ( )
inlineprotectedvirtual

Definition at line 433 of file Matrixd.h.

Member Function Documentation

virtual const char* osg::RefMatrixd::className ( ) const
inlinevirtual

return the name of the object's class type. Must be defined by derived classes.

Implements osg::Object.

Definition at line 428 of file Matrixd.h.

virtual Object* osg::RefMatrixd::clone ( const CopyOp ) const
inlinevirtual

Clone an object, with Object* return type. Must be defined by derived classes.

Implements osg::Object.

Definition at line 425 of file Matrixd.h.

Here is the call graph for this function:

virtual Object* osg::RefMatrixd::cloneType ( ) const
inlinevirtual

Clone the type of an object, with Object* return type. Must be defined by derived classes.

Implements osg::Object.

Definition at line 424 of file Matrixd.h.

Here is the call graph for this function:

virtual bool osg::RefMatrixd::isSameKindAs ( const Object obj) const
inlinevirtual

Reimplemented from osg::Object.

Definition at line 426 of file Matrixd.h.

virtual const char* osg::RefMatrixd::libraryName ( ) const
inlinevirtual

return the name of the object's library. Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name.

Implements osg::Object.

Definition at line 427 of file Matrixd.h.


The documentation for this class was generated from the following file: