View3D Actions and Translations


Defined Actions

The following action procedures are defined by the View3D widget class and may be tied to user event sequences via a translation table.

NameDescription
View3DAxisEditor()To pop up the axis editor dialog panel.
View3DClipPlaneEditor()To pop up the clipping plane editor dialog panel.
View3DEditVectorStart()To initiate editing of the vertices of an object. Function XintView3DEnableEditVector must have been called before, otherwise this action has no effect. This function invokes callback XmNeditVectorCallback.
View3DEditVector()To edit the vertices of an object. This action invokes callback XmNeditVectorCallback.
View3DEditVectorEnd()To terminate editing of the vertices of an object. This action invokes callback XmNeditVectorCallback.
View3DGlobalEditor()To pop up the global editor panel.
View3DLightEditor()To pop up the light editor panel.
View3DMaterialEditor(back)To pop up the back material editor dialog.
View3DMaterialEditor(front)To pop up the front material editor dialog.
View3DPickObject()To pick an object.
View3DSelectObject(single)To select a 3D object and deselect all other selected objects.
View3DSelectObject(multiple)To add a 3D object to the list of selected objects.
View3DRemoveObject()To remove the selected object(s) from the display list. The object is destroyed if its reference count becomes 0. This action invokes callback XmNremoveCallback.
View3DRotateStart()To initiate a rotation.
View3DRotate()To rotate the view.
View3DRotateEnd()To terminate a rotation operation.
View3DTranslateStart()To initiate a translation.
View3DTranslate()To translate a view.
View3DTranslateEnd()To terminate a translation operation.
View3DTraverseCurrent()To implement keyboard traversal so that View3D receives keyboard events.
View3DVersion()Displays the version of the View3D widget.
View3DZoomStart()To initiate a zoom.
View3DZoom()To zoom the view.
View3DZoomEnd()To terminate a zoom operation.


Default Translations

The default translation table defined for use with a View3D widget is defined below. These default translations can be overridden by the end-user or application programmer.

Event SequenceAction Name
None<Btn1Down>View3DTraverseCurrent()
View3DSelectObject(single)
!Ctrl<Btn1Down>View3DSelectObject(multiple)
!Ctrl<Key>fView3DMaterialEditor(front)
!Ctrl<Key>bView3DMaterialEditor(back)
!Ctrl<Key>lView3DLightEditor()
!Ctrl<Key>gView3DGlobalEditor()
<Key>osfDeleteView3DRemoveObject()
None<Btn3Down>View3DRotateStart()
None<Btn3Motion>View3DRotate()
None<Btn3Up>View3DRotateEnd()
!Ctrl<Btn3Down>View3DZoomStart()
!Ctrl<Btn3Up>View3DZoomEnd()
!Ctrl<Btn3Motion>View3DZoom()
!Shift<Btn3Down>View3DTranslateStart()
!Shift<Btn3Up>View3DTranslateEnd()
!Shift<Btn3Motion>View3DTranslate()
!Ctrl <Key>aView3DAxisEditor()
!Ctrl Alt Shift<Key>vView3DVersion()
!Ctrl <Key>cView3DClipPlaneEditor()