Synopsis
PDX_MSGT gcr_Attributes2(long option, MDA_PTR orig_db_ptr, int gdx_model, MDA_COUNT num_of_ptrs, MDA_PTR *native_geom_ptrs, double red, double green, double blue, char *name, GDX_MATRIX matrix, char *label, MDA_COUNT num_of_levels, char **level, char hierarchy, int blanked, MDA_PTR *gdx_attr_ptr)
Purpose
Create a GDX Attribute Entity.
Description
Given GDX Attribute fields such as native_geom ptrs, color values, transformation matrix, label, levels and visibilty, it creates a GDX Attribute entity. The orig_db_ptr argument should contain the database pointer of the entity that the new entity was created from (usually this should be obtained by the calling routine via mda_GetOrigDbptr) or MDA_NULL_PTR. See the mda_intro man page for more information about predecessor entities.
If any of the color values (red,green,blue) are less than zero, no color will be created.
Input
option
Not used
orig_db_ptr
The original entities orig_db_ptr as obtained from the mda_GetOrigDbptr call, or MDA_NULL_PTR
gdx_model
The GDX model for entity creation
num_of_ptrs
Number of native Geom Ptrs must be > 0
native_geom_ptrs
Array of native Geom Ptrs
red
Red color value
green
Green color value
blue
Blue color value
name
Name of the color or NULL
matrix
Transformation Matrix or NULL
label
Entity label or NULL
num_of_levels
Number of levels or '0'
level
Array of level names or 'NULL'
hierarchy
Hierarchy info
blanked
Whether entity is blanked or not
Output
gdx_attr_ptr
Attribute Entity Pointer
Return
GCR_NOERR
GCR_ZERO_GEOM_PTRS
GCR_NULL_MEMPTR
.fi