Transforms

Global placement and color transformations

The old name for this class is Screen, which was changed in 1.8 for compability reasons. You can still use the old name by defining OL_USE_SCREEN_ALIAS before including OpenLayer.hpp.

Note that the position transformations, color channels and clipping only apply to the objects which are rendered after the transformation is set. The tint color, on the other hand, will take effect during the next call to Canvas::Canvas/Refresh.html">Refresh.

As usual, all positions are in pixels and angles in radians.

For advanced users: Note that the original transformation state is stored in the matrix stack.

Member functions
SetPosition
Set the position of screen contents
SetRotation
Set the rotational angle of the screen contents
SetRotationPivot
Selects the pivot point of the screen rotation
SetStretch
Sets the stretch factor of the screen
SetTintColor
Tints the whole screen to a color
ResetPlacement
Disables all the active placement transformations
SetColorChannels
Sets the coefficients of the color channels
GetColorChannels
Returns the coefficients of the color channels
PushPlacement
Pushes the placement state of Transforms in a stack
PopPlacement
Pops the most recent placement state of Transforms from the stack


Questions about Transforms? Click here.