scallop dome pyformex logo

Previous topic

22. decors — 2D decorations for the OpenGL canvas.

Next topic

24. gluttext — 2D text decorations using GLUT fonts

[FSF Associate Member]

Valid XHTML 1.0 Transitional

23. marks — OpenGL marks for annotating 3D actors.

Classes defined in module marks

class marks.Mark(pos, nolight=True, **kargs)

A 2D drawing inserted at a 3D position of the scene.

The minimum attributes and methods are:

  • pos : 3D point where the mark will be drawn
  • draw() : method to draw the mark
drawGL(**kargs)

Perform the OpenGL drawing functions to display the actor.

pickGL(**kargs)

Mimick the OpenGL drawing functions to pick (from) the actor.

setLineWidth(linewidth)

Set the linewidth of the Drawable.

setLineStipple(linestipple)

Set the linewidth of the Drawable.

setColor(color=None, colormap=None, ncolors=1)

Set the color of the Drawable.

setTexture(texture)

Set the texture data of the Drawable.

class marks.AxesMark(pos, color=None, **kargs)

Two viewport axes drawn at a 3D position.

pickGL(**kargs)

Mimick the OpenGL drawing functions to pick (from) the actor.

setLineWidth(linewidth)

Set the linewidth of the Drawable.

setLineStipple(linestipple)

Set the linewidth of the Drawable.

setColor(color=None, colormap=None, ncolors=1)

Set the color of the Drawable.

setTexture(texture)

Set the texture data of the Drawable.

class marks.TextMark(pos, text, color=None, font='sans', size=18, **kargs)

A text drawn at a 3D position.

pickGL(**kargs)

Mimick the OpenGL drawing functions to pick (from) the actor.

setLineWidth(linewidth)

Set the linewidth of the Drawable.

setLineStipple(linestipple)

Set the linewidth of the Drawable.

setColor(color=None, colormap=None, ncolors=1)

Set the color of the Drawable.

setTexture(texture)

Set the texture data of the Drawable.

class marks.MarkList(pos, val, color=(0.0, 0.0, 0.0), font='sans', size=18, leader='', gravity='', **kargs)

A list of numbers drawn at 3D positions.

drawpick()

This functions mimicks the drawing of a number list for picking.

pickGL(**kargs)

Mimick the OpenGL drawing functions to pick (from) the actor.

setLineWidth(linewidth)

Set the linewidth of the Drawable.

setLineStipple(linestipple)

Set the linewidth of the Drawable.

setColor(color=None, colormap=None, ncolors=1)

Set the color of the Drawable.

setTexture(texture)

Set the texture data of the Drawable.

Functions defined in module marks