S2PLOT provides a camera that can be controlled from within code. This enables the easy creation of data fly-throughs, or the selection of default viewpoints to help highlight specific features of a dataset.
The S2PLOT camera is specified by:
- The camera position
- The up vector
- The view direction vector
- The coordinate system (world or viewport)
- The focal point
It is also possible to control whether the camera is set to spin around the focal point, and the spin speed.
The S2PLOT environment comprises one or more panels, specified with screen coordinates, viewport coordinates and world coordinates.
- Screen coordinates relate to the physical screen. Coordinates stretch from (0,0) in the bottom-left corner of the screen/window to (1,1) in the top-right corner.
- Viewport coordinates specify the size and shape of the display region. For non-cubic coordinates, it is necessary to set the viewport using s2svp.
- World coordinates specify the acutal plotting coordinate system, and are set using s2swin .
A number of environment variables may be queried or changed:
- The resolution of spheres
- The rendering mode
- The lighting environment
- Foreground colour
- Background colour
- Projection type
Back to Features and Concepts page.