| Function Name | Description |
|---|---|
| XintCreateView3D | Creates an unmanaged View3D widget. |
| XintView3DAddObject | Adds an object to the display list of a View3D widget. |
| XintView3DAddObjectAndMaterial. | Adds an object to the display list of a View3D widget and assigns the object the specified material. |
| XintView3DDeselectAll | To deselect all selected objects. |
| XintView3DFreeze | To freeze/unfreeze the display. |
| XintView3DGetModelLimits | Returns the limits of the X, Y and Z axes. |
| XintView3DGetObjectPickable | Tells whether or not the specified object is pickable. |
| XintView3DGetObjectSelectable | Tells whether or not the specified object is selectable. |
| XintView3DGetObjectSelected | Tells whether or not an object is selected. |
| XintView3DGetOrientation | Returns the orientation of the specified viewer. |
| XintView3DGetTranslation | Returns the translation of the specified viewer. |
| XintView3DGetZoom | Returns the zoom of the specified viewer. |
| XintView3DPopFreeze | Pop a freeze off of the stack (allow redraws). |
| XintView3DPushFreeze | Push a freeze onto the stack (prevent redraws). |
| XintView3DRecenter | To recenter the display. |
| XintView3DRedraw | Redraws the entire display of a View3D widget. |
| XintView3DRemoveObject | Removes an object from the display list of a View3D widget. |
| XintView3DScale | Adjusts the scaling of the display. |
| XintView3DSelectAll | To select all the objects displayed in the view. |
| XintView3DSelectObject | Selects or deselects the specified object. |
| XintView3DSetClipPlanesByEquation | Sets the clipping plane based on equation. |
| XintView3DSetClipPlanesByAngle | Sets the clipping plane based on angle. |
| XintView3DSetLight | Sets the light attributes of a viewer. |
| XintView3DSetLightRaysAndSpheres | Tells whether or not to identify active light sources. |
| XintView3DSetMaterial | Assigns a material to an object for the specified viewer. |
| XintView3DSetOrientation | Sets the orientation of the specified viewer. |
| XintView3DSetPickable | Sets the pickable state of the specified object. |
| XintView3DSetSelectable | Sets the selectable state of the specified object. |
| XintView3DSetTranslation | Sets the translation of the specified viewer. |
| XintView3DSetZoom | Sets the zoom of the specified viewer. |
Object XintCreateView3D (...)
| Widget | parent | Parent of new View3D widget. |
| char * | name | Name of new View3D widget. |
| ArgList | arglist | List of resource settings for the new widget. |
| Cardinal | argcount | Number of resources set by arglist. |
Boolean XintView3DAddObject (...)
| Widget | widget | ID of the View3D widget. |
| XintView3DObject * | object | ID of the 3D object to add. |
XintView3DAddObject returns True if the object was successfully added to the display list and False otherwise.
Boolean XintView3DAddObjectAndMaterial (...)
| Widget | widget | ID of the View3D widget. |
| XintView3DObject * | object | ID of the 3D object to add. |
| XintView3DMaterial * | front | Front material for the object. |
| XintView3DMaterial * | back | Back material or NULL if object does not support a back material or if the back material should be the same as the front. |
This function returns True if the object was successfully added to the display list and False otherwise.
void XintView3DDeselectAll (...)
| Widget | widget | ID of the View3D widget. |
void XintView3DFreeze(...)
| Widget | widget | ID of the View3D widget. |
| Boolean | freeze | True to freeze the display, False to unfreeze and redraw the display. |
A typical code fragment, where multiple objects are added to the display list might appear as follows:
XintView3DFreeze(view3d, True);
XintView3DAddObject(view3D, object1);
....
XintView3DAddObject(view3d, objectn);
XintView3DFreeze(view3d, False);
void XintView3DGetModelLimits (...)
| Widget | widget | ID of the View3D widget. |
| XintRealLimits * | x_limits | Axis limits in the X direction. |
| XintRealLimits * | y_limits | Axis limits in the Y direction. |
| XintRealLimits * | z_limits | Axis limits in the Z direction. |
Boolean XintView3DGetObjectPickable (...)
| Widget | widget | ID of the View3D widget. |
| XintView3DObject * | object | ID of the 3D object. |
Boolean XintView3DGetObjectSelectable (...)
| Widget | widget | ID of the View3D widget. |
| XintView3DObject * | object | ID of the object. |
Boolean XintView3DGetObjectSelected (...)
| Widget | widget | ID of the View3D widget. |
| XintView3DObject * | object | ID of the object. |
void XintView3DGetOrientation (...)
| Widget | widget | ID of the View3D widget. |
| XintReal * | azimuth | Azimuth of widget. |
| XintReal * | dip | Dip of widget. |
| XintReal * | twist | Twist of widget. |
void XintView3DGetTranslation (...)
| Widget | widget | ID of the View3D widget. |
| XintReal * | x_offset | X offset of display. |
| XintReal * | y_offset | Y offset of display. |
XintReal XintView3DGetZoom (...)
| Widget | widget | ID of the View3D widget. |
void XintView3DPopFreeze (...)
| Widget | widget | ID of the View3D widget. |
This function pops a freeze off of the stack. If there are any freezes on the stack, the View3D widget will not redraw. You can use the older API call XintView3DFreeze() to remove all freezes from the stack.
void XintView3DPushFreeze (...)
| Widget | widget | ID of the View3D widget. |
This function pushes a freeze onto the stack. If there are any freezes on the stack, the View3D widget will not redraw. You can use XintView3DPopFreeze() or the older API call XintView3DFreeze() to remove all freezes from the stack.
void XintView3DRecenter (...)
| Widget | widget | ID of the View3D widget. |
void XintView3DRedraw (...)
| Widget | widget | ID of the View3D widget. |
Boolean XintView3DRemoveObject (...)
| Widget | widget | ID of the View3D widget. |
| XintView3DObject * | object | ID of the object to remove. |
This function returns False if the object was not found in the list of objects displayed by the View3D widget. Otherwise it returns True.
XintView3DScale (...)
| Widget | widget | ID of the View3D widget. |
| char | axis | Set to 'X' for the X axis, 'Y' for the Y axis, or 'Z' for the Z axis. |
| XintReal | scale | Amount to scale the axis. 1.0 makes no change. Set < 1.0 to make the axis smaller. Set > 1.0 to make it larger. |
void XintView3DSelectAll (...)
| Widget | widget | ID of the View3D widget. |
void XintView3DSelectObject (...)
| Widget | widget | ID of the View3D widget. |
| XintView3DObject * | object | ID of the 3D object. |
| Boolean | select | True to select, False to deselect. |
Ax + By + Cz + D = 0;
void XintView3DSetClipPlanesByEquation (...)
| Widget | widget | ID of the View3D widget. |
| int | plane | Which plane to set. |
| Boolean | on | Set to True to enable the clipping plane. |
| XintVector4 | equation | The clipping plane parameters (A,B,C,D). |
Argument plane must be specified as one of the following constants:
| Defined Constant | Description |
|---|---|
| XintCLIP_PLANE0 | The default position is at quarter scale to +X edge and parallel to yz plane. |
| XintCLIP_PLANE1 | The default position is at quarter scale to -X edge and parallel to yz plane. |
| XintCLIP_PLANE2 | The default position is at quarter scale to +Y edge and parallel to xz plane. |
| XintCLIP_PLANE3 | The default position is at quarter scale to -Y edge and parallel to xz plane. |
| XintCLIP_PLANE4 | The default position is at quarter scale to +Z edge and parallel to xy plane. |
| XintCLIP_PLANE5 | The default position is at quarter scale to -Z edge and parallel to xy plane. |
void XintView3DSetClipPlanesByAngle (...)
| Widget | widget | ID of the View3D widget. |
| int | plane | Which plane to set. |
| Boolean | on | Set to True to enable the clipping plane. |
| int | azimuth | The angle between +X vector and the plane normal's projection on the xz plane. |
| int | dip | The angle between plane normal and its projection on the xy plane. |
| XintVector3 | offset | The distance from the original to the clipping plane. |
Argument plane must be specified as one of the following constants:
| Defined Constant | Description |
|---|---|
| XintCLIP_PLANE0 | The default position is at quarter scale to +X edge and parallel to yz plane. |
| XintCLIP_PLANE1 | The default position is at quarter scale to -X edge and parallel to yz plane. |
| XintCLIP_PLANE2 | The default position is at quarter scale to +Y edge and parallel to xz plane. |
| XintCLIP_PLANE3 | The default position is at quarter scale to -Y edge and parallel to xz plane. |
| XintCLIP_PLANE4 | The default position is at quarter scale to +Z edge and parallel to xy plane. |
| XintCLIP_PLANE5 | The default position is at quarter scale to -Z edge and parallel to xy plane. |
void XintView3DSetLight (...)
| Widget | widget | ID of the View3D widget. |
| int | light | Which light to set. |
| Boolean | on | Set to True to turn on the light and False to turn it off. |
| int | intensity | Intensity of the light (from 0 to XintLIGHT_MAX_INTENSITY) |
| int | dip | An angle between -90° and +90° that specifies the position of the light source with respect to the z axis (-90° is parallel to the +Z axis and +90° is parallel to the -Z axis.). |
| int | azimuth | An angle between -180° and +180° that specifies the position of the light source in the XY plane (angle 0° corresponds to the -Y axis). |
Argument light must be specified as one of the following constants:
| Defined Constant | Description |
|---|---|
| XintLIGHT_HEAD | Head light. The position and intensity (set to XintLIGHT_MAX_INTENSITY) cannot be changed. |
| XintLIGHT_1 | Light positioned in the positive X direction (default position is dip = 0 and azimuth = 90). |
| XintLIGHT_2 | Light positioned in the negative X direction (default position is dip = 0 and azimuth = -90). |
| XintLIGHT_3 | Light positioned in the positive Y direction (default position is dip = 0 and azimuth = -180). |
| XintLIGHT_4 | Light positioned in the negative Y direction (default position is dip = 0 and azimuth = 0). |
| XintLIGHT_5 | Light positioned in the positive Z direction (default position is dip = -90 and azimuth = 0). |
| XintLIGHT_6 | Light positioned in the negative Z direction (default position is dip = 90 and azimuth = 0). |
void XintView3DSetLightRaysAndSpheres (...)
| Widget | widget | ID of the View3D widget viewer. |
| Boolean | show_rays | True to draw the active light rays; False otherwise. |
| Boolean | show_spheres | True to draw the active light spheres; False otherwise. |
void XintView3DSetMaterial (...)
| Widget | widget | ID of the View3D widget viewer. |
| XintView3DObject * | object | ID of the 3D object |
| XintView3DMaterial * | front | Front material for the object. |
| XintView3DMaterial * | back | Back material or NULL if object does not support a back material or if the back material should be the same as the front. |
void XintView3DSetOrientation (...)
| Widget | widget | ID of the View3D widget viewer. |
| XintReal | azimuth | Azimuth of widget. |
| XintReal | dip | Dip of widget. |
| XintReal | twist | Twist of widget. |
void XintView3DSetPickable (...)
| Widget | widget | ID of the View3D widget. |
| XintView3DObject * | object | ID of the 3D object. |
| Boolean | state | True to enable picking, False to disable picking. |
void XintView3DSetSelectable (...)
| Widget | widget | ID of the View3D widget. |
| XintView3DObject * | object | ID of the 3D object. |
| Boolean | state | True to enable selection, False to disable selection. |
void XintView3DSetTranslation (...)
| Widget | widget | ID of the View3D widget viewer. |
| XintReal | x_offset | X offset of display. |
| XintReal | y_offset | Y offset of display. |
void XintView3DSetZoom (...)
| Widget | widget | ID of the View3D widget viewer. |
| XintReal | zoom | Zoom of widget. |