Ovis_Viewmode_Pivot_Set()
Note: The Pivot view mode is not supported in 3D Network Visualizer 3.1.0 and later. Calls to this function have no effect.
Abstract
Sets 3D Network Visualizer to the Pivot view mode.
Syntax
Ovis_Viewmode_Pivot_Set (pos, radius, azimuth, elevation)
| Argument | Type | Description |
|---|---|---|
pos |
OvisT_3D_Position |
Position of the viewpoint |
radius |
double |
Distance of viewpoint from entity, in meters |
azimuth |
double |
Azimuth angle in X-Y entity plane, in degrees |
elevation |
double |
Elevation angle in X-Z entity plane, in degrees |
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 pivot view mode. The pivot is placed at the specified location (pos) and the viewpoint is placed on a sphere of |radius| meters.
A positive radius will have the viewpoint looking away from the entity, while a negative radius will have the viewpoint looking at the entity, as shown in Figure 12.
pos must refer to a fixed location in geocentric or geodetic coordinates.
Example
OvisT_3D_Position pos;
Ovis_3D_Position_Geodetic_Set (&pos, 38, -122, 300);
Ovis_Viewmode_Pivot_Set (pos, 500, 0, 0);
Errors
- 'Decoration' 3D position is not supported.
- 'Entity' 3D position is not supported.
Reference
- Use other
Ovis_Viewmode_xxx_Setfunctions to change the view to different modes.