• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
NSBezierPath and affine transforms.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSBezierPath and affine transforms.


  • Subject: NSBezierPath and affine transforms.
  • From: Tobias Sargeant <email@hidden>
  • Date: Tue, 09 Sep 2003 16:03:54 +1000

Hi,

Is there any way to defer output from an NSBezierPath? I'm doing some graph
layout, which involves various filled and unfilled paths. Ideally I would
like to be able to set up an affine transform to draw the graph at the right
scale, and then just have the layout object draw itself with the path
object without needing to know about the transform. If I could delay the
result of a fill/stroke, then I could apply the transformation once after
the layout object had drawn itself, and then everything would be happy.

Unfortunately, transformUsingAffineTransform: doesn't provide me with
that, because it needs to be called after the path is created and before
the path is stroked or filled. Because the graph needs several strokes/fills
to draw, this means that the layout object needs to know about the
transform.

Because I only want the graph drawn with this transformation, and NSView
doesn't seem to provide any means of pushing/popping transformation matrices,
I can't see any way to set up the transform on the view.

Am I missing something, or is there some idiom that will allow me to maintain
this kind of separation, or am I just going to have to accept the current
state of affairs?

Thanks,

Toby.

--
url: http://permuted.net/ id: D9E15866 key: http://permuted.net/tjs.gpgkey.asc
fingerprint: EDD8 E1EC 440A D2B6 89BF AFA4 FBFC 19B6 D9E1 5866
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
  • Follow-Ups:
    • Re: NSBezierPath and affine transforms.
      • From: "Alastair J.Houghton" <email@hidden>
  • Prev by Date: background image for NSTextView
  • Next by Date: Re: MiscKit
  • Previous by thread: background image for NSTextView
  • Next by thread: Re: NSBezierPath and affine transforms.
  • Index(es):
    • Date
    • Thread