Vertex morphing implementation.
More...
#include <morphgeometry.hpp>
Vertex morphing implementation.
- Note
- The internal Geometry used for rendering is double buffered, this allows updates to be done in a thread safe way while not compromising rendering performance. This is crucial when using osg's default threading model of DrawThreadPerContext.
SceneUtil::MorphGeometry::MorphGeometry |
( |
| ) |
|
SceneUtil::MorphGeometry::MorphGeometry |
( |
const MorphGeometry & |
copy, |
|
|
const osg::CopyOp & |
copyop |
|
) |
| |
void SceneUtil::MorphGeometry::accept |
( |
osg::NodeVisitor & |
nv | ) |
|
|
virtual |
void SceneUtil::MorphGeometry::accept |
( |
osg::PrimitiveFunctor & |
func | ) |
const |
|
virtual |
void SceneUtil::MorphGeometry::addMorphTarget |
( |
osg::Vec3Array * |
offsets, |
|
|
float |
weight = 1.0 |
|
) |
| |
|
virtual |
osg::BoundingBox SceneUtil::MorphGeometry::computeBoundingBox |
( |
| ) |
const |
|
virtual |
void SceneUtil::MorphGeometry::cull |
( |
osg::NodeVisitor * |
nv | ) |
|
|
private |
void SceneUtil::MorphGeometry::dirty |
( |
| ) |
|
osg::Geometry * SceneUtil::MorphGeometry::getGeometry |
( |
unsigned int |
frame | ) |
const |
|
private |
const MorphTarget& SceneUtil::MorphGeometry::getMorphTarget |
( |
unsigned int |
i | ) |
const |
|
inline |
MorphTarget& SceneUtil::MorphGeometry::getMorphTarget |
( |
unsigned int |
i | ) |
|
|
inline |
const MorphTargetList& SceneUtil::MorphGeometry::getMorphTargetList |
( |
| ) |
const |
|
inline |
Get the list of MorphTargets.
Get the list of MorphTargets. Warning if you modify this array you will have to call dirty()
osg::ref_ptr< osg::Geometry > SceneUtil::MorphGeometry::getSourceGeometry |
( |
| ) |
const |
virtual bool SceneUtil::MorphGeometry::supports |
( |
const osg::PrimitiveFunctor & |
| ) |
const |
|
inlinevirtual |
bool SceneUtil::MorphGeometry::mDirty |
|
private |
osg::ref_ptr<osg::Geometry> SceneUtil::MorphGeometry::mGeometry[2] |
|
private |
unsigned int SceneUtil::MorphGeometry::mLastFrameNumber |
|
private |
bool SceneUtil::MorphGeometry::mMorphedBoundingBox |
|
mutableprivate |
osg::ref_ptr<osg::Geometry> SceneUtil::MorphGeometry::mSourceGeometry |
|
private |
The documentation for this class was generated from the following files: