root/OpenSceneGraph/trunk/include/osgAnimation/RigTransform
@
10693
| Revision 10693, 1.1 kB (checked in by cedricpinson, 4 years ago) |
|---|
| Rev | Line | |
|---|---|---|
| [10693] | 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 | #ifndef OSGANIMATION_RIGTRANSFORM_H | |
| 16 | #define OSGANIMATION_RIGTRANSFORM_H | |
| 17 | ||
| 18 | #include <osg/Referenced> | |
| 19 | ||
| 20 | namespace osgAnimation | |
| 21 | { | |
| 22 | ||
| 23 | class RigGeometry; | |
| 24 | ||
| 25 | class RigTransform : public osg::Referenced | |
| 26 | { | |
| 27 | public: | |
| 28 | RigTransform() : _needInit(true) {} | |
| 29 | virtual ~RigTransform() {} | |
| 30 | bool needInit() const { return _needInit; } | |
| 31 | virtual bool init(RigGeometry&) = 0; | |
| 32 | virtual void update(RigGeometry&) = 0; | |
| 33 | ||
| 34 | protected: | |
| 35 | bool _needInit; | |
| 36 | }; | |
| 37 | ||
| 38 | } | |
| 39 | ||
| 40 | #endif |
Note: See TracBrowser
for help on using the browser.
