Relative drawOrder of composite objects/graphics

Idea created by norbert.thoden on Aug 12, 2015
    New
    Score10
    • norbert.thoden
    Problem
    I create logical MapObjects using a couple of graphics.
    There is no possibility to specify a relative drawOrder.
    The only possibility is to specifiy a absolute drawOder (range: INT_MIN .. INT_MAX)

    Solitution:
    I use an internal drawOrder (which is the logicalDrawOrder *10)

    Example:
    Image two logical objects consisting of three graphics:
    logicalObj1 get a drawOrder of 125,

    logicalObj2 get a drawOrder of 126,

    logicalObj1.topGraphics -> -> (125*10 +2) ->technmDrawOrder -> 1252

    logicalObj1.midGraphics -> -> (125*10 +1) ->technmDrawOrder -> 1251
    logicalObj1.botGraphics -> -> (125*10 +0) ->technmDrawOrder -> 1250

    logicalObj2.topGraphics -> -> (126*10 +2) ->technmDrawOrder -> 1262
    logicalObj2.midGraphics -> -> (126*10 +1) ->technmDrawOrder -> 1261
    logicalObj2.botGraphics -> -> (126*10 +0) ->technmDrawOrder -> 1260

    Drawback:
    The logical drawOrder has to be limited to avoid any disorder.


    EsriRuntimeQt SDK (C++); Version 10.2.6