API Reference for Enthought Tool Suite 3.0.1

Pure-Python reference implementation of a Kiva graphics context.

Data Structures

color
1-D array with 4 elements. The array elements represent (red, green, blue, alpha) and are each between 0 and 1. Alpha is a transparency value with 0 being fully transparent and 1 being fully opaque. Many backends do not handle tranparency and treat any alpha value greater than 0 as fully opaque.
transform
currently a 3x3 array. This is not the most convenient in some backends. Mac and OpenGL use a 1-D 6 element array. We need to either make transform a class or always use accessor functions to access its values. Currently, I do the latter.

Classes

Function summary

Functions

Imported Names

Local nameRefers to
affineenthought.kiva.affine
alltruenumpy.alltrue
ARCenthought.kiva.constants.ARC
ARC_TOenthought.kiva.constants.ARC_TO
arraynumpy.array
asarraynumpy.asarray
BOLDenthought.kiva.constants.BOLD
BOLD_ITALICenthought.kiva.constants.BOLD_ITALIC
CAP_BUTTenthought.kiva.constants.CAP_BUTT
CAP_ROUNDenthought.kiva.constants.CAP_ROUND
CAP_SQUAREenthought.kiva.constants.CAP_SQUARE
CIRCLE_MARKERenthought.kiva.constants.CIRCLE_MARKER
CLOSEenthought.kiva.constants.CLOSE
CONCAT_CTMenthought.kiva.constants.CONCAT_CTM
concatenatenumpy.concatenate
copycopy
CROSS_MARKERenthought.kiva.constants.CROSS_MARKER
CROSSED_CIRCLE_MARKERenthought.kiva.constants.CROSSED_CIRCLE_MARKER
CURVE_TOenthought.kiva.constants.CURVE_TO
DECORATIVEenthought.kiva.constants.DECORATIVE
DEFAULTenthought.kiva.constants.DEFAULT
DIAMOND_MARKERenthought.kiva.constants.DIAMOND_MARKER
DOT_MARKERenthought.kiva.constants.DOT_MARKER
EOF_FILLenthought.kiva.constants.EOF_FILL
EOF_FILL_STROKEenthought.kiva.constants.EOF_FILL_STROKE
FILLenthought.kiva.constants.FILL
FILL_STROKEenthought.kiva.constants.FILL_STROKE
float64numpy.float64
INVERTED_TRIANGLE_MARKERenthought.kiva.constants.INVERTED_TRIANGLE_MARKER
ITALICenthought.kiva.constants.ITALIC
JOIN_BEVELenthought.kiva.constants.JOIN_BEVEL
JOIN_MITERenthought.kiva.constants.JOIN_MITER
JOIN_ROUNDenthought.kiva.constants.JOIN_ROUND
LINEenthought.kiva.constants.LINE
LINESenthought.kiva.constants.LINES
LOAD_CTMenthought.kiva.constants.LOAD_CTM
MODERNenthought.kiva.constants.MODERN
NO_DASHenthought.kiva.constants.NO_DASH
NO_MARKERenthought.kiva.constants.NO_MARKER
NORMALenthought.kiva.constants.NORMAL
npnumpy
pinumpy.pi
PIXEL_MARKERenthought.kiva.constants.PIXEL_MARKER
PLUS_MARKERenthought.kiva.constants.PLUS_MARKER
POINTenthought.kiva.constants.POINT
QUAD_CURVE_TOenthought.kiva.constants.QUAD_CURVE_TO
RECTenthought.kiva.constants.RECT
ROMANenthought.kiva.constants.ROMAN
ROTATE_CTMenthought.kiva.constants.ROTATE_CTM
SCALE_CTMenthought.kiva.constants.SCALE_CTM
SCRIPTenthought.kiva.constants.SCRIPT
shapenumpy.shape
sometruenumpy.sometrue
SQUARE_MARKERenthought.kiva.constants.SQUARE_MARKER
STROKEenthought.kiva.constants.STROKE
SWISSenthought.kiva.constants.SWISS
TELETYPEenthought.kiva.constants.TELETYPE
TEXT_CLIPenthought.kiva.constants.TEXT_CLIP
TEXT_FILLenthought.kiva.constants.TEXT_FILL
TEXT_FILL_CLIPenthought.kiva.constants.TEXT_FILL_CLIP
TEXT_FILL_STROKEenthought.kiva.constants.TEXT_FILL_STROKE
TEXT_FILL_STROKE_CLIPenthought.kiva.constants.TEXT_FILL_STROKE_CLIP
TEXT_INVISIBLEenthought.kiva.constants.TEXT_INVISIBLE
TEXT_OUTLINEenthought.kiva.constants.TEXT_OUTLINE
TEXT_STROKEenthought.kiva.constants.TEXT_STROKE
TEXT_STROKE_CLIPenthought.kiva.constants.TEXT_STROKE_CLIP
TRANSLATE_CTMenthought.kiva.constants.TRANSLATE_CTM
TRIANGLE_MARKERenthought.kiva.constants.TRIANGLE_MARKER

© Copyright 2002-2008 Enthought, Inc.