OGL documentation

RE: [wxPython-users] OGL documentation
I’ve found the best documentation for OGL to be the C++ example

contrib\samples\ogl\studio in the wxWindows sources. I learned

a lot by tracing through the program with a debugger.

Be forwarned that the wxPython wrapper for OGL is pretty limited because

several crucial virtual functions in the C++ version cannot be overrided

in python. The only solutions are to either A) modify the wxPython source,

or B) write your app in C++.

Specifically, in order to modify how attachments are drawn, one must override

the following virtual functions:

GetBranchingAttachmentInfo

    GetBranchingAttachmentPoint

Unfortunatly, these functions cannot be overrided in python without changing

the wxPython source code.

The following comment from basic.h explains what attachments are:

//

// |________|

// | <- root

// | <- neck

// shoulder1 ->---------<- shoulder2

// | | | | |<- stem

// <- branching attachment point N-1

Good luck!

Matthew

···

-----Original Message-----

From: Jeff Kotula [mailto:jkotula@vitalimages.com]

Sent: Thursday, January 09, 2003 9:20 AM

To: wxPython-users@lists.wxwindows.org

Subject: [wxPython-users] OGL documentation

I just started using OGL for an application and am really impressed with it.

Unfortunately the help file documentation seems pretty sparse.

Is there an “official” (and hopefully more complete) documentation set somewhere?

The particular thing I’m stuck on right now is understanding attachment points:

where they are by default, how to create or change them, and how to specify

them when attaching a line that connects two shapes.

Thanks!


Jeff Kotula Systems Architecture Manager

Vital Images jkotula@vitalimages.com

Although the module is mathematically correct, the solution

is physically impossible. Either that, or you have actually

created mass and I will apologize for underestimating

your power.

            --  Things to Tell Programmers,

                Dilbert Short List

To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwindows.org

For additional commands, e-mail: wxPython-users-help@lists.wxwindows.org