Ovis_Viewmode_Mimic_Set()
Abstract
Sets 3D Network Visualizer to the Mimic view mode.
Syntax
Ovis_Viewmode_Mimic_Set (entity, offset)
| Argument | Type | Description |
|---|---|---|
entity |
OvisT_Entity * |
Ovis entity |
offset |
OvisT_3D_Body_Offset |
Struct of doubles giving the offsets of the viewpoint from the entity in meters forward, right, and down |
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 mode attached to the specified entity with the viewpoint at a certain position from the entity.
Example
OvisT_3D_Body_Offset offset;
OvisT_Entity * entity;
/* Looking at the back of the entity */
offset.forward = -10;
offset.right = offset.down = 0;
Ovis_Viewmode_Mimic_Set (entity, offset);
Errors
- Entity is NIL.
Reference
- Use other
Ovis_Viewmode_xxx_Setfunctions to change the view to different modes.