Scalable, transformable canvas view? (newbie)
Scalable, transformable canvas view? (newbie)
- Subject: Scalable, transformable canvas view? (newbie)
- From: hjv15 <email@hidden>
- Date: Sat, 23 Oct 2004 23:16:23 +1300
Hi everyone,
I am quite new to Cocoa and am writing an application that displays
simple waypoints and paths onto a map along with text and so on.
I am starting to get my head around Obj-C and Cocoa, and experimented
sucessfully with drawing the data I need to an NSView, using only Cocoa;
NSBezierPath, NSImage, NSString... (I want to avoid Quartz etc. so that
my code might be portable to GnuStep in the future).
I would like something like the Qt Canvas module, that lets you draw to
an offscreen canvas (at a certain scale) and then render a portion of
that at a certain scale/rotation/translation onto the screen. Is there
an efficient way to apply NSAffineTransform or something to a whole view
or graphic context or will a new class be required? Would you draw to an
offscreen NSView and then copy that to the on-screen one, transforming
as appropriate, set the new origin and bounds, then draw it? (That
sounds inefficient). There is potentially quite a lot of data to draw
(the offscreen view might be 100,000 by 100,000 pts) and I would like to
avoid any kind of 'manual' caching, or paging, rather let the system
deal with that...
Is there any way to do this built into Cocoa? How about a (free) third
party package or some sample code? If not what architecture/structure
would you recommend for it?
Thanks,
Hugo Vincent,
Student, University of Canterbury.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden