OpenSceneGraph 3.6.5
StatsVisitor
Go to the documentation of this file.
1/* -*-c++-*-
2 * Copyright (C) 2009 Cedric Pinson <cedric.pinson@plopbyte.net>
3 *
4 * This library is open source and may be redistributed and/or modified under
5 * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or
6 * (at your option) any later version. The full license is in LICENSE file
7 * included with this distribution, and on the openscenegraph.org website.
8 *
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * OpenSceneGraph Public License for more details.
13*/
14
15#ifndef OSGANIMATION_STATSVISITOR_H
16#define OSGANIMATION_STATSVISITOR_H
17
18#include <osgAnimation/Export>
20#include <osg/Stats>
21#include <vector>
22
23namespace osgAnimation
24{
25
27 {
28 protected:
30 std::vector<std::string> _channels;
31
32 public:
34
36 StatsActionVisitor(osg::Stats* stats, unsigned int frame);
37 void reset();
38 const std::vector<std::string>& getChannels() const { return _channels; }
39 osg::Stats* getStats() { return _stats.get(); }
40 void setStats(osg::Stats* stats) { _stats = stats; }
41 void setFrame(unsigned int frame) { _frame = frame; }
42 void apply(Timeline& action);
43 void apply(Action& action);
44 void apply(ActionBlendIn& action);
45 void apply(ActionBlendOut& action);
46 void apply(ActionAnimation& action);
48
49 };
50
51}
52
53#endif
The osgAnimation library provides general purpose utility classes for animation.
Definition Action:34
Smart pointer for handling referenced counted objects.
Definition ref_ptr:32
Definition Stats:29
Definition Action:37
Definition ActionAnimation:26
blend in from 0 to weight in duration
Definition ActionBlendIn:27
blend out from weight to 0 in duration
Definition ActionBlendOut:27
Definition ActionStripAnimation:30
Definition ActionVisitor:72
unsigned int _frame
Definition ActionVisitor:74
StatsActionVisitor(osg::Stats *stats, unsigned int frame)
void setFrame(unsigned int frame)
Definition StatsVisitor:41
void apply(ActionBlendOut &action)
osg::Stats * getStats()
Definition StatsVisitor:39
META_ActionVisitor(osgAnimation, StatsActionVisitor)
std::vector< std::string > _channels
Definition StatsVisitor:30
osg::ref_ptr< osg::Stats > _stats
Definition StatsVisitor:29
void apply(Action &action)
void setStats(osg::Stats *stats)
Definition StatsVisitor:40
void apply(ActionAnimation &action)
const std::vector< std::string > & getChannels() const
Definition StatsVisitor:38
void apply(ActionBlendIn &action)
void apply(ActionStripAnimation &action)
void apply(Timeline &action)
Definition Timeline:32
#define OSGANIMATION_EXPORT
Definition Export:40

osg logo
Generated at Wed Jul 23 2025 00:00:00 for the OpenSceneGraph by doxygen 1.14.0.