Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CG migration from QD




On Jan 31, 2005, at 3:38 PM, Edwards, Waverly wrote:


I'm currently looking at migrating from Quickdraw to CoreGraphics.
I've been reading Quartz 2D References today and I'm not too clear on current limitations of CG.


My app will be drawing thousands of polygons and lines, circles, squares, etc (but mostly polygons) to represent a map (roads, bodies of water, interstates, cities, states etc)

I am not finding any API's for polygon drawing
A way to test what polygon my mouse is currently over.
A way to test if an object is within a particular region ( a free hand lasso or rectangle)


CG Paths don't really seem to be as effective as regions as I'm understanding them.

As it stands now, it does not look like a good idea to even try using CG as all the functionality associated with QD does not exist within CG.

Am I overlooking something or should I wait to see what will be added to CG in future OS releases?

One of the big differences in Quartz is there is no XOR rasterop type functionality. So if you currently do any interactive graphics by using the complement mode that XOR provides you will have to rewrite that functionality in Quartz. In Quartz you can use overlay windows to create a similar functionality. In the end I believe using the overlay window of Quartz will provide a nicer looking UI experience than XOR but the move may be painful.


Because of the above issue we have yet to make the jump from Quickdraw to Quartz, though we do support Quartz for printing. I'm not sure that Scott or Bryan mentioned that Quickdraw is deprecated meaning Apple is no longer doing anything to the Quickdraw code. So the question is not IF you will have to move to Quartz as much as WHEN. For us it's now figuring out when I've got a month or two to make the transition.

As Bryan and Scott already mentioned most of what you are looking for does exist in CG or has a way to implement via code.

Mike

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden

This email sent to email@hidden
References: 
 >CG migration from QD (From: "Edwards, Waverly" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.