Ovis_Viewmode_Mimic_Track_Set()
Abstract
Sets 3D Network Visualizer to the Mimic/track view mode.
Syntax
Ovis_Viewmode_Mimic_Track_Set (attach, track, offset)
| Argument | Type | Description |
|---|---|---|
attach |
OvisT_Entity * |
Ovis entity to which the viewpoint is positioned |
track |
OvisT_Entity * |
Ovis entity to which the viewpoint is aimed |
offset |
OvisT_3D_Body_Offset |
Position from the attach entity along its body axis |
Return Type
OvisT_Compcode
OvisC_Compcode_Success if the operation could be performed; OvisC_Compcode_Failure otherwise.
Header
ovis_entity.h
Details
This function modifies the current view mode in 3D Network Visualizer to a mimic/track view mode. The viewpoint is positioned relative to the attach entity and aimed at the track entity.
Example
OvisT_3D_Body_Offset offset;
OvisT_Entity * ent1, * ent2;
/* Positioned behing ent1 looking at ent2 */
offset.forward = -10;
offset.right = offset.down = 0;
Ovis_Viewmode_Mimic_Track_Set (ent1, ent2, offset);
Errors
- 'Attach' entity is NIL.
- 'Track' entity is NIL.
Reference
- Use other
Ovis_Viewmode_xxx_Setfunctions to change the view to different modes.