Package io.opentimeline.opentimelineio
Class Stack
java.lang.Object
- All Implemented Interfaces:
java.lang.AutoCloseable
public class Stack extends Composition
A stack represents a series of composables. Composables that are arranged such
that their start times are at the same point.
Most commonly, this would be a series of Track objects that then
contain clips. The 0 time of those tracks would coincide with the 0-time of
the stack.
Stacks are in compositing order, with later children obscuring earlier
children. In other words, from bottom to top. If a stack has three children,
[A, B, C], C is above B which is above A.
A stack is the length of its longest child. If a child ends before the other
children, then an earlier index child would be visible before it.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classStack.StackBuilderNested classes/interfaces inherited from class io.opentimeline.opentimelineio.Composition
Composition.CompositionBuilderNested classes/interfaces inherited from class io.opentimeline.opentimelineio.Composable
Composable.ComposableBuilderNested classes/interfaces inherited from class io.opentimeline.opentimelineio.SerializableObjectWithMetadata
SerializableObjectWithMetadata.SerializableObjectWithMetadataBuilder -
Field Summary
-
Constructor Summary
Constructors Modifier Constructor Description protectedStack()Stack(Stack.StackBuilder builder)Stack(java.lang.String name, TimeRange sourceRange, AnyDictionary metadata, java.util.List<Effect> effects, java.util.List<Marker> markers) -
Method Summary
Modifier and Type Method Description java.util.stream.Stream<Clip>eachClip(TimeRange searchRange, ErrorStatus errorStatus)java.util.stream.Stream<Clip>eachClip(ErrorStatus errorStatus)TimeRangegetAvailableRange(ErrorStatus errorStatus)Implemented by child classes, available range of media.java.util.HashMap<Composable,TimeRange>getRangeOfAllChildren(ErrorStatus errorStatus)Return a HashMap mapping children to their range in this object.TimeRangerangeOfChildAtIndex(int index, ErrorStatus errorStatus)TimeRangetrimmedRangeOfChildAtIndex(int index, ErrorStatus errorStatus)Methods inherited from class io.opentimeline.opentimelineio.Composition
appendChild, clearChildren, eachChild, eachChild, eachChild, getChildAtTime, getChildAtTime, getChildren, getCompositionKind, getHandlesOfChild, getRangeOfChild, getRangeOfChildAtIndex, getTrimmedRangeOfChild, getTrimmedRangeOfChildAtIndex, hasChild, insertChild, isParentOf, removeChild, setChild, setChildren, toString, trimChildRangeMethods inherited from class io.opentimeline.opentimelineio.Item
getDuration, getEffects, getMarkers, getRangeInParent, getSourceRange, getTransformedTime, getTransformedTimeRange, getTrimmedRange, getTrimmedRangeInParent, getVisibleRange, isOverlapping, isVisible, setSourceRangeMethods inherited from class io.opentimeline.opentimelineio.SerializableObjectWithMetadata
getMetadata, getName, setMetadata, setNameMethods inherited from class io.opentimeline.opentimelineio.SerializableObject
clone, currentRefCount, dynamicFields, equals, fromJSONFile, fromJSONString, isEquivalentTo, isUnknownSchema, schemaName, schemaVersion, toJSONFile, toJSONFile, toJSONString, toJSONString
-
Constructor Details
-
Method Details
-
rangeOfChildAtIndex
-
trimmedRangeOfChildAtIndex
-
getAvailableRange
Description copied from class:ItemImplemented by child classes, available range of media.- Overrides:
getAvailableRangein classItem- Parameters:
errorStatus- errorStatus to report in case this is not implemented in a sub-class.- Returns:
- available range of media
-
getRangeOfAllChildren
Description copied from class:CompositionReturn a HashMap mapping children to their range in this object.- Overrides:
getRangeOfAllChildrenin classComposition- Parameters:
errorStatus- errorStatus to report any error while fetching ranges- Returns:
- a HashMap mapping children to their range in this object
-
eachClip
-
eachClip
-