| Event Sequence | Action | Description |
|---|---|---|
| Ctrl <Btn3Down> | Transform3DStart(scale) | Start scaling 3D object. |
| Shift <Btn3Down> | Transform3DStart(shift) | Start translating 3D object. |
| None <Btn3Down> | Transform3DStart(rotate) | Start rotating 3D object. |
| <Btn3Motion> | Transform3D() | Execute transformation while mouse is moving. |
| <Btn3Up> | Transform3DEnd() | End transformation and redraw object. |
See the EditObject Widget Class reference section for a complete description of those actions.
| Name | Type | Default | Access |
|---|---|---|---|
| XmN3dPerspectiveDepth | int | 0 | CSG |
| XmN3dRotation | Xint3DRotation * | {45., 0., 45.} | CS |
| XmN3dScale | Xint3DScale | {1., 1., 1.} | CSG |
| XmNannotationStrokeFont | int | XintSIMPLEX_ROMAN | CSG |
| XmNannotationStrokeFontSize | int | 40 | CSG |
| XmNlabelStrokeFont | int | XintCOMPLEX_ROMAN | CSG |
| XmNlabelStrokeFontSize | int | 50 | CSG |
| XmNviewScale | int | 100 | CSG |
| XmNxAnnotation | Boolean | True | CSG |
| XmNyAnnotation | Boolean | True | CSG |
| XmNzAnnotation | Boolean | True | CSG |
| XmNxAnnotationFormat | char * | "%.0f" | CSG |
| XmNyAnnotationFormat | char * | "%.0f" | CSG |
| XmNzAnnotationFormat | char * | "%.0f" | CSG |
| XmNxAxisOffset | int | 0 | CSG |
| XmNyAxisOffset | int | 0 | CSG |
| XmNzAxisOffset | int | 0 | CSG |
| XmNxGridLines | int | XintXY_PLANE+ XintXZ_PLANE | CSG |
| XmNyGridLines | int | XintXY_PLANE+ XintYZ_PLANE | CSG |
| XmNzGridLines | int | XintXZ_PLANE+ XintYZ_PLANE | CSG |
| XmNxIncrements | XintIncrements * | NULL | CSG |
| XmNyIncrements | XintIncrements * | NULL | CSG |
| XmNzIncrements | XintIncrements * | NULL | CSG |
| XmNxLabel | String | NULL | CSG |
| XmNyLabel | String | NULL | CSG |
| XmNzLabel | String | NULL | CSG |
| XmNxLimits | XintLimits * | NULL | CSG |
| XmNyLimits | XintLimits * | NULL | CSG |
| XmNzLimits | XintLimits * | NULL | CSG |
| XmNxTranslation | int | 0 | CSG |
| XmNyTranslation | int | 0 | CSG |
| XmNwallColor | Pixel | "light grey" | CSG |
typedef struct {
float x_angle;
float y_angle;
float z_angle;
} Xint3DRotation;
typedef struct {
float x_scale;
float y_scale;
float z_scale;
} Xint3DScale;
| Resource Value | Description |
|---|---|
| XintSIMPLEX_ROMAN (default) | Use a simplex stroke font. |
| XintCOMPLEX_ROMAN | Use a complex stroke font. |
| XintTRIPLEX_ROMAN | Use a triplex stroke font. |
| XintCOMPLEX_GREEK | Use a complex greek stroke font. |
| Resource Value | Description |
|---|---|
| XintSIMPLEX_ROMAN | Use a simplex stroke font. |
| XintCOMPLEX_ROMAN (default) | Use a complex stroke font. |
| XintTRIPLEX_ROMAN | Use a triplex stroke font. |
| XintCOMPLEX_GREEK | Use a complex greek stroke font. |
| Resource Value | Description |
|---|---|
| XintXY_PLANE | Draw grid lines in the XY plane. |
| XintXZ_PLANE | Draw grid lines in the XZ plane. |
| XintYZ_PLANE | Draw grid lines in the YZ plane. |
For example, to have all X grid lines drawn, specify XintXY_PLANE+XintXZ_PLANE for resource XmNxGridLines.
These resources are specified as a pointer to a data structure of type XintIncrements which takes the following form:
typedef struct {
float major_increment;
float minor_increment;
} XintIncrements;
typedef struct {
float minimum;
float maximum;
} XintLimits;