API Reference for Enthought Tool Suite 3.2.0
AggFontType_swigregister = _agg.AggFontType_swigregister
bicubic = _agg.bicubic
bilinear = _agg.bilinear
blackman100 = _agg.blackman100
blackman256 = _agg.blackman256
blackman64 = _agg.blackman64
blend_copy = _agg.blend_copy
blend_normal = _agg.blend_normal
BOLD = _agg.BOLD
CAP_BUTT = _agg.CAP_BUTT
CAP_ROUND = _agg.CAP_ROUND
CAP_SQUARE = _agg.CAP_SQUARE
cleanup_font_threading_primitives = _agg.cleanup_font_threading_primitives
clear_orientation = _agg.clear_orientation
CompiledPath_swigregister = _agg.CompiledPath_swigregister
cover_full = _agg.cover_full
cover_mask = _agg.cover_mask
cover_none = _agg.cover_none
cover_shift = _agg.cover_shift
cover_size = _agg.cover_size
cvar = _agg.cvar
deg2rad = _agg.deg2rad
destroy_graphics_context = _agg.destroy_graphics_context
end_of_e = _agg.end_of_e
end_of_markers = _agg.end_of_markers
end_of_pix_formats = _agg.end_of_pix_formats
EOF_FILL = _agg.EOF_FILL
EOF_FILL_STROKE = _agg.EOF_FILL_STROKE
FILL = _agg.FILL
fill_even_odd = _agg.fill_even_odd
fill_non_zero = _agg.fill_non_zero
FILL_STROKE = _agg.FILL_STROKE
get_close_flag = _agg.get_close_flag
get_orientation = _agg.get_orientation
graphics_context_from_array = _agg.graphics_context_from_array
graphics_context_multiply_alpha = _agg.graphics_context_multiply_alpha
GraphicsContextArray_swigregister = _agg.GraphicsContextArray_swigregister
GraphicsContextGL_swigregister = _agg.GraphicsContextGL_swigregister
interp_enum_map = { }
interp_string_map = { }
iround = _agg.iround
is_ccw = _agg.is_ccw
is_close = _agg.is_close
is_closed = _agg.is_closed
is_curve = _agg.is_curve
is_curve3 = _agg.is_curve3
is_curve4 = _agg.is_curve4
is_cw = _agg.is_cw
is_drawing = _agg.is_drawing
is_end_poly = _agg.is_end_poly
is_line_to = _agg.is_line_to
is_move_to = _agg.is_move_to
is_next_poly = _agg.is_next_poly
is_oriented = _agg.is_oriented
is_stop = _agg.is_stop
is_vertex = _agg.is_vertex
ITALIC = _agg.ITALIC
JOIN_BEVEL = _agg.JOIN_BEVEL
JOIN_MITER = _agg.JOIN_MITER
JOIN_ROUND = _agg.JOIN_ROUND
kiva_marker_to_agg = { }
marker_circle = _agg.marker_circle
marker_cross = _agg.marker_cross
marker_crossed_circle = _agg.marker_crossed_circle
marker_dash = _agg.marker_dash
marker_diamond = _agg.marker_diamond
marker_dot = _agg.marker_dot
marker_four_rays = _agg.marker_four_rays
marker_pixel = _agg.marker_pixel
marker_semiellipse_down = _agg.marker_semiellipse_down
marker_semiellipse_left = _agg.marker_semiellipse_left
marker_semiellipse_right = _agg.marker_semiellipse_right
marker_semiellipse_up = _agg.marker_semiellipse_up
marker_square = _agg.marker_square
marker_triangle_down = _agg.marker_triangle_down
marker_triangle_left = _agg.marker_triangle_left
marker_triangle_right = _agg.marker_triangle_right
marker_triangle_up = _agg.marker_triangle_up
marker_x = _agg.marker_x
nearest = _agg.nearest
new_instancemethod = new.instancemethod
NORMAL = _agg.NORMAL
path_cmd = _agg.path_cmd
path_cmd_catrom = _agg.path_cmd_catrom
path_cmd_curve3 = _agg.path_cmd_curve3
path_cmd_curve4 = _agg.path_cmd_curve4
path_cmd_curveN = _agg.path_cmd_curveN
path_cmd_end_poly = _agg.path_cmd_end_poly
path_cmd_line_to = _agg.path_cmd_line_to
path_cmd_mask = _agg.path_cmd_mask
path_cmd_move_to = _agg.path_cmd_move_to
path_cmd_stop = _agg.path_cmd_stop
path_cmd_ubspline = _agg.path_cmd_ubspline
path_flags = _agg.path_flags
path_flags_ccw = _agg.path_flags_ccw
path_flags_close = _agg.path_flags_close
path_flags_cw = _agg.path_flags_cw
path_flags_mask = _agg.path_flags_mask
path_flags_none = _agg.path_flags_none
pi = cvar.pi
pil_depth_map = { }
pil_format_map = { }
pix_format_abgr32 = _agg.pix_format_abgr32
pix_format_argb32 = _agg.pix_format_argb32
pix_format_bgr24 = _agg.pix_format_bgr24
pix_format_bgra32 = _agg.pix_format_bgra32
pix_format_bits = { }
pix_format_bytes = { }
pix_format_enum_map = { }
pix_format_gray8 = _agg.pix_format_gray8
pix_format_rgb24 = _agg.pix_format_rgb24
pix_format_rgb555 = _agg.pix_format_rgb555
pix_format_rgb565 = _agg.pix_format_rgb565
pix_format_rgba32 = _agg.pix_format_rgba32
pix_format_string_map = { }
pix_format_undefined = _agg.pix_format_undefined
point_in_polygon = _agg.point_in_polygon
point_in_polygon_winding = _agg.point_in_polygon_winding
points_in_polygon = _agg.points_in_polygon
points_in_polygon_winding = _agg.points_in_polygon_winding
poly_subpixel_mask = _agg.poly_subpixel_mask
poly_subpixel_scale = _agg.poly_subpixel_scale
poly_subpixel_shift = _agg.poly_subpixel_shift
rad2deg = _agg.rad2deg
rotation_matrix = _agg.rotation_matrix
scaling_matrix = _agg.scaling_matrix
set_orientation = _agg.set_orientation
sinc144 = _agg.sinc144
sinc256 = _agg.sinc256
sinc64 = _agg.sinc64
skewing_matrix = _agg.skewing_matrix
spline16 = _agg.spline16
spline36 = _agg.spline36
STROKE = _agg.STROKE
substitute_markers = { Name('DIAMOND_MARKER') : Tuple([Name('diamond_marker_path'), Name('FILL_STROKE')]), Name('CIRCLE_MARKER') : Tuple([Name('circle_marker_path'), Name('FILL_STROKE')]) }
TEXT_CLIP = _agg.TEXT_CLIP
TEXT_FILL = _agg.TEXT_FILL
TEXT_FILL_CLIP = _agg.TEXT_FILL_CLIP
TEXT_FILL_STROKE = _agg.TEXT_FILL_STROKE
TEXT_FILL_STROKE_CLIP = _agg.TEXT_FILL_STROKE_CLIP
TEXT_INVISIBLE = _agg.TEXT_INVISIBLE
TEXT_STROKE = _agg.TEXT_STROKE
TEXT_STROKE_CLIP = _agg.TEXT_STROKE_CLIP
translation_matrix = _agg.translation_matrix
uceil = _agg.uceil
ufloor = _agg.ufloor
uround = _agg.uround
Returns a latin1 encoded 8-bit string from 'text'
When specifying size, it must be a two element tuple. Array input is always treated as an image.
This class handles the polymorphism of the underlying template classes for individual pixel formats.
Test whether point pairs in pts are within the polygon, poly_pts.
This algorithm works for complex polygons.
Note: If the test point is on the border of the polygon, this algorithm will deliver unpredictable results; i.e. the result may be "inside" or "outside" depending on arbitrary factors such as how the polygon is oriented with respect to the coordinate system.
Adapted from: http://www.alienryderflex.com/polygon/
Example:
>>> from numpy import *
>>> from enthought.kiva import agg
>>> poly = array(((0.0, 0.0),
(10.0, 0.0),
(10.0, 10.0),
( 0.0, 10.0)))
>>> pts = array(((-1.0, -1.0),
( 5.0, 5.0),
( 15.0, 15.0)))
>>> results = agg.points_in_polygon(pts, poly)
[0 1 0]
| Local name | Refers to |
|---|---|
| _agg | _agg |
| array | numpy.array |
| atexit | atexit |
| CIRCLE_MARKER | enthought.kiva.constants.CIRCLE_MARKER |
| DIAMOND_MARKER | enthought.kiva.constants.DIAMOND_MARKER |
| dtype | numpy.dtype |
| FILL_STROKE | enthought.kiva.constants.FILL_STROKE |
| float64 | numpy.float64 |
| fromstring | numpy.fromstring |
| int32 | numpy.int32 |
| ndarray | numpy.ndarray |
| new | new |
| numpy | numpy |
| os | os |
| rank | numpy.rank |
| reshape | numpy.reshape |
| resize | numpy.resize |
| shape | numpy.shape |
| sys | sys |
| transpose | numpy.transpose |
| types | types |
| uint8 | numpy.uint8 |
| zeros | numpy.zeros |
© Copyright 2002-2009 Enthought, Inc.