Functions | |
void | Set_Camera_By_Volume (const char *projection, double xmin, double xmax, double ymin, double ymax) |
void | QSet_Camera_By_Volume (const char *segment, const char *projection, double xmin, double xmax, double ymin, double ymax) |
void Set_Camera_By_Volume | ( | const char * | projection, | |
double | xmin, | |||
double | xmax, | |||
double | ymin, | |||
double | ymax | |||
) |
Sets up the Camera so that the screen will show one simple rectangular box extracted from the infinite user data space.
projection | - Special constant---either "perspective", "orthographic", "stretched", or an "oblique" form (see below). Can be uppercase, lowercase, or any mixture. | |
xmin | - Minimum limit along the X-axis, of what will visible. | |
xmax | - Maximum limit along the X-axis, of what will visible. | |
ymin | - Minimum limit along the Y-axis. | |
ymax | - Maximum limit along the Y-axis. |
Projection tells the system how to flatten your scene into 2-D and how to pack it into the available screen window. Choices for projection include:
The arguments that Set_Camera_By_Volume() passes to Set_Camera() are as follows: the camera projection is passed straight through, the up vector is set to (0.0, 1.0, 0.0), the field is set to max ( xmax - xmin, ymax - ymin ), the target is set to
and the camera position is set to
The "-2.5" is chosen so the view will be reasonable if you've chosen a perspective projection, or if you later toggle to a perspective projection.
void QSet_Camera_By_Volume | ( | const char * | segment, | |
const char * | projection, | |||
double | xmin, | |||
double | xmax, | |||
double | ymin, | |||
double | ymax | |||
) |
Similar to Set_Camera_By_Volume(), but operates on a given segment rather than the currently open one. Operates with a color values rather than names or map indices.
segment | - Name of the segment(s) to be changed. | |
projection | - Special constant---either "perspective", "orthographic", "stretched", or an "oblique" form (see below). Can be uppercase, lowercase, or any mixture. | |
xmin | - Minimum limit along the X-axis, of what will visible. | |
xmax | - Maximum limit along the X-axis, of what will visible. | |
ymin | - Minimum limit along the Y-axis. | |
ymax | - Maximum limit along the Y-axis. |