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

OpenGL marks for annotating 3D actors.

Classes defined in module marks

class marks.Mark(pos)

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() : function to draw the mark

Methods

class marks.AxesMark(pos, color=None)

Two viewport axes drawn at a 3D position.

Methods

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

A text drawn at a 3D position.

Methods

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

A list of numbers drawn at 3D positions.

Methods

drawpick()

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

Functions defined in module marks

Documentation

Previous topic

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

Next topic

19. gluttext — 2D text decorations using GLUT fonts

This Page