Re: Getting CALayer's frame with 3D transform identity?
Re: Getting CALayer's frame with 3D transform identity?
- Subject: Re: Getting CALayer's frame with 3D transform identity?
- From: John Harper <email@hidden>
- Date: Sat, 02 Feb 2008 15:23:44 -0800
On Feb 2, 2008, at 3:03 PM, Colin Cornaby wrote:
I was orthogonally transforming layers and I had some code that
relied on getting the area that the layer was being drawn in in the
composition. I was using the frame property, and it seemed to
properly return the area that the transformed layer was drawing into.
I am now 3D transforms. The frame property still changes as I
transform the layer, but instead of returning the area that the
layer will occupy on the screen as a result of it's 3D transform, it
still seems to return the area occupied as if I was doing an
orthogonal transform on my layer.
The -frame and -setFrame: methods include the effect of the layer's
transform but not its parent's sublayerTransform, maybe that describes
what you're seeing?
The only funny thing I am doing is that I am taking the rect and
translating it to a superlayers context a few levels up the render
tree (using convertRect: fromLayer:), and the superlayer is still
set to orthogonally transform. Would this cause the rect to be
altered in the sort of way I am
seeing?
the -convertRect: methods do include the effect of the
sublayerTransform property.
John
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden