Re: logic problem
- From: Billy Patton <bpatton dal asp ti com>
- To: Dov Grobgeld <dov imagic weizmann ac il>
- Cc: gtk-list gnome org
- Subject: Re: logic problem
- Date: Tue, 1 Apr 2003 05:42:26 -0600 (CST)
Only problem is, no gnome on a solaris 7 box. I have to compile gtk and
install in my directory.
On Mon, 31 Mar 2003, Dov Grobgeld wrote:
> Check out the libgnomecanvas. It has a concept of a world coordinate
> system that is mapped to the widget, just like in your problem. On
> the canvas you can place various canvas items, among them rectangles,
> which is what you need for your problem. You can then change the zoom
> factor in callbacks.
>
> Regards,
> Dov
>
> On Mon, Mar 31, 2003 at 01:43:37PM -0600, Billy Patton wrote:
> > I only get to work on gtk for a few hours a week.
> > Here's my problem.
> >
> > My test data consists of rectangles.
> > I need to scale this data to make it larger and smaller
> > and to pan around.
> >
> > So, to the data I apply a scale. starting scale is to make
> > all data fit within the screen.
> > I apply a shiftX and a shiftY, for panning.
> >
> > To each coord I apply a scale,shiftX/Y
> >
> > The Y value has to be inverted to the 0,0 is in left lower corner.
> >
> >
> > I'm using gtk2.0.6 on a solaris 7 box, with gcc 2.8.1
> >
> > I have the following functions to assist me with
> > gc2wc -> graphics to world coords
> > wc2gc -> world to graphics coords
> >
> >
> > Any assistance with the logic would be appreciated :)
> >
> > Any source examples would be helpful.
> > I'm not a student, I'm a perl person by trade :)
> >
> > _______________________________________________
> > gtk-list mailing list
> > gtk-list gnome org
> > http://mail.gnome.org/mailman/listinfo/gtk-list
> _______________________________________________
> gtk-list mailing list
> gtk-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtk-list
>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]