cz.cuni.jagrlib.iface
Interface FaceRender

All Superinterfaces:
Property
All Known Implementing Classes:
FaceRenderFlat

public interface FaceRender
extends Property

Interface for 3D scene face rendering (texture-mapped, Gouraud-shaded, Phong-shaded, ..).

Since:
0.09
See Also:
BitMaskCore, Brep, FaceRender.java

Field Summary
static java.lang.String FACE_COLOR
          Property: name of face-color attribute.
static java.lang.String FACE_NORMAL
          Property: name of face-normal attribute.
static java.lang.String FACE_SOLID
          Property: name of face-solid attribute.
static java.lang.String FACE_TEXTURE
          Property: name of face-texture attribute.
static java.lang.String PROJECTED_COORDS
          Property: name of projected-coordinates attribute.
static java.lang.String VERTEX_COLOR
          Property: name of vertex-color attribute.
static java.lang.String VERTEX_NORMAL
          Property: name of vertex-normal attribute.
static java.lang.String VERTEX_TEXTURE
          Property: name of vertex-texture attribute (texture-coordinates).
 
Fields inherited from interface cz.cuni.jagrlib.iface.Property
LOGGING, STATISTICS, TEXT_DESCRIPTION
 
Method Summary
 void fillHLine(int ctx, int face, int x1, int x2, int y)
          Fills the horizontal line from the given polygonal face.
 void fillInside(int ctx, int face)
          Fills the given polygonal face.
 int fillOutside(int ctx, int face)
          Fills the given polygonal face.
 
Methods inherited from interface cz.cuni.jagrlib.iface.Property
commit, get, set
 

Field Detail

PROJECTED_COORDS

static final java.lang.String PROJECTED_COORDS
Property: name of projected-coordinates attribute. Needs not be changed - default value is Brep.COORD_PROJ.

See Also:
Constant Field Values

FACE_COLOR

static final java.lang.String FACE_COLOR
Property: name of face-color attribute. Needs not be changed - default value is Brep.COLOR.

See Also:
Constant Field Values

VERTEX_COLOR

static final java.lang.String VERTEX_COLOR
Property: name of vertex-color attribute. Needs not be changed - default value is Brep.COLOR.

See Also:
Constant Field Values

FACE_NORMAL

static final java.lang.String FACE_NORMAL
Property: name of face-normal attribute. Needs not be changed - default value is Brep.NORMAL.

See Also:
Constant Field Values

VERTEX_NORMAL

static final java.lang.String VERTEX_NORMAL
Property: name of vertex-normal attribute. Needs not be changed - default value is Brep.NORMAL.

See Also:
Constant Field Values

FACE_TEXTURE

static final java.lang.String FACE_TEXTURE
Property: name of face-texture attribute. Identifies texture object for each face.

See Also:
Constant Field Values

VERTEX_TEXTURE

static final java.lang.String VERTEX_TEXTURE
Property: name of vertex-texture attribute (texture-coordinates). Needs not be changed - default value is Brep.TEXTURE_0.

See Also:
Constant Field Values

FACE_SOLID

static final java.lang.String FACE_SOLID
Property: name of face-solid attribute. Identifies solid handle for each face.

See Also:
Constant Field Values
Method Detail

fillInside

void fillInside(int ctx,
                int face)
Fills the given polygonal face. Uses only pixels which are set in the associated BitMaskCore (fills the whole face if no BitMaskCore is used).

Parameters:
ctx - Handle to a context to draw from.
face - Handle of the face (in the associated Brep scene).
See Also:
BitMaskCore, Brep

fillHLine

void fillHLine(int ctx,
               int face,
               int x1,
               int x2,
               int y)
Fills the horizontal line from the given polygonal face.

Parameters:
ctx - Handle to a context to draw from.
face - Handle of the face (in the associated Brep scene).
x1 - X coordinate of the starting pixel.
x2 - X coordinate of the first pixel after the line.
y - Common Y coordinate of the line.
See Also:
Brep

fillOutside

int fillOutside(int ctx,
                int face)
Fills the given polygonal face. Uses only pixels which are not set in the associated BitMaskCore. Sets the drawn pixels afterwards.

Parameters:
ctx - Handle to a context to draw from.
face - Handle of the face (in the associated Brep scene).
Returns:
Number of pixels filled.
See Also:
BitMaskCore, Brep