Difference between revisions of "DOMCurveKeyframe"

From Virtual World Web Wiki
Jump to: navigation, search
(Documentation for the DOMCurveKeyframe class)
(Documentation for the DOMCurveKeyframe class)
Line 34: Line 34:
 
::
 
::
 
::Called on DOMObject derived types just before they are added to the DOM to ensure their parent is appropriate.
 
::Called on DOMObject derived types just before they are added to the DOM to ensure their parent is appropriate.
 +
 +
:{{CSharp|int SortCompare(DOMObject other)}}
 +
::
 +
::Compares this node with another node of the same type for display sorting purposes
  
 
__NOTOC____NOEDITSECTION__
 
__NOTOC____NOEDITSECTION__

Revision as of 12:38, 6 September 2017

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: DOM Curves

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 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