OpenSceneGraph 3.6.5
ActionCallback
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_ACTION_CALLBACK_H
16#define OSGANIMATION_ACTION_CALLBACK_H
17
18#include <osgAnimation/Export>
19#include <osgAnimation/Action>
20
21namespace osgAnimation
22{
23
26 {
27 public:
28 RunAction(Action* a, int priority = 0) : _action(a), _priority(priority) {}
29 virtual void operator()(Action* action, ActionVisitor* visitor);
30
31 Action* getAction() const { return _action.get(); }
32 int getPriority() const { return _priority; }
33 protected:
36
37 };
38
39}
40
41#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 Action:37
Definition Action:41
Action * getAction() const
Definition ActionCallback:31
osg::ref_ptr< Action > _action
Definition ActionCallback:34
int _priority
Definition ActionCallback:35
RunAction(Action *a, int priority=0)
Definition ActionCallback:28
virtual void operator()(Action *action, ActionVisitor *visitor)
int getPriority() const
Definition ActionCallback:32
Definition ActionVisitor:39
#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.