|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface FaceRender
Interface for 3D scene face rendering (texture-mapped, Gouraud-shaded, Phong-shaded, ..).
BitMaskCore
,
Brep
,
FaceRender.javaField 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 |
---|
static final java.lang.String PROJECTED_COORDS
Brep.COORD_PROJ
.
static final java.lang.String FACE_COLOR
Brep.COLOR
.
static final java.lang.String VERTEX_COLOR
Brep.COLOR
.
static final java.lang.String FACE_NORMAL
Brep.NORMAL
.
static final java.lang.String VERTEX_NORMAL
Brep.NORMAL
.
static final java.lang.String FACE_TEXTURE
static final java.lang.String VERTEX_TEXTURE
Brep.TEXTURE_0
.
static final java.lang.String FACE_SOLID
Method Detail |
---|
void fillInside(int ctx, int face)
BitMaskCore
(fills the whole face if no BitMaskCore
is used).
ctx
- Handle to a context to draw from.face
- Handle of the face (in the associated Brep
scene).BitMaskCore
,
Brep
void fillHLine(int ctx, int face, int x1, int x2, int y)
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.Brep
int fillOutside(int ctx, int face)
BitMaskCore
. Sets the drawn pixels afterwards.
ctx
- Handle to a context to draw from.face
- Handle of the face (in the associated Brep
scene).
BitMaskCore
,
Brep
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |