openscenegraph
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;
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