Synopsis
group GDpick_data
{
int sx;
int sy;
float vert[3];
float point[3];
int verti;
int conni;
int primi;
float dist;
group &field_id;
prim &values_id;
group &data_id;
};
GDpick_data defines the Graphics Display Kit pick data.
The pick data is part of the pick information returned by the Graphics Display Kit when an object is picked. The pick data is returned for each primitive in the object that is picked. Currently, only the front-most primitive is picked.
The x and y coordinates, in screen space, of the point that was picked. Note that the screen space coordinate system has 0,0 in the upper left with positive X to the right and positive Y down. The coordinate system in the view has 0,0 in the center with positive X to the right and positive Y up.
The x, y, and z values, in modeling coordinates, of the closest vertex to the selected point.
The x, y, and z values, in modeling coordinates, of the selected point.
The index into the coordinate array associated with the object of the nearest vertex.
The index into the connectivity array associated with the object of the selected vertex's cell set. Not all renderable data has a connectivity array (e.g, text does not have a connectivity array).
The number of the primitive that was picked.
The picked data's z coordinate.
The OM object id of the data that is attached to the object. Typically, this is the OM object id of an AVS/Express field.
The OM object id of the array of coordinates associated with the object. Typically, this is the OM object id of the values array within an AVS/Express field.
The OM object id of the cell set selected in the object. The cell set is found in the AVS/Express field. The cell set contains the connectivity array.
Libraries.Graphics_Display.Objects.DataObject