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;
27 {
28 public:
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
Definition StackedTransformElement:27
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
Definition CopyOp:41
Definition Matrixd:27
Definition Object:61
Definition Action:34
author: Julien Valentin 2017 (mp3butcher@hotmail.com)
Definition AlphaFunc:19
#define OSGANIMATION_EXPORT
Definition osgAnimation/Export:40