kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #04398
Graphics Abstraction Layer (was Re: wxDC & wxGraphicsContext Test)
-
To:
kicad-devel@xxxxxxxxxxxxxxx
-
From:
"stambaughw" <stambaughw@...>
-
Date:
Wed, 24 Feb 2010 17:47:57 -0000
-
In-reply-to:
<4B848C49.6080805@...>
-
User-agent:
eGroups-EW/0.82
--- In kicad-devel@xxxxxxxxxxxxxxx, Wayne Stambaugh <stambaughw@...> wrote:
>
>
>
> Torsten Hüter wrote:
> > Hi Marco,
> >
> >> --- In kicad-devel@xxxxxxxxxxxxxxx, "emmedics4" <marco.serantoni@>
<<< snipped >>>
> I recommend passing the base GAL class to the various Kicad drawing code
> instead of wxDC that is used in the current Kicad drawing code. One of
> the easiest places to start would be the schematic library item drawing
> code ( eeschema/classes_body_items.cpp[h] ). Then any class derived
> from the base GAL object could be passed the the Kicad drawing code
> which would make it easy to change GALs as required.
Torsten,
I apologize for the incorrect information but I just realized this solutionis not going to work. Replacing wxDC in the Kicad drawing code will breakprinting and postscript output. Your GAL object will have to be based on wxDC (similar to how wxGCDC is designed) or you will have to write separatedrawing code for screen output and use the current drawing code for printing and postscript output.
Wayne
<<< snipped >>>
Follow ups
References