Concepts:Environment

From S2PLOT

(Difference between revisions)
Jump to: navigation, search
Revision as of 07:56, 27 October 2007
S2plot admin (Talk | contribs)

← Previous diff
Current revision
S2plot admin (Talk | contribs)

Line 9: Line 9:
It is also possible to control whether the camera is set to spin around the focal point, and the spin speed. 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 [[Function:s2svp | s2svp]].
 +* World coordinates specify the acutal plotting coordinate system, and are set using [[Function:s2swin | 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
 +
[[ S2PLOT:Features | Back ]] to Features and Concepts page. [[ S2PLOT:Features | Back ]] to Features and Concepts page.

Current revision

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.

Personal tools