GiD - The personal pre and post processor
2D bitmap
The most simple case is to draw a 2D bitmap
Can see an example in our problemtype.
<gid>/problemtypes/Examples/customlib/condition_symbols.gid
The condition named point_weight
declares inside the <condition> xml node a <symbol> Tcl proc, to draw the condition as a simple raster image file.
<condition n="point_weight" pn="Point Weight" ov="point" ovm="node" icon="darkorange-weight-18" groups_icon="yelowish-group" help="Concentrated mass">
<value n="Weight" pn="Weight" v="0.0" unit_magnitude="M" units="kg" help="Specify the weight that you want to apply"/>
<symbol proc="gid_groups_conds::draw_symbol_image weight-18.png" orientation="global"/>
</condition>
The gid_groups_conds::draw_symbol_image
predefined library proc require the image file name (common image formats are allowed)
the orientation=”global” doesn’t matter in this case, because the 2D image is always drawn on the 3D space on to the screen plane perpendicular to the user view.
In this simple case the picture doesn’t use any value of the condition, all conditions of this name will be represented with the same bitmap.
COPYRIGHT © 2022 · GID · CIMNE