OpenCOVER
|
#include <coBillboard.h>
Public Types | |
enum | RotationMode { STOP_ROT = 0, AXIAL_ROT, POINT_ROT_EYE, POINT_ROT_WORLD } |
Public Member Functions | |
coBillboard () | |
coBillboard (const coBillboard &pat, const osg::CopyOp ©op=osg::CopyOp::SHALLOW_COPY) | |
virtual osg::Object * | cloneType () const |
virtual osg::Object * | clone (const osg::CopyOp ©op) const |
virtual bool | isSameKindAs (const osg::Object *obj) const |
virtual const char * | className () const |
virtual const char * | libraryname () const |
virtual void | accept (osg::NodeVisitor &nv) |
void | setMode (RotationMode mode) |
RotationMode | getMode () const |
void | setAxis (const osg::Vec3 &axis) |
const osg::Vec3 & | getAxis () const |
void | setNormal (const osg::Vec3 &normal) |
const osg::Vec3 & | getNormal () const |
virtual bool | computeLocalToWorldMatrix (osg::Matrix &matrix, osg::NodeVisitor *nv) const |
virtual bool | computeWorldToLocalMatrix (osg::Matrix &matrix, osg::NodeVisitor *nv) const |
Protected Member Functions | |
virtual | ~coBillboard () |
Protected Attributes | |
osg::Vec3 | _axis |
osg::Vec3 | _normal |
RotationMode | _mode |
osg::Quat | _rotation |
osg::Matrix | _cachedMatrix |
osg::Matrix | _cachedInvMatrix |
coBillboard is a derived form of Transform that automatically scales or rotates to keep its children aligned with screen coordinates.
opencover::coBillboard::coBillboard | ( | ) |
opencover::coBillboard::coBillboard | ( | const coBillboard & | pat, |
const osg::CopyOp & | copyop = osg::CopyOp::SHALLOW_COPY |
||
) |
|
inlineprotectedvirtual |
|
virtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
virtual |
|
virtual |
const osg::Vec3& opencover::coBillboard::getAxis | ( | ) | const |
RotationMode opencover::coBillboard::getMode | ( | ) | const |
const osg::Vec3& opencover::coBillboard::getNormal | ( | ) | const |
|
inlinevirtual |
|
inlinevirtual |
void opencover::coBillboard::setAxis | ( | const osg::Vec3 & | axis | ) |
void opencover::coBillboard::setMode | ( | RotationMode | mode | ) |
void opencover::coBillboard::setNormal | ( | const osg::Vec3 & | normal | ) |
|
protected |
|
mutableprotected |
|
mutableprotected |
|
protected |
|
protected |
|
mutableprotected |