OSG  3.4.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
StatsVisitor.h
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>
19 #include <osgAnimation/ActionVisitor>
20 #include <osg/Stats>
21 #include <vector>
22 
23 namespace 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);
47  void apply(ActionStripAnimation& action);
48 
49  };
50 
51 }
52 
53 #endif
std::vector< std::string > _channels
Definition: StatsVisitor.h:30
#define OSGANIMATION_EXPORT
Definition: Export.h:40
const std::vector< std::string > & getChannels() const
Definition: StatsVisitor.h:38
osg::ref_ptr< osg::Stats > _stats
Definition: StatsVisitor.h:29
blend in from 0 to weight in duration
Definition: ActionBlendIn.h:26
#define META_ActionVisitor(library, name)
Definition: ActionVisitor.h:33
blend out from weight to 0 in duration
T * get() const
Definition: ref_ptr.h:92
void setFrame(unsigned int frame)
Definition: StatsVisitor.h:41
void setStats(osg::Stats *stats)
Definition: StatsVisitor.h:40