On Sun, Dec 21, 2008 at 9:53 AM, Nitro <[email protected]> wrote:

> Am 21.12.2008, 10:52 Uhr, schrieb Marcos Duarte <[email protected]>:
>
> > The problem is that I don't have any clue on how to implement the more
> > complex toolbar functions, like ZoomIn and Move, which require
> > constant interaction with the canvas.
> > I couldn't figure out how to do that even after looking at NavCanvas
> > and GuiMode functions.
> > I tried simple things like just calling
> > floatcanvas.guiMode.GUIModeZoomIn() and binding the toolbar event with
> > this method but it doesn't work. I was thinking that I could directly
> > call the GuiMode function in a simple way, I also tried to modify the
> > NavCanvas function to work with MDI windows but there are some stuff
> > there I don't understand, but nothing worked
>
> The answer to this question depends on what exactly you are trying to
> achieve. I suppose what you want to do is to move canvas2 when you move
> canvas1. E.g. canvas1 shows the XY plane while canvas2 shows the XZ plane
> of your 3d space. In this case you will have to write your own kind of gui
> mode, because the default ones have not been designed for that.
> If it's really the XY, XZ plane thing you want to do, I can code a little
> example and add it to the demo to help you getting started. If you want to
> do something else (e.g. both canvases are the XY plane and you just want
> to link their movements), please explain this in detail, then I can
> probably give you a starting point, too.
>
>
No, I wasn't thinking in making the different canvas somewhat dependent to
lock their views or movements.
I will be treating the different canvas completely independent. They can
represent different views or not. Even for the 3D scenario, I just want to
select few points in canvas1 and in the other canvas, calibrate the views
(find the transformation), and get the x,y,z coordinates of other points. In
fact, most of the time I will be doing only 2D calculations in different
views where the 3D coordinates are not even needed.
So, if you could demonstrate how to make a FC2 app with one  guimode and
more than one canvas, this would be great.

Thanks for the help, the corrections you gave worked fine.

Marcos
_______________________________________________
FloatCanvas mailing list
[email protected]
http://mail.mithis.com/cgi-bin/mailman/listinfo/floatcanvas

Reply via email to