each of those is a stand-alone app demoing some feature or another.
···
On Mon, Aug 11, 2014 at 8:52 AM, Chris Barker chris.barker@noaa.gov wrote:
–
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
Chris.Barker@noaa.gov
On Sun, Aug 10, 2014 at 6:40 PM, kruvva kruvva@gmail.com wrote:
I switched from OGL to FloatCanvas and it was real good decision. I was able to do scaling and coordinate transformation pretty easily. Thanks for the direction.
I have a problem with AddArrowLines for vertical lines. The arrows are upside down. Here is the code I used:
self.canvas.AddArrowLine((edge.points[nPoints-2], edge.points[nPoints-1]), LineWidth = 3, ArrowHeadSize = 10, ArrowHeadAngle = 45)
BTW, I use the YDownProjection in my Canvas, as I need my top left corner to be (0, 0).
That’s a key “BTW” – while I attempted to make objects projection-clean, there are some bugs. Flipping up and down is a bit tricky to get right.
Take a look at the ArrowLine code – it’ll need some fixing. Not sure when I’ll get a chance to do that myself, but if you figure it out, patches are readily accepted.
You may also want to do the detailed discussion on the floatcanvas list:
http://mail.paulmcnett.com/cgi-bin/mailman/listinfo/floatcanvas
It’s very low traffic, but I read it, and at last a few other fairly sophisticated users sometimes chime in with good advice.
-Chris
Could some one help.
On Friday, August 8, 2014 3:44:02 PM UTC-7, kruvva wrote:
Thank you, Chris. That’s what I have been reading on the posts. I’ll look for an example that is using FloatCanvas with scaling. If you know some example please forward me.
Basically my drawing has couple of rectangles with labels and are connected by broken line segments with arrows at one end. The real world dimensions of the drawing may change from case to case. That is why I need to scale the drawing to fit in to the canvas.
On Friday, August 8, 2014 1:56:36 PM UTC-7, Chris Barker wrote:
On Fri, Aug 8, 2014 at 1:53 PM, Nathan McCorkle nmz...@gmail.com wrote:
You might be able to take a screenshot, scale the image, draw it onscreen, then tranlate mouse events to the ogl area coordinates for dragging.
you are really using the wrong tool if you need to do that!
-CHB
–
You received this message because you are subscribed to the Google Groups “wxPython-users” group.
To unsubscribe from this group and stop receiving emails from it, send an email to wxpython-user...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
–
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
Chris....@noaa.gov
–
You received this message because you are subscribed to the Google Groups “wxPython-users” group.
To unsubscribe from this group and stop receiving emails from it, send an email to wxpython-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
–
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
Chris.Barker@noaa.gov