OpenSceneGraph 3.6.5
LinkVisitor
Go to the documentation of this file.
1/* -*-c++-*-
2 * Copyright (C) 2008 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_NODE_VISITOR_H
16#define OSGANIMATION_NODE_VISITOR_H
17
18#include <osg/NodeVisitor>
19#include <osg/StateSet>
21
22namespace osgAnimation
23{
24 class AnimationUpdateCallbackBase;
25
29 {
30 public:
32
34
35 void apply(osg::Node& node);
36 void apply(osg::Geode& node);
37
39 void reset();
40 unsigned int getNbLinkedTarget() const { return _nbLinkedTarget; }
41
42 protected:
43
46
47 // animation list to link
49
50 // number of success link done
51 unsigned int _nbLinkedTarget;
52 };
53
54}
55
56#endif
The osgAnimation library provides general purpose utility classes for animation.
Definition Action:34
std::vector< osg::ref_ptr< osgAnimation::Animation > > AnimationList
Definition Animation:100
A Geode is a "geometry node", that is, a leaf node on the scene graph that can have "renderable thing...
Definition Geode:29
Base class for all internal nodes in the scene graph.
Definition Node:72
Visitor for type safe operations on osg::Nodes.
Definition NodeVisitor:82
Stores a set of modes and attributes which represent a set of OpenGL state.
Definition StateSet:46
Definition AnimationUpdateCallback:27
META_NodeVisitor(osgAnimation, LinkVisitor)
void reset()
Method to call to reset visitor.
void handle_stateset(osg::StateSet *stateset)
void apply(osg::Geode &node)
AnimationList _animations
Definition LinkVisitor:48
unsigned int _nbLinkedTarget
Definition LinkVisitor:51
AnimationList & getAnimationList()
unsigned int getNbLinkedTarget() const
Definition LinkVisitor:40
void link(osgAnimation::AnimationUpdateCallbackBase *cb)
void apply(osg::Node &node)
#define OSGANIMATION_EXPORT
Definition Export:40

osg logo
Generated at Sun Jul 20 2025 00:00:00 for the OpenSceneGraph by doxygen 1.14.0.