JavaView© v3.95.000

jv.objectGui
Class PsScanline

java.lang.Object
  extended byjv.objectGui.PsScanline

public class PsScanline
extends java.lang.Object

Utility class with rasterization algorithms on pixel images.

Since:
JavaView 2.80.001

Field Summary
 float[][] aAnteile
          float[3][>=#scanlines].
 float[][] eAnteile
          float[3][>=#scanlines].
 int length
          Number of scanlines.
 int[] xa
          X-coordinates of scanlines. xa: head, xe: tail, both inclusive.
 int[] xe
          X-coordinates of scanlines. xa: head, xe: tail, both inclusive.
 int ymin
          First y-coordinate, die weiteren sind folgerichtig ymin+i fuer die i-te scanline
 
Constructor Summary
PsScanline()
           
 
Method Summary
 void makeScanlines(int x0, int y0, int x1, int y1, int x2, int y2)
          A triangle in pixel space is digitized in a set of horizontal scanlines.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

xa

public int[] xa
X-coordinates of scanlines. xa: head, xe: tail, both inclusive. xa[i] is the beginning of i-th scanline from top. Arrays must not have correct length, see length.


xe

public int[] xe
X-coordinates of scanlines. xa: head, xe: tail, both inclusive. xa[i] is the beginning of i-th scanline from top. Arrays must not have correct length, see length.


aAnteile

public float[][] aAnteile
float[3][>=#scanlines]. Barycentric coordinates of heads of scanlines, e.g. for interpolation of scalar values at vertices.


eAnteile

public float[][] eAnteile
float[3][>=#scanlines]. Barycentric coordinates of heads of scanlines, e.g. for interpolation of scalar values at vertices.


length

public int length
Number of scanlines.


ymin

public int ymin
First y-coordinate, die weiteren sind folgerichtig ymin+i fuer die i-te scanline

Constructor Detail

PsScanline

public PsScanline()
Method Detail

makeScanlines

public void makeScanlines(int x0,
                          int y0,
                          int x1,
                          int y1,
                          int x2,
                          int y2)
A triangle in pixel space is digitized in a set of horizontal scanlines. The computed endpoints of all scanlines are assigned to this raster object.

Parameters:
x0 - x-pixel coordinate of first vertex of a triangle.
y0 - y-pixel coordinate of first vertex of a triangle.
x1 - x-pixel coordinate of second vertex of a triangle.
y1 - y-pixel coordinate of second vertex of a triangle.
x2 - x-pixel coordinate of third vertex of a triangle.
y2 - y-pixel coordinate of third vertex of a triangle.
Since:
JavaView 2.48.005

JavaView© v3.95.000

The software JavaView© is copyright protected. All Rights Reserved.