CAReplicatorLayer Class Reference
| Inherits from | |
| Conforms to | |
| Framework | /System/Library/Frameworks/QuartzCore.framework |
| Availability | Available in OS X v10.6 and later. |
| Declared in | CAReplicatorLayer.h |
| Companion guides | |
Overview
The CAReplicatorLayer class creates a specified number of copies of its sublayers (the source layer), each copy potentially having geometric, temporal and color transformations applied to it.
Tasks
Setting Instance Display Properties
-
instanceCountproperty -
instanceDelayproperty -
instanceTransformproperty
Modifying Instance Layer Geometry
-
preservesDepthproperty
Accessing Instance Color Values
-
instanceColorproperty -
instanceRedOffsetproperty -
instanceGreenOffsetproperty -
instanceBlueOffsetproperty -
instanceAlphaOffsetproperty
Properties
instanceAlphaOffset
Defines the offset added to the alpha component of the color for each replicated instance. Animatable.
Discussion
The instanceAlphaOffset is added to the alpha color component of instance k-1 to produce the modulation color of instance k.
Default is 0.0.
Availability
- Available in OS X v10.6 and later.
Declared In
CAReplicatorLayer.hinstanceBlueOffset
Defines the offset added to the blue component of the color for each replicated instance. Animatable.
Discussion
The instanceBlueOffset is added to the blue color component of instance k-1 to produce the modulation color of instance k.
Default is 0.0.
Availability
- Available in OS X v10.6 and later.
Declared In
CAReplicatorLayer.hinstanceColor
Defines the color used to multiply the source object. Animatable.
Discussion
Defaults to opaque white.
Availability
- Available in OS X v10.6 and later.
Declared In
CAReplicatorLayer.hinstanceCount
The number of copies to create, including the source layers.
Discussion
Default value is 1, no extra copies are created.
Availability
- Available in OS X v10.6 and later.
Declared In
CAReplicatorLayer.hinstanceDelay
Specifies the delay, in seconds, between replicated copies. Animatable.
Discussion
Default is 0.0.
Availability
- Available in OS X v10.6 and later.
Declared In
CAReplicatorLayer.hinstanceGreenOffset
Defines the offset added to the green component of the color for each replicated instance. Animatable.
Discussion
The instanceGreenOffset is added to the green color component of instance k-1 to produce the modulation color of instance k.
Default is 0.0.
Availability
- Available in OS X v10.6 and later.
Declared In
CAReplicatorLayer.hinstanceRedOffset
Defines the offset added to the red component of the color for each replicated instance. Animatable.
Discussion
The instanceRedOffset is added to the red color component of instance k-1 to produce the modulation color of instance k.
Default is 0.0.
Availability
- Available in OS X v10.6 and later.
Declared In
CAReplicatorLayer.hinstanceTransform
The transform matrix applied to the previous instance to produce the current instance. Animatable.
Discussion
This transform matrix is applied to instance k-1 to produce instance k. The matrix is applied relative to the center of this layer.
Defaults to the identity matrix.
Availability
- Available in OS X v10.6 and later.
Declared In
CAReplicatorLayer.hpreservesDepth
Defines whether this layer flattens its sublayers into its plane.
Discussion
If YES, the layer acts similarly to the CATransformLayer and has the same restrictions.
Default is NO.
Availability
- Available in OS X v10.6 and later.
Declared In
CAReplicatorLayer.h© 2009 Apple Inc. All Rights Reserved. (Last updated: 2009-03-10)