openscenegraph
include
osgAnimation
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
23
namespace
osgAnimation
24
{
25
class
Target;
26
class
OSGANIMATION_EXPORT
StackedTransformElement
:
public
osg::Object
27
{
28
public
:
29
StackedTransformElement
() {}
30
StackedTransformElement
(
const
StackedTransformElement
& rhs,
const
osg::CopyOp
& c) :
osg
::Object(rhs, c) {}
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
Matrix
Object
osgAnimation::StackedTransformElement
Definition
StackedTransformElement:27
osgAnimation::StackedTransformElement::getTarget
virtual const Target * getTarget() const
Definition
StackedTransformElement:37
osgAnimation::StackedTransformElement::getAsMatrix
virtual osg::Matrix getAsMatrix() const =0
osgAnimation::StackedTransformElement::applyToMatrix
virtual void applyToMatrix(osg::Matrix &matrix) const =0
osgAnimation::StackedTransformElement::StackedTransformElement
StackedTransformElement()
Definition
StackedTransformElement:29
osgAnimation::StackedTransformElement::StackedTransformElement
StackedTransformElement(const StackedTransformElement &rhs, const osg::CopyOp &c)
Definition
StackedTransformElement:30
osgAnimation::StackedTransformElement::getOrCreateTarget
virtual Target * getOrCreateTarget()
Definition
StackedTransformElement:35
osgAnimation::StackedTransformElement::isIdentity
virtual bool isIdentity() const =0
osgAnimation::StackedTransformElement::update
virtual void update(float t)=0
osgAnimation::StackedTransformElement::getTarget
virtual Target * getTarget()
Definition
StackedTransformElement:36
osgAnimation::Target
Definition
Target:33
osg::CopyOp
Definition
CopyOp:41
osg::Matrixd
Definition
Matrixd:27
osg::Object
Definition
Object:61
osgAnimation
Definition
Action:34
osg
author: Julien Valentin 2017 (mp3butcher@hotmail.com)
Definition
AlphaFunc:19
Export
OSGANIMATION_EXPORT
#define OSGANIMATION_EXPORT
Definition
osgAnimation/Export:40
Generated by
1.9.8