Difference between revisions of "DOMCurveKeyframe"
From Virtual World Web Wiki
(Documentation for the DOMCurveKeyframe class) |
(Documentation for the DOMCurveKeyframe class) |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
Represents a point in time along a [[DOMCurve]] at which property values can be specified. The values of a [[DOMCurvePlayer]]'s properties which are being projected onto other nodes in the DOM will blend between the values at this node and the "next" keyframe's values. "next" depends on whether the player is looping, running in reverse, etc. | Represents a point in time along a [[DOMCurve]] at which property values can be specified. The values of a [[DOMCurvePlayer]]'s properties which are being projected onto other nodes in the DOM will blend between the values at this node and the "next" keyframe's values. "next" depends on whether the player is looping, running in reverse, etc. | ||
− | '''See also:''' [[ | + | '''See also:''' [[Curves]] |
*'''Inherits class: [[DOMObject]]''' | *'''Inherits class: [[DOMObject]]''' | ||
Line 31: | Line 31: | ||
===Methods=== | ===Methods=== | ||
+ | :{{CSharp|bool CheckChild(DOMObject value)}} | ||
+ | :: | ||
+ | ::Called on DOMObject derived types just before a child is added to their Children collection to ensure they are acceptable | ||
+ | |||
:{{CSharp|bool CheckParent(DOMObject parent)}} | :{{CSharp|bool CheckParent(DOMObject parent)}} | ||
:: | :: |
Latest revision as of 14:13, 19 February 2019
Represents a point in time along a DOMCurve at which property values can be specified. The values of a DOMCurvePlayer's properties which are being projected onto other nodes in the DOM will blend between the values at this node and the "next" keyframe's values. "next" depends on whether the player is looping, running in reverse, etc.
See also: Curves
- Inherits class: DOMObject
Remarks [edit]
Properties
- float Time {get; set;}
- The time offset of this keyframe from the beginning of the DOMCurve animation, in seconds.
Events
- PlayerCrossed(EventHandler<PlayerCrossedEventArgs>)
- Fired when a DOMCurvePlayer reaches this keyframe
Constructors
- DOMCurveKeyframe()
- Constructs a new DOMCurveKeyframe with default settings
- DOMCurveKeyframe(DOMObject[] children)
- Constructs a new DOMCurveKeyframe, adding children at the same time
- DOMCurveKeyframe(string title, DOMObject[] children)
- Constructs a new DOMCurveKeyframe, setting a title and adding children at the same time
Methods
- bool CheckChild(DOMObject value)
- Called on DOMObject derived types just before a child is added to their Children collection to ensure they are acceptable
- bool CheckParent(DOMObject parent)
- Called on DOMObject derived types just before they are added to the DOM to ensure their parent is appropriate.
- int SortCompare(DOMObject other)
- Compares this node with another node of the same type for display sorting purposes