Ovis_Viewmode_Track_Set()
Abstract
Sets 3D Network Visualizer to a Track view mode.
Syntax
Ovis_Viewmode_Track_Set (pos, track)
| Argument | Type | Description |
|---|---|---|
pos |
OvisT_3D_Position |
Position of the viewpoint |
track |
OvisT_Entity * |
Ovis entity to which the viewpoint is aimed |
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 track mode with the viewpoint at pos looking out towards the track entity.
Example
OvisT_3D_Position pos;
OvisT_Entity * entity;
/* entity created at some point */
Ovis_3D_Position_Geodetic_Set (&pos, 38, -122, 300);
Ovis_Viewmode_Track_Set (pos, entity);
Errors
- 'Track' entity is NIL.
Reference
- Use other
Ovis_Viewmode_xxx_Setfunctions to change the view to different modes.