mikrokosmos
[ class tree: mikrokosmos ] [ index: mikrokosmos ] [ all elements ]

Procedural File: mk_lib_draw.php

Source Location: /lib/mk_lib_draw.php



Page Details:



Tags:

filesource:  Source Code for this file








bezierSplit [line 937]

void bezierSplit( mixed $p0, mixed $p1, mixed $p2, mixed $p3)



[ Top ]



curveTo [line 875]

void curveTo( mixed $ax, mixed $ay, mixed $cx, mixed $cy, [mixed $inTwips = false])

wrapper to curvedegderecord

all parameters but intTwips are required intTwips flag is used for twips conversione




[ Top ]



drawArc [line 1070]

void drawArc( mixed $x, mixed $y, mixed $radius, mixed $arcSweep, mixed $startAngle, mixed $yRadius)



[ Top ]



find_boundary [line 1234]

void find_boundary( mixed $coords)



[ Top ]



find_drawing_direction [line 1208]

void find_drawing_direction( mixed $coordAr, [mixed $findBoundary = true])



[ Top ]



get_coords_polygon [line 1430]

void get_coords_polygon( mixed $centerX, mixed $centerY, [mixed $radius = 100], [mixed $sides = 3], [mixed $rotation = 0])



[ Top ]



get_coords_star [line 1366]

void get_coords_star( mixed $centerX, mixed $centerY, [mixed $radiusExt = 0], [mixed $radiusInt = 0], [mixed $spikes = 5], [mixed $rotation = 0])



[ Top ]



intersect2Lines [line 893]

void intersect2Lines( mixed $p1, mixed $p2, mixed $p3, mixed $p4)



[ Top ]



is_edge_record [line 279]

void is_edge_record( mixed $b, mixed $boolFlag)

verifies if a given byte can be read as EDGERECORD

note that it MUST be used in a valid context that is parsing SHAPERECORD specifying boolFlag returns symbolic constants




[ Top ]



is_end_shape_record [line 243]

void is_end_shape_record( mixed $b, [mixed $boolFlag = true])

verifies if a given byte can be read as ENDSHAPERECORD

note that it MUST be used in a valid context that is parsing SHAPERECORD specifying boolFlag returns symbolic constants




[ Top ]



is_in_boundary [line 1292]

void is_in_boundary( mixed $masterBoundary, mixed $slaveBoundary)



[ Top ]



is_stylechange_record [line 223]

void is_stylechange_record( mixed $b, [mixed $boolFlag = true])

verifies if a given byte can be read as STYLECHANGERECORD

note that it MUST be used in a valid context that is parsing SHAPERECORD specifying boolFlag returns symbolic constants




[ Top ]



lineTo [line 861]

void lineTo( [mixed $x = null], [mixed $y = null], [mixed $inTwips = false])

wrapper to straightedgerecord

passing x or y as NULL use hor/vert flag intTwips flag is used for twips conversione




[ Top ]



mc_cBez [line 963]

void mc_cBez( mixed $a, mixed $b, mixed $c, mixed $d, mixed &$mcp, mixed $k)



[ Top ]



mc_curveToCubic [line 1035]

void mc_curveToCubic( mixed $x1, mixed $y1, mixed $x2, mixed $y2, mixed $x3, mixed $y3, mixed $mcp, [mixed $tolerance = 5])



[ Top ]



mc_curveToCubicPts [line 1057]

void mc_curveToCubicPts( mixed $p1, mixed $p2, mixed $p3, mixed $mcp, [mixed $tolerance = 5])



[ Top ]



mc_drawBezier [line 1010]

void mc_drawBezier( mixed $x1, mixed $y1, mixed $x2, mixed $y2, mixed $x3, mixed $y3, mixed $x4, mixed $y4, [mixed $tolerance = 5])



[ Top ]



mc_drawBezierPts [line 1005]

void mc_drawBezierPts( mixed $p1, mixed $p2, mixed $p3, mixed $p4, mixed &$mcp, [mixed $tolerance = 5])



[ Top ]



midLine [line 929]

void midLine( mixed $a, mixed $b)



[ Top ]



moveTo [line 815]

void moveTo( mixed $x, mixed $y, [mixed $opt = array()], [mixed $inTwips = false])

wrapper to stylechangerecord

opt is an optional array containing these fields: fBits, $lBits, $fsIndex1, $fsIndex0, $lsIndex intTwips flag is used for twips conversione




[ Top ]



parse_color [line 1459]

void parse_color( mixed $cStr)



[ Top ]



parse_shape_record [line 306]

void parse_shape_record( mixed $b)

reads data

returns type of edge record




[ Top ]



point_rotate [line 1159]

void point_rotate( mixed $x, mixed $y, [mixed $centerX = 0], [mixed $centerY = 0], [mixed $angle = 45])



[ Top ]



point_scale [line 1188]

void point_scale( mixed $x, mixed $y, [mixed $scaleX = 1], [mixed $scaleY = 1], [mixed $centerX = 0], [mixed $centerY = 0])



[ Top ]



point_translate [line 1178]

void point_translate( mixed $x, mixed $y, [mixed $translateX = 0], [mixed $translateY = 0])



[ Top ]



read_curved_edgerecord_data [line 458]

void read_curved_edgerecord_data( mixed $buf, [mixed $offset = 0])

reads data

returns an associative array containing CURVEDEDGERECORD fields




[ Top ]



read_fillStyleArray_data [line 52]

void read_fillStyleArray_data( mixed $buf, [mixed $dsType = SHAPE_ID])

reads data

returning FILLSTYLEARRAY fields in an associative array as in the other read_[something] it MUST be used in a valid context e.g. reading defineshape tag




[ Top ]



read_fillStyle_data [line 85]

void read_fillStyle_data( mixed $buf, [mixed $dsType = SHAPE_ID])

read data

returning an associative array cointaining FILLSTYLE fields take care to use as in other read_[something]




[ Top ]



read_fillStyle_nBits [line 208]

void read_fillStyle_nBits( mixed $b)

reads a byte

return nBits neded for indexing selection in FILLSTYLEARRAY




[ Top ]



read_gradientRecord_data [line 18]

void read_gradientRecord_data( mixed $buf, [mixed $dsType = SHAPE_ID])

reads data

return GRADIENTRECORD structure




[ Top ]



read_gradient_data [line 32]

void read_gradient_data( mixed $buf, [mixed $dsType = SHAPE_ID])

reads data

return GRADIENT structure




[ Top ]



read_lineStyleArray_data [line 142]

void read_lineStyleArray_data( mixed $buf, [mixed $dsType = SHAPE_ID])

reads data

returning LINESTYLEARRAY fields in an associative array as in the other read_ [something] it MUST be used in a valid context e.g. reading defineshape tag




[ Top ]



read_lineStyle_data [line 177]

void read_lineStyle_data( mixed $buf, [mixed $dsType = SHAPE_ID])

read data

returning an associative array cointaining LINESTYLE fields take care to use as in other read_[something]




[ Top ]



read_lineStyle_nBits [line 214]

void read_lineStyle_nBits( mixed $b)

reads a byte

return nBits neded for indexing selection in LINESTYLEARRAY




[ Top ]



read_straight_edgerecord_data [line 416]

void read_straight_edgerecord_data( mixed $buf, [mixed $offset = 0])

reads data

returns an associative array containing STRAIGHTEDGERECORD fields




[ Top ]



read_stylechange_record_data [line 347]

void read_stylechange_record_data( mixed $buf, [mixed $fBits = 0], [mixed $lBits = 0], [mixed $offset = 0], [mixed $dsType = SHAPE_ID])

reads data

returns an associative array containing STYLECHANGERECORD fields




[ Top ]



reverse_coords [line 1305]

void reverse_coords( mixed $coords)



[ Top ]



set_lineStyle [line 800]

void set_lineStyle( mixed $lineBits, mixed $lsIndex)

wrapper to stylechangerecord

opt is an optional array containing these fields: fBits, $lBits, $fsIndex1, $fsIndex0, $lsIndex intTwips flag is used for twips conversione




[ Top ]



write_curved_edgerecord_binStr [line 773]

void write_curved_edgerecord_binStr( mixed $cer)

compose a CURVEDDGERECORD binStr

from a given array containing these fields controlX, controlY, anchorX, anchorY all are required




[ Top ]



write_fillStyleArray_data [line 524]

void write_fillStyleArray_data( mixed $fsad, [mixed $inTwips = true])

write FILLSTYLEARRAY data from a given fillStyle array



[ Top ]



write_fillStyle_data [line 544]

void write_fillStyle_data( mixed $fsd, [mixed $inTwips = true])

write FILLSTYLE data from a given fillStyle



[ Top ]



write_fillStyle_nBits [line 611]

void write_fillStyle_nBits( mixed $fillCount)

return nBits neded for indexing selection in FILLSTYLEARRAY



[ Top ]



write_fill_line_indexes [line 638]

void write_fill_line_indexes( [mixed $fillCount = 0], [mixed $lineCount = 0], [mixed $binStr = true])

compose a byte containing nFillBits and nLineBits

return a byte or binStr depending on binStr flag




[ Top ]



write_gradientRecord_data [line 508]

void write_gradientRecord_data( mixed $gr)

write GRADIENTRECORD structure

from a given gradientrecord array containing these fields: ratio gradientColor: red, green, blue, [alpha]




[ Top ]



write_gradient_data [line 493]

void write_gradient_data( mixed $grd)

write GRADIENT structure from a given gradient array



[ Top ]



write_lineStyleArray_data [line 575]

void write_lineStyleArray_data( mixed $lsad, [mixed $inTwips = true])

write LINESTYLEARRAY data from a given lineStyle array



[ Top ]



write_lineStyle_data [line 594]

void write_lineStyle_data( mixed $lStyle, [mixed $inTwips = true])

write LINESTYLE data from a given array

containing these fields: lineWidth, linecolor: red, green, blue, [alpha] -> optional




[ Top ]



write_lineStyle_nBits [line 623]

void write_lineStyle_nBits( mixed $lineCount)

return nBits neded for indexing selection in LINESTYLEARRAY



[ Top ]



write_straight_edgerecord_binStr [line 732]

void write_straight_edgerecord_binStr( mixed $ser)

compose a STRAIGHTEDGERECORD binStr

from a given array containing these fields deltaX, deltaY both optional, at least one is required




[ Top ]



write_stylechange_record_binStr [line 654]

void write_stylechange_record_binStr( [mixed $moveTo = array()], [mixed $fsData = array()], [mixed $lsData = array()])

compose a binStr



[ Top ]



write_stylechange_record_data [line 690]

void write_stylechange_record_data( mixed $scr, [mixed $includeStyles = true], [mixed $offset = 0])

returns a binstr from a given associative arrays



[ Top ]



Documentation generated on Tue, 30 May 2006 20:13:09 +0000 by phpDocumentor 1.3.0RC4