Changed osgAnimation::StackedTransform::update(t). It can now be used for custom usage

This commit is contained in:
Cedric Pinson
2012-03-11 22:05:29 +00:00
parent d546f95412
commit df82754203
13 changed files with 15 additions and 15 deletions

View File

@@ -39,7 +39,7 @@ namespace osgAnimation
const osg::Matrix& getMatrix() const { return _matrix;}
void setMatrix(const osg::Matrix& matrix) { _matrix = matrix;}
bool isIdentity() const { return _matrix.isIdentity(); }
void update();
void update(float t = 0.0);
virtual Target* getOrCreateTarget();
virtual Target* getTarget() {return _target.get();}
virtual const Target* getTarget() const {return _target.get();}

View File

@@ -36,7 +36,7 @@ namespace osgAnimation
void applyToMatrix(osg::Matrix& matrix) const;
osg::Matrix getAsMatrix() const;
bool isIdentity() const;
void update();
void update(float t = 0.0);
const osg::Quat& getQuaternion() const;
void setQuaternion(const osg::Quat&);

View File

@@ -36,7 +36,7 @@ namespace osgAnimation
void applyToMatrix(osg::Matrix& matrix) const;
osg::Matrix getAsMatrix() const;
bool isIdentity() const { return (_angle == 0); }
void update();
void update(float t = 0.0);
const osg::Vec3& getAxis() const;
double getAngle() const;

View File

@@ -36,7 +36,7 @@ namespace osgAnimation
void applyToMatrix(osg::Matrix& matrix) const;
osg::Matrix getAsMatrix() const;
bool isIdentity() const;
void update();
void update(float t = 0.0);
const osg::Vec3& getScale() const;
void setScale(const osg::Vec3& scale);

View File

@@ -28,7 +28,7 @@ namespace osgAnimation
StackedTransform();
StackedTransform(const StackedTransform&, const osg::CopyOp& copyop = osg::CopyOp::SHALLOW_COPY);
void update();
void update(float t = 0.0);
const osg::Matrix& getMatrix() const;
protected:

View File

@@ -31,7 +31,7 @@ namespace osgAnimation
virtual void applyToMatrix(osg::Matrix& matrix) const = 0;
virtual osg::Matrix getAsMatrix() const = 0;
virtual bool isIdentity() const = 0;
virtual void update() = 0;
virtual void update(float t) = 0;
virtual Target* getOrCreateTarget() {return 0;}
virtual Target* getTarget() {return 0;}
virtual const Target* getTarget() const {return 0;}

View File

@@ -36,7 +36,7 @@ namespace osgAnimation
void applyToMatrix(osg::Matrix& matrix) const;
osg::Matrix getAsMatrix() const;
bool isIdentity() const;
void update();
void update(float t = 0.0);
const osg::Vec3& getTranslate() const;
void setTranslate(const osg::Vec3& );