Single-Element Functions : List of Functions : stm_r_xx_graphic

stm_r_xx_graphic
Returns the graphical information associated with the specified element.
Note:  

stm_r_graphic(id,&status)

Each environment module can have several occurrences with the same name in a chart. Call the query function stm_r_om_of_md to get the graphical information of its occurrences, then use the function stm_r_om_graphic for each occurrence.
Function Type
stm_xx_graphic_ptr
For Elements
combinational assignment
Syntax
stm_r_xx_graphic (xx_id, &status)
Arguments
 
Input/Output
Status Codes
Note: When stm_unresolved is returned, no record is received.
Example
To retrieve graphical information attached to a specific state whose ID is st_id, use the first statement regarding the specific state (st_id), then extract the particular fields from the record.

 

stm_id st_id;
int status;
stm_st_graphic_ptr st_record;
stm_color color;
.
.
st_record = stm_r_st_graphic (st_id, &status);
.
color = st_record->st_color;
.
.

Refer to Sample Program for a more detailed example of how the fields of the graphical record are used.