OpenSceneGraph 3.6.5
StackedTransformElement
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
16#ifndef OSGANIMATION_STACKED_TRANSFORM_ELEMENT
17#define OSGANIMATION_STACKED_TRANSFORM_ELEMENT 1
18
19#include <osgAnimation/Export>
20#include <osg/Object>
21#include <osg/Matrix>
22
23namespace osgAnimation
24{
25 class Target;
27 {
28 public:
31 virtual void applyToMatrix(osg::Matrix& matrix) const = 0;
32 virtual osg::Matrix getAsMatrix() const = 0;
33 virtual bool isIdentity() const = 0;
34 virtual void update(float t) = 0;
35 virtual Target* getOrCreateTarget() {return 0;}
36 virtual Target* getTarget() {return 0;}
37 virtual const Target* getTarget() const {return 0;}
38 };
39
40}
41
42#endif
The core osg library provides the basic scene graph classes such as Nodes, State and Drawables,...
Definition AlphaFunc:19
Matrixd Matrix
Definition Matrix:27
The osgAnimation library provides general purpose utility classes for animation.
Definition Action:34
Copy Op(erator) used to control whether shallow or deep copy is used during copy construction and clo...
Definition CopyOp:41
Base class/standard interface for objects which require IO support, cloning and reference counting.
Definition Object:61
Object()
Construct an object.
Definition Object:69
virtual const Target * getTarget() const
Definition StackedTransformElement:37
virtual osg::Matrix getAsMatrix() const =0
virtual void applyToMatrix(osg::Matrix &matrix) const =0
StackedTransformElement()
Definition StackedTransformElement:29
StackedTransformElement(const StackedTransformElement &rhs, const osg::CopyOp &c)
Definition StackedTransformElement:30
virtual Target * getOrCreateTarget()
Definition StackedTransformElement:35
virtual bool isIdentity() const =0
virtual void update(float t)=0
virtual Target * getTarget()
Definition StackedTransformElement:36
Definition Target:33
#define OSGANIMATION_EXPORT
Definition Export:40

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