| Name | Structure | Reason |
|---|---|---|
| XmNdoubleClickCallback | XintView3DCallbackStruct | XintCR_DOUBLE_CLICK |
| XmNdrawHookCallback | XintView3DHookCallbackStruct | XintCR_HOOK_DRAW |
| XmNeditVectorCallback | XintView3DCallbackStruct | XintCR_EDIT_VECTOR_START XintCR_EDIT_VECTOR XintCR_EDIT_VECTOR_END |
| XmNhelpCallback | XintView3DHelpCallbackStruct | XintCR_HELP_FRONT XintCR_HELP_BACK XintCR_HELP_COLOR XiintCR_HELP_LIGHT XintCR_HELP_GLOBAL |
| XmNpickCallback | XintView3DCallbackStruct | XintCR_PICK |
| XmNpickHookCallback | XintView3DHookCallbackStruct | XintCR_HOOK_PICK |
| XmNremoveCallback | XintView3DRemoveCallbackStruct | XintCR_REMOVE |
| XmNrotationCallback | XintView3DOrientationCallbackStruct | XintCR_ROTATE_START XintCR_ROTATE XintCR_ROTATE_END |
| XmNselectCallback | XintView3DCallbackStruct | XintCR_SELECT |
| XmNselectHookCallback | XintView3DHookCallbackStruct | XintCR_HOOK_SELECT |
| XmNtranslationCallback | XintView3DOrientationCallbackStruct | XintCR_TRANSLATE_START XintCR_TRANSLATE XintCR_TRANSLATE_END |
| XmNzoomCallback | XintView3DOrientationCallbackStruct | XintCR_ZOOM_START XintCR_ZOOM XintCR_ZOOM_END |
| Data Type | Member | Description |
|---|---|---|
| int | reason | Indicates why the callback was invoked. |
| XEvent * | event | Points to the event that triggered the callback. |
| XintView3DObject * | object | Object that was picked or selected. |
| XintView3DPickData | pick_data | Data associated with the point that was picked. (Set only if reason is XintCR_PICK) |
| int | side | XintSIDE_TOP, XintSIDE_BOTTOM or XintSIDE_UNKNOWN. |
| XintView3DEditVectorData | edit_vector_data | Structure containing information about the new location of the vertex being edited. |
Structure XintView3DPickData is defined as follows:
typedef struct {
XintVector3 point; /* point that was picked */
XintVector3 normal; /* Normal at intersection */
XintVector3 *vertex; /* Closest vertex picked */
int index; /* Vertex index */
} XintView3DPickData;
Structure XintView3DEditVectorData is defined as follows:
typedef struct {
XintVector3 point;/* new value of vertex being edited*/
} XintView3DEditVectorData;
| Data Type | Member | Description |
|---|---|---|
| int | reason | Indicates why the callback was invoked. |
| XEvent * | event | Points to the event that triggered the callback. |
The callback reason can be used to determine on which menu the help was requested.
| Data Type | Member | Description |
|---|---|---|
| int | reason | Indicates why the callback was invoked. |
| XEvent * | event | Pointer to the XEvent that triggered the callback. |
| XintRayLeg3 | ray | Information for the ray doing the selection and picking. |
| XintReal | distance | Distance of intersection between the ray and the objects. |
| Boolean | hit | True if ray intersects objects. |
| Boolean | do_view3d | True if using the View3D picking and selection algorithms. |
| Data Type | Member | Description |
|---|---|---|
| int | reason | Indicates why the callback was invoked. |
| XEvent * | event | Pointer to the XEvent that triggered the callback. |
| XintReal | azimuth | Current azimuth of the display (Rotation). |
| XintReal | dip | Current dip of the display (Rotation). |
| XintReal | twist | Current twist of the display (Rotation). |
| XintReal | zoom | Current zoom of the display (Zoom). |
| XintReal | x_offset | Current X offset of the display (Translation). |
| XintReal | y_offset | Current Y offset of the display (Translation). |
| Data Type | Member | Description |
|---|---|---|
| int | reason | Indicates why the callback was invoked. |
| XEvent * | event | Points to the event that triggered the callback. |
| XintView3DObject ** | object_list | List of objects being removed from the View3D widget display list. |
| int | count | Number of objects being removed. |
| Boolean | doit | Set to False to prevent the objects from being deleted. |