TOC PREV NEXT INDEX

GDpick_info_xxxx

Synopsis

access the Graphics Display Kit pick information

GDpick_info_get_xxxx

void _ GDpick_info_get_objxform ( pick_info_id , _float _* matrix _);
void _ GDpick_info_get_topxform ( pick_info_id , _float _* matrix _);
void _ GDpick_info_get_viewxform ( pick_info_id , _float _* matrix _);
void _ GDpick_info_get_selected ( pick_info_id , _int _* npicked _);
void _ GDpick_info_get_npicked ( pick_info_id , _int _* selected _);
void GDpick_info_get_pickdata _( pick_info_id , _ index , _GDpick_data _* pick_data );

OMobj_id _ pick_info_id ;
int _ index ;

GDpick_info_set_xxxx

void _ GDpick_info_set_objxform ( pick_info_id , _float _* matrix _);
void _ GDpick_info_set_topxform ( pick_info_id , _float _* matrix _);
void _ GDpick_info_set_viewxform ( pick_info_id , _float _* matrix _);
void _ GDpick_info_set_selected ( pick_info_id , _int _ selected _);
void _ GDpick_info_set_npicked ( pick_info_id , _int _ npicked _);
void GDpick_info_set_pickdata _( pick_info_id , _ index , _GDpick_data _* pick_data );

OMobj_id _ pick_info_id ;
int _ index ;

GDpick_info_delete

void _ GDpick_info_delete (
NULL,
OMobj_id _ pick_info_id ,
0,
GDpick_info _* pick_info _);

GDpick_info_reset

void _ GDpick_info_reset (GDpick_info _* pick_info );

Description

These routines access the Graphics Display Kit pick information.

The GDpick_info_get_xxxx routines get the subobject values of the pick information. The GDpick_info_set_xxxx routines set the subobject values of the pick information.

GDpick_info_delete deletes the pick information. This method is called directly by the Object Manager when the pick information is deleted.

GDpick_info_reset resets the pick information's subobjects to their default values. The default values are those in specified in DefaultPickInfo.

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

Parameters

pick_info_id

The id of the pick information.

Other get/set parameters

The other parameters in the get/set routines correspond to subobjects of the pick-information object.
For details, including a listing of symbolic constants, see See DefaultPickInfo .
The matrix parameter is a four-by-four floating-point array.
The index parameter is the index into the array of pick-data objects.

pick_info

(GDpick_info_delete only) _The pick information's local pointer. To get this value, call the utility routine GDget_local.

Example

/* Get a pick_info object's topxform subobject. */
OMobj_id pick_info_id; /* Assume this has been set. */
float topxform[4][4];
...
GDpick_info_get_topxform(pick_info_id, topxform);


TOC PREV NEXT INDEX