15#ifndef OSGANIMATION_RIGGEOMETRY_H
16#define OSGANIMATION_RIGGEOMETRY_H
142 if(!finder.
_root.valid())
144 osg::notify(
osg::WARN) <<
"A RigGeometry did not find a parent skeleton for RigGeometry ( " << geom->
getName() <<
" )" << std::endl;
The core osg library provides the basic scene graph classes such as Nodes, State and Drawables,...
Definition AlphaFunc:19
@ WARN
Definition Notify:33
BoundingBoxd BoundingBox
Definition BoundingBox:257
Matrixd Matrix
Definition Matrix:27
std::ostream & notify(void)
Definition Notify:80
The osgAnimation library provides general purpose utility classes for animation.
Definition Action:34
Callback()
Definition Callback:38
DrawableUpdateCallback()
Definition Callback:300
virtual void update(osg::NodeVisitor *, osg::Drawable *)
do customized update code.
Definition Callback:315
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
Pure virtual base class for drawable geometry.
Definition Drawable:89
DrawableUpdateCallback UpdateCallback
Definition Drawable:344
Callback to allow users to override the default computation of bounding volume.
Definition Drawable:162
ComputeBoundingBoxCallback()
Definition Drawable:163
const ParentList & getParents() const
Get the parent list of node.
Definition Node:173
Visitor for type safe operations on osg::Nodes.
Definition NodeVisitor:82
@ TRAVERSE_PARENTS
Definition NodeVisitor:88
void traverse(Node &node)
Method for handling traversal of a nodes.
Definition NodeVisitor:274
NodeVisitor(TraversalMode tm=TRAVERSE_NONE)
Object()
Construct an object.
Definition Object:69
const std::string & getName() const
Get the name of object.
Definition Object:213
Smart pointer for observed objects, that automatically set pointers to them to null when they are del...
Definition observer_ptr:39
Smart pointer for handling referenced counted objects.
Definition ref_ptr:32
A Transform is a group node for which all children are transformed by a 4x4 matrix.
Definition Transform:75
void reset()
Definition RigGeometry:39
RigComputeBoundingBoxCallback(double factor=2.0)
Definition RigGeometry:30
META_Object(osgAnimation, RigComputeBoundingBoxCallback)
virtual osg::BoundingBox computeBound(const osg::Drawable &drawable) const
RigComputeBoundingBoxCallback(const RigComputeBoundingBoxCallback &rhs, const osg::CopyOp ©op)
Definition RigGeometry:32
double _factor
Definition RigGeometry:44
osg::BoundingBox _boundingBox
Definition RigGeometry:45
bool _computed
Definition RigGeometry:43
Definition RigGeometry:50
osg::Geometry * getSourceGeometry()
Definition RigGeometry:86
osg::ref_ptr< osg::Geometry > _geometry
Definition RigGeometry:107
osg::observer_ptr< Skeleton > _root
Definition RigGeometry:113
META_Object(osgAnimation, RigGeometry)
osg::Matrix _invMatrixFromSkeletonToGeometry
Definition RigGeometry:112
void computeMatrixFromRootSkeleton()
void copyFrom(osg::Geometry &from)
void setNeedToComputeMatrix(bool state)
Definition RigGeometry:68
osg::Matrix _matrixFromSkeletonToGeometry
Definition RigGeometry:111
void buildVertexInfluenceSet()
Definition RigGeometry:80
const Skeleton * getSkeleton() const
Definition RigGeometry:63
void setInfluenceMap(VertexInfluenceMap *vertexInfluenceMap)
Definition RigGeometry:59
osg::ref_ptr< RigTransform > _rigTransformImplementation
Definition RigGeometry:108
VertexInfluenceMap * getInfluenceMap()
Definition RigGeometry:61
Skeleton * getSkeleton()
Definition RigGeometry:64
const osg::Matrix & getMatrixFromSkeletonToGeometry() const
osg::ref_ptr< VertexInfluenceMap > _vertexInfluenceMap
Definition RigGeometry:109
bool _needToComputeMatrix
Definition RigGeometry:114
RigTransform * getRigTransformImplementation()
Definition RigGeometry:74
void setSkeleton(Skeleton *root)
Definition RigGeometry:66
const osg::Geometry * getSourceGeometry() const
Definition RigGeometry:87
bool getNeedToComputeMatrix() const
Definition RigGeometry:69
const osg::Matrix & getInvMatrixFromSkeletonToGeometry() const
void setSourceGeometry(osg::Geometry *geometry)
Definition RigGeometry:88
const RigTransform * getRigTransformImplementation() const
Definition RigGeometry:76
const VertexInfluenceMap * getInfluenceMap() const
Definition RigGeometry:60
RigGeometry(const RigGeometry &b, const osg::CopyOp ©op=osg::CopyOp::SHALLOW_COPY)
void setRigTransformImplementation(RigTransform *rig)
Definition RigGeometry:75
Definition RigGeometry:93
osg::ref_ptr< Skeleton > _root
Definition RigGeometry:94
FindNearestParentSkeleton()
Definition RigGeometry:95
void apply(osg::Transform &node)
Definition RigGeometry:96
UpdateRigGeometry()
Definition RigGeometry:121
META_Object(osgAnimation, UpdateRigGeometry)
virtual void update(osg::NodeVisitor *nv, osg::Drawable *drw)
do customized update code.
Definition RigGeometry:130
UpdateRigGeometry(const UpdateRigGeometry &org, const osg::CopyOp ©op)
Definition RigGeometry:123
Definition RigTransform:26
virtual bool prepareData(RigGeometry &)
to call manually when a skeleton is reacheable from the rig in order to prepare technic data before r...
Definition RigTransform:38
Definition VertexInfluence:52
#define OSGANIMATION_EXPORT
Definition Export:40