UpdateMatrixTransform
Go to the documentation of this file.
/* -*-c++-*-
* Copyright (C) 2009 Cedric Pinson <cedric.pinson@plopbyte.net>
*
* This library is open source and may be redistributed and/or modified under
* the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or
* (at your option) any later version. The full license is in LICENSE file
* included with this distribution, and on the openscenegraph.org website.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* OpenSceneGraph Public License for more details.
*/
#ifndef OSGANIMATION_UPDATE_MATRIX_TRANSFORM
#define OSGANIMATION_UPDATE_MATRIX_TRANSFORM 1
#include <osg/Callback>
#include <osgAnimation/Export>
#include <osgAnimation/AnimationUpdateCallback>
#include <osgAnimation/StackedTransform>
namespace osgAnimation
{
class OSGANIMATION_EXPORT UpdateMatrixTransform : public AnimationUpdateCallback<osg::NodeCallback>
{
public:
META_Object(osgAnimation, UpdateMatrixTransform);
UpdateMatrixTransform(const std::string& name = "");
UpdateMatrixTransform(const UpdateMatrixTransform& apc,const osg::CopyOp& copyop = osg::CopyOp::SHALLOW_COPY);
// Callback method called by the NodeVisitor when visiting a node.
virtual void operator()(osg::Node* node, osg::NodeVisitor* nv);
virtual bool link(osgAnimation::Channel* channel);
StackedTransform& getStackedTransforms() { return _transforms;}
const StackedTransform& getStackedTransforms() const { return _transforms;}
protected:
StackedTransform _transforms;
};
}
#endif
AnimationUpdateCallback
Callback
StackedTransform
osgAnimation::AnimationUpdateCallback< osg::NodeCallback >::AnimationUpdateCallback
AnimationUpdateCallback()
Definition AnimationUpdateCallback:38
osgAnimation::Channel
Definition Channel:33
osgAnimation::StackedTransform
Definition StackedTransform:26
osgAnimation::UpdateMatrixTransform::UpdateMatrixTransform
UpdateMatrixTransform(const std::string &name="")
osgAnimation::UpdateMatrixTransform::link
virtual bool link(osgAnimation::Channel *channel)
osgAnimation::UpdateMatrixTransform::getStackedTransforms
const StackedTransform & getStackedTransforms() const
Definition UpdateMatrixTransform:40
osgAnimation::UpdateMatrixTransform::getStackedTransforms
StackedTransform & getStackedTransforms()
Definition UpdateMatrixTransform:39
osgAnimation::UpdateMatrixTransform::UpdateMatrixTransform
UpdateMatrixTransform(const UpdateMatrixTransform &apc, const osg::CopyOp &copyop=osg::CopyOp::SHALLOW_COPY)
osgAnimation::UpdateMatrixTransform::_transforms
StackedTransform _transforms
Definition UpdateMatrixTransform:43
osgAnimation::UpdateMatrixTransform::operator()
virtual void operator()(osg::Node *node, osg::NodeVisitor *nv)
osgAnimation::UpdateMatrixTransform::META_Object
META_Object(osgAnimation, UpdateMatrixTransform)
osg::CopyOp
Definition CopyOp:41
osg::CopyOp::SHALLOW_COPY
@ SHALLOW_COPY
Definition CopyOp:47
osg::NodeVisitor
Definition NodeVisitor:82
osg::Node
Definition Node:72
osgAnimation
Definition Action:34
Export
OSGANIMATION_EXPORT
#define OSGANIMATION_EXPORT
Definition osgAnimation/Export:40