StatsVisitor
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_STATSVISITOR_H
#define OSGANIMATION_STATSVISITOR_H
#include <osgAnimation/Export>
#include <osgAnimation/ActionVisitor>
#include <osg/Stats>
#include <vector>
namespace osgAnimation
{
class OSGANIMATION_EXPORT StatsActionVisitor : public osgAnimation::UpdateActionVisitor
{
protected:
osg::ref_ptr<osg::Stats> _stats;
std::vector<std::string> _channels;
public:
META_ActionVisitor(osgAnimation, StatsActionVisitor);
StatsActionVisitor();
StatsActionVisitor(osg::Stats* stats, unsigned int frame);
void reset();
const std::vector<std::string>& getChannels() const { return _channels; }
osg::Stats* getStats() { return _stats.get(); }
void setStats(osg::Stats* stats) { _stats = stats; }
void setFrame(unsigned int frame) { _frame = frame; }
void apply(Timeline& action);
void apply(Action& action);
void apply(ActionBlendIn& action);
void apply(ActionBlendOut& action);
void apply(ActionAnimation& action);
void apply(ActionStripAnimation& action);
};
}
#endif
ActionVisitor
Stats
osgAnimation::ActionAnimation
Definition ActionAnimation:26
osgAnimation::ActionBlendIn
blend in from 0 to weight in duration
Definition ActionBlendIn:27
osgAnimation::ActionBlendOut
blend out from weight to 0 in duration
Definition ActionBlendOut:27
osgAnimation::ActionStripAnimation
Definition ActionStripAnimation:30
osgAnimation::Action
Definition Action:37
osgAnimation::StatsActionVisitor::StatsActionVisitor
StatsActionVisitor(osg::Stats *stats, unsigned int frame)
osgAnimation::StatsActionVisitor::StatsActionVisitor
StatsActionVisitor()
osgAnimation::StatsActionVisitor::setFrame
void setFrame(unsigned int frame)
Definition StatsVisitor:41
osgAnimation::StatsActionVisitor::apply
void apply(ActionBlendOut &action)
osgAnimation::StatsActionVisitor::getStats
osg::Stats * getStats()
Definition StatsVisitor:39
osgAnimation::StatsActionVisitor::META_ActionVisitor
META_ActionVisitor(osgAnimation, StatsActionVisitor)
osgAnimation::StatsActionVisitor::_channels
std::vector< std::string > _channels
Definition StatsVisitor:30
osgAnimation::StatsActionVisitor::_stats
osg::ref_ptr< osg::Stats > _stats
Definition StatsVisitor:29
osgAnimation::StatsActionVisitor::apply
void apply(Action &action)
osgAnimation::StatsActionVisitor::reset
void reset()
osgAnimation::StatsActionVisitor::setStats
void setStats(osg::Stats *stats)
Definition StatsVisitor:40
osgAnimation::StatsActionVisitor::apply
void apply(ActionAnimation &action)
osgAnimation::StatsActionVisitor::getChannels
const std::vector< std::string > & getChannels() const
Definition StatsVisitor:38
osgAnimation::StatsActionVisitor::apply
void apply(ActionBlendIn &action)
osgAnimation::StatsActionVisitor::apply
void apply(ActionStripAnimation &action)
osgAnimation::StatsActionVisitor::apply
void apply(Timeline &action)
osgAnimation::Timeline
Definition Timeline:32
osgAnimation::UpdateActionVisitor
Definition ActionVisitor:72
osgAnimation::UpdateActionVisitor::_frame
unsigned int _frame
Definition ActionVisitor:74
osg::Stats
Definition Stats:29
osg::ref_ptr
Definition ref_ptr:32
osgAnimation
Definition Action:34
Export
OSGANIMATION_EXPORT
#define OSGANIMATION_EXPORT
Definition osgAnimation/Export:40