15#define OSG_TRANSFORM 1
20#ifndef GL_RESCALE_NORMAL
21#define GL_RESCALE_NORMAL 0x803A
25#define GL_NORMALIZE 0x0BA1
The core osg library provides the basic scene graph classes such as Nodes, State and Drawables,...
Definition AlphaFunc:19
OSG_EXPORT Matrix computeEyeToLocal(const Matrix &modelview, const NodePath &nodePath, bool ignoreCameras=true)
Compute the matrix which transforms objects in eye coords to local coords, by accumulating the Transf...
BoundingSphered BoundingSphere
Definition BoundingSphere:308
Matrixd Matrix
Definition Matrix:27
std::vector< Node * > NodePath
A vector of Nodes pointers which is used to describe the path from a root node to a descendant.
Definition Node:47
OSG_EXPORT Matrix computeLocalToEye(const Matrix &modelview, const NodePath &nodePath, bool ignoreCameras=true)
Compute the matrix which transforms objects in local coords to eye coords, by accumulating the Transf...
OSG_EXPORT Matrix computeLocalToWorld(const NodePath &nodePath, bool ignoreCameras=true)
Compute the matrix which transforms objects in local coords to world coords, by accumulating the Tran...
OSG_EXPORT Matrix computeWorldToLocal(const NodePath &nodePath, bool ignoreCameras=true)
Compute the matrix which transforms objects in world coords to local coords, by accumulating the Tran...
AutoTransform is a derived form of Transform that automatically scales or rotates to keep its childre...
Definition AutoTransform:28
Copy Op(erator) used to control whether shallow or deep copy is used during copy construction and clo...
Definition CopyOp:41
@ SHALLOW_COPY
Definition CopyOp:47
MatrixTransform - is a subclass of Transform which has an osg::Matrix which represents a 4x4 transfor...
Definition MatrixTransform:26
Visitor for type safe operations on osg::Nodes.
Definition NodeVisitor:82
PositionAttitudeTransform - is a Transform.
Definition PositionAttitudeTransform:29
ReferenceFrame _referenceFrame
Definition Transform:164
META_Node(osg, Transform)
Transform(const Transform &, const CopyOp ©op=CopyOp::SHALLOW_COPY)
Copy constructor using CopyOp to manage deep vs shallow copy.
virtual bool computeWorldToLocalMatrix(Matrix &matrix, NodeVisitor *) const
Definition Transform:139
virtual const AutoTransform * asAutoTransform() const
Definition Transform:95
virtual AutoTransform * asAutoTransform()
Definition Transform:94
virtual const MatrixTransform * asMatrixTransform() const
Definition Transform:89
virtual const Transform * asTransform() const
convert 'const this' into a const Transform pointer if Node is a Transform, otherwise return 0.
Definition Transform:86
virtual Transform * asTransform()
Convert 'this' into a Transform pointer if Node is a Transform, otherwise return 0.
Definition Transform:85
virtual PositionAttitudeTransform * asPositionAttitudeTransform()
Definition Transform:91
virtual BoundingSphere computeBound() const
Overrides Group's computeBound.
virtual MatrixTransform * asMatrixTransform()
Definition Transform:88
ReferenceFrame getReferenceFrame() const
Definition Transform:124
virtual bool computeLocalToWorldMatrix(Matrix &matrix, NodeVisitor *) const
Definition Transform:126
virtual const PositionAttitudeTransform * asPositionAttitudeTransform() const
Definition Transform:92
ReferenceFrame
Definition Transform:98
@ RELATIVE_RF
Definition Transform:99
@ ABSOLUTE_RF_INHERIT_VIEWPOINT
Definition Transform:101
@ ABSOLUTE_RF
Definition Transform:100
void setReferenceFrame(ReferenceFrame rf)
Set the transform's ReferenceFrame, either to be relative to its parent reference frame,...
#define OSG_EXPORT
Definition Export:39