Click or drag to resize
Ab4d.SharpEngine logo

TransformationAnimation Class

TransformationAnimation is used to animate a SceneNode by setting and animating SceneNode's transformation. This animation can translate (move), scale and rotate the SceneNode. Rotation can be done by using Euler angles or Quaternions (only one type of rotation can be used so you cannot mix Euler and Quaternion keyframes). It is also possible to set a custom PivotPoint that specifies the center of rotation and the origin of scale. When PivotPoint is not set, the SceneNode's center position is used as a pivot point.
Inheritance Hierarchy

Namespace: Ab4d.SharpEngine.Animation
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 4.0.9584+ba1aaa26d4181dd3fa8ed7b6398391d1affa36c8
Syntax
C#
public class TransformationAnimation : SceneNodeTargetsAnimation

The TransformationAnimation type exposes the following members.

Properties
 NameDescription
Public propertyConvertOtherTransformationsToStandardTransform When this property is true (by default) and when IsUsingExistingStandardTransform is true, then existing transformation (TranslateTransform, ScaleTransform and AxisAngleRotateTransform) are converted into StandardTransform.
Public propertyPivotPoint When PivotPoint is set, then rotations and scale are done by using that pivot point. When PivotPoint is not null (by default), then rotation and scale are done by using the object's center position as a pivot point.
Public propertyUseQuaternionsRotation Gets ors sets a Boolean value that indicates whether the rotation values are specified in Quaternions (true) or as Euler angles (false, by default). False also indicates that no rotation is done using this animation. When using quaternions, then the StandardQuaternionTransform is used to animate the rotation; otherwise the StandardTransform is used.
Top
Methods
 NameDescription
Public methodAddKeyframe 
Public methodAddRotateKeyframe(Single, Quaternion, FuncSingle, Single) 
Public methodAddRotateKeyframe(Single, Vector3, FuncSingle, Single) 
Public methodAddScaleKeyframe 
Protected methodAddTargetsInfoText
(Overrides SceneNodeTargetsAnimationAddTargetsInfoText(StringBuilder))
Public methodAddTranslateKeyframe 
Public methodGetAnimatedPropertyName
(Overrides AnimationTGetAnimatedPropertyName(Int32))
Protected methodGetStandardQuaternionTransform GetStandardQuaternionTransform method creates or gets the StandardQuaternionTransform from the sceneNode. The properties of the returned StandardQuaternionTransform will be animated by this animation. User can override this method to provide custom login on how to convert existing transformation to StandardQuaternionTransform or how to create a new StandardQuaternionTransform.
Protected methodGetStandardTransform GetStandardTransform method creates or gets the StandardTransform from the sceneNode. The properties of the returned StandardTransform will be animated by this animation. User can override this method to provide custom login on how to convert existing transformation to StandardTransform or how to create a new StandardTransform.
Protected methodOnInitialize
(Overrides AnimationTOnInitialize)
Public methodSet(TransformationAnimatedProperties, FuncSceneNode, Int32, Int32, Single, NullableSingle, NullableSingle, FuncSingle, Single) 
Public methodSet(TransformationAnimatedProperties, Single, NullableSingle, NullableSingle, FuncSingle, Single) 
Public methodSetEasingFunctionToAllKeyframes(FuncSingle, Single)
(Overrides AnimationTSetEasingFunctionToAllKeyframes(FuncSingle, Single))
Public methodSetEasingFunctionToAllKeyframes(TransformationAnimatedProperties, FuncSingle, Single) Set the specified easing function to all key-frames belonging to the specified animated property type.
Public methodSetInitialValue(TransformationAnimatedProperties, FuncSceneNode, Int32, Int32, Single) 
Public methodSetInitialValue(TransformationAnimatedProperties, Single) 
Public methodSetRotate(Quaternion, NullableSingle, NullableSingle, FuncSingle, Single) 
Public methodSetRotate(Vector3, NullableSingle, NullableSingle, FuncSingle, Single) 
Public methodSetScale 
Public methodSetTranslate 
Top
See Also