GiD - The personal pre and post processor

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Current »

The most simple case is to draw a 2D bitmap

Can see an example in our cmas2d_customlib example problemtype.

<gid>/problemtypes/examples/cmas2d_customlib.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"/>
    <!-- or a more customized example implementing our own procecedure <symbol proc='Cmas2d::DrawSymbolWeigth' 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.

image-20240125-200331.png

  • No labels