TOC PREV NEXT INDEX

GDmodes_xxxx

Synopsis

access the Graphics Display Kit modes

GDmodes_get_xxxx

void _ GDmodes_get_mode ( modes_id , _int _* mode );
void _ GDmodes_get_normals ( modes_id , _int _* normals );
void _ GDmodes_get_colors ( modes_id , _int _* colors );
void GDmodes_get_outline (OMobj_id, int *outline););

OMobj_id _ modes_id ;

GDmodes_set_xxxx

void _ GDmodes_set_points ( modes_id , _int _ points _);
void _ GDmodes_set_lines ( modes_id , _int _ lines _);
void _ GDmodes_set_surf ( modes_id , _int _ surf _);
void _ GDmodes_set_volume ( modes_id , _int _ volume _);
void _ GDmodes_set_bounds ( modes_id , _int _ bounds _);
void _ GDmodes_set_normals ( modes_id , _int _ normals _);
void _ GDmodes_set_colors ( modes_id , _int _ colors _);
void GDmodes_set_outline (OMobj_id, int outline);


OMobj_id _ modes_id ;

GDmodes_delete

void _ GDmodes_delete (
NULL,
OMobj_id _ modes_id ,
0,
GDmodes _* modes _);

GDmodes_reset

void _ GDmodes_reset (GDmodes _* modes );

Description

These routines are used to access the Graphics Display Kit modes.

The GDmodes_get_xxxx routines get the subobject values of the modes. The GDmodes_set_xxxx routines set the subobject values of the modes. These routines are used by the Graphics Display Kit modes editor (i.e., GDmodes_edit).

GDmodes_delete deletes the modes. This method is called directly by the Object Manager when the modes are deleted.

GDmodes_reset resets the mode's subobjects to their default values. The default values are those in specified in DefaultModes.

GDmodes_get/set_outline gets and sets the value of the outline flag.

To create an instance of modes, call the utility routine GDcreate_instance.

Parameters

modes_id

The id of a modes object.

Other get/set parameters

The other parameters in the get/set routines correspond to subobjects of the modes object. Symbolic constants are available for most parameters.
For details, including a listing of symbolic constants, see DefaultModes .
The mode parameter is a five-element array.

modes

(GDmodes_delete only) _The modes object's local pointer. To get this value, call GDget_local.

Example

/* Get and set a modes object's lines subobject. */

OMobj_id modes_id; /* Assume this has been set. */

int lines_mode;

...

GDmodes_get_lines(modes_id, &lines_mode);

lines_mode = GD_LINES_INHERIT;

GDmodes_set_lines(modes_id, lines_mode);


TOC PREV NEXT INDEX