HC_PShow_Net_Camera

int HC_PShow_Net_Camera(int key_count, Key const path_keys[], Point *position, Point *target, Vector *up, float *width, float *height, char *projection)
int HC_PShow_Net_Camera(int key_count, Key const path_keys, Point position, Point target, Vector up, float width, float height, char projection)

Returns the net effective setting along a discrete segment path.

By default, HOOPS Visualize will determine the net attribute from the last specified key all the way to the root. If you add -1 at the end of the array, the PShow_Net routines will not proceed beyond the end of the last specified key.

A return value of 0 indicates no camera was found. A value of 1 indicates a single-precision camera was found. A value of 2 indicates a double-precision camera was found.

Parameters

key_count: The size of pathkeys

path_keys: An array of HC_KEY’s delineating a path of segments.

position: Position in the scene, in user coordinates, at which the camera is set. Passed by reference. Returned to user.

target: Coordinates in the scene toward which the camera is pointed. Passed by reference. Returned to user.

up: Direction the top of the camera faces: the “upvector”. Passed by reference. Returned to user.

width: Width of the minimum visible area around the target. Passed by reference. Returned to user.

height: Height of the minimum visible area around the target. Passed by reference. Returned to user.

projection: Special constant - either “Perspective”, “Orthographic”, “Stretched”, or an “oblique” form (see Set_Camera_Projection() or Set_Camera_By_Volume() ). May be uppercase, lower case, or mixed case. Passed by reference. Returned to user.

Returns

An integer indicating what type of camera was found (see details).