Ja.NET Standard Edition 5.0

Documentation API Specification

Contents

JavaShapeRasterizer Class Reference

List of all members.


Public Member Functions

 JavaShapeRasterizer ()
MultiRectArea rasterize (Shape shape, double flatness)
 Rasterizes shape with particular flatness.

Package Functions

int[] checkBufSize (int[] buf, int size)
 Checks buffer size and realloc if necessary.
void addEdge (int x, int y, int num)
 Adds to the buffers new edge.
void makeBuffer (PathIterator path, double flatness)
 Prepare all buffers and variable to rasterize shape.
void sort (int[] master, int[] slave, int length)
 Sort buffers.
int getNext (int cur)
int getPrev (int cur)
int getNextShape (int cur)
void init ()
void addActiveEdge (int levelY, int start, int end, boolean back)
 Marks edge as active.
int findActiveEdges (int levelY)
 Find new active edges.

Package Attributes

int edgesCount
int edgeCur
int[] edgesX
int[] edgesY
int[] edgesYS
int[] edgesN
int[] edgesDY
int[] bounds
int boundCount
boolean[] edgesExt
int activeCount
float[] activeX
int[] activeYEnd
float[] activeXStep
int[] activeDY
boolean[] activeExt
int[] crossX
int[] crossDY
Filler filler

Static Package Attributes

static final int POINT_CAPACITY = 16

Classes

class  Filler
 Rasterization filler for different path rules. More...

Constructor & Destructor Documentation


Member Function Documentation

int [] checkBufSize ( int[]  buf,
int  size 
) [package]

Checks buffer size and realloc if necessary.

void addEdge ( int  x,
int  y,
int  num 
) [package]

Adds to the buffers new edge.

void makeBuffer ( PathIterator  path,
double  flatness 
) [package]

Prepare all buffers and variable to rasterize shape.

void sort ( int[]  master,
int[]  slave,
int  length 
) [package]

Sort buffers.

int getNext ( int  cur  )  [package]

int getPrev ( int  cur  )  [package]

int getNextShape ( int  cur  )  [package]

void init (  )  [package]

void addActiveEdge ( int  levelY,
int  start,
int  end,
boolean  back 
) [package]

Marks edge as active.

int findActiveEdges ( int  levelY  )  [package]

Find new active edges.

MultiRectArea rasterize ( Shape  shape,
double  flatness 
)

Rasterizes shape with particular flatness.

Parameters:
shape - the souze Shape to be rasterized
flatness - the rasterization flatness
Returns:
a MultiRectArea of rasterized shape


Member Data Documentation

final int POINT_CAPACITY = 16 [static, package]

int edgesCount [package]

int edgeCur [package]

int [] edgesX [package]

int [] edgesY [package]

int [] edgesYS [package]

int [] edgesN [package]

int [] edgesDY [package]

int [] bounds [package]

int boundCount [package]

boolean [] edgesExt [package]

int activeCount [package]

float [] activeX [package]

int [] activeYEnd [package]

float [] activeXStep [package]

int [] activeDY [package]

boolean [] activeExt [package]

int [] crossX [package]

int [] crossDY [package]

Filler filler [package]