Mega Search
23.2 Million


Sign Up

Make a donation  
how to implement multiple graphic devices...  
News Group: embarcadero.public.delphi.oodesign

Hello,
  I am going to create:
     - a list of graphics objects, starting from primitives like point, line, polyline etc. (TGrObj);
     - a list of objects that provide different device contests, like googleearth, autocad, glsceneviewers, bitmap canvas etc. (TGrDevice)
 and I would like to decide to which graphic device draw objects, independetly, something like: TGrObj.drawto(TGrDevice) or TGrDevice.drawlist(list of TGrObj)....

I would appreciate hints to do it efficiently and enough "independently".
(I should use interfaces? if yes.. how?)

thanks in advance,
Filippo
______________________
Filippo Forlani
www.filippoforlani.org

Vote for best question.
Score: 0  # Vote:  0
Date Posted: 15-Oct-2014, at 2:33 AM EST
From: Filippo Forlani