2D decorations for the OpenGL canvas.
Classes defined in module decors
A decoration is a 2-D drawing at canvas position x,y.
All decorations have at least the following attributes:
x,y : (int) window coordinates of the insertion point
This should only use openGL function that are allowed in a display list.
Methods
A mark at a fixed position on the canvas.
Methods
A straight line on the canvas.
Methods
A viewport decoration showing a text string.
Methods
Draw the text.
A viewport decoration showing a colorscale legend.
Methods
A 2D-rectangle on the canvas.
Methods
A 2D-grid on the canvas.
Methods
A collection of straight lines on the canvas.
Methods
An OpenGL actor representing a triade of global axes.
horizontal position (‘l’, ‘c’ or ‘r’) and second sets vertical position (‘b’, ‘c’ or ‘t’).
size: size in pixels of the zone displaying the triade.
pat: shape to be drawn in the coordinate planes. Default is a square. ‘16’ givec a triangle. ‘’ disables the planes.
legend: text symbols to plot at the end of the axes. A 3-character string or a tuple of 3 strings.
Methods
Functions defined in module decors
Draw a dot at canvas coordinates (x,y).
Draw a straight line from (x1,y1) to (x2,y2) in canvas coordinates.
Draw a rectangular grid of lines
The rectangle has (x1,y1) and and (x2,y2) as opposite corners. There are (nx,ny) subdivisions along the (x,y)-axis. So the grid has (nx+1) * (ny+1) lines. nx=ny=1 draws a rectangle. nx=0 draws 1 vertical line (at x1). nx=-1 draws no vertical lines. ny=0 draws 1 horizontal line (at y1). ny=-1 draws no horizontal lines.
Draw the circumference of a rectangle.
Draw a single rectangular quad.