|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.media.opengl.glu.GLUtessellatorCallbackAdapter
fr.inria.insitu.glite.managers.TesselationManager
public class TesselationManager
Wrapper on the GLU Tess Functions, used to tesselate arbitary flattened paths.
| Field Summary | |
|---|---|
static Object |
KEY
Key for access in PaintConext. |
| Fields inherited from interface fr.inria.insitu.glite.managers.LiteManager |
|---|
KEY_CLIP, KEY_FONT, KEY_STENCIL, KEY_TESSELATOR, KEY_TRANSFORM, KEY_VERTEX_ARRAY |
| Constructor Summary | |
|---|---|
TesselationManager(javax.media.opengl.glu.GLU glu)
Create a new TesselationManager object. |
|
| Method Summary | |
|---|---|
void |
begin(int mode)
|
void |
combine(double[] coords,
Object[] data,
float[] weight,
Object[] dataOut)
|
static void |
defaultCombine(double[] coords,
Object[] data,
float[] weight,
Object[] dataOut)
Default implementation of the TesselatorVisitor combine method usable in any implementations. |
static void |
defaultError(int errorCode)
Default implementation of the TesselatorVisitor error method usable in any implementations. |
void |
dispose()
Frees the OpenGL TessObj associated with this tesselator. |
void |
end()
|
void |
error(int errorCode)
|
void |
fill(javax.media.opengl.GL gl,
Shape shape)
Fills a specified shape. |
void |
fill(javax.media.opengl.GL gl,
Shape shape,
AffineTransform at)
Fills a specified shape. |
void |
fill(javax.media.opengl.GL gl,
Shape shape,
AffineTransform at,
float flatness)
Fills a specified shape. |
void |
fill(javax.media.opengl.GL gl,
VertexArray vertexArray,
Shape shape,
AffineTransform at,
float flatness)
Fills a specified shape. |
VertexArrayList |
fill(VertexArrayList list,
Shape shape,
AffineTransform at,
float flatness)
Fills a specified shape. |
static TesselationManager |
get(LitePaintContext ctx)
Returns a TesselationManager from a LitePaintContext, creating it if needed. |
void |
reset()
Resets the manager. |
void |
tesselate(int[] xPts,
int[] yPts,
int nPts,
fr.inria.insitu.glite.managers.TesselatorVisitor visitor)
Tesselates the interior of a polygon defined by a list of points. |
void |
tesselate(PathIterator path,
fr.inria.insitu.glite.managers.TesselatorVisitor visitor)
Tesselates the interior of a polygon defined by a path. |
void |
vertex(Object data)
|
| Methods inherited from class javax.media.opengl.glu.GLUtessellatorCallbackAdapter |
|---|
beginData, combineData, edgeFlag, edgeFlagData, endData, errorData, vertexData |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final Object KEY
| Constructor Detail |
|---|
public TesselationManager(javax.media.opengl.glu.GLU glu)
glu - a GLU object| Method Detail |
|---|
public static TesselationManager get(LitePaintContext ctx)
ctx - the LitePaintContext
public void reset()
reset in interface LiteManager
public void tesselate(PathIterator path,
fr.inria.insitu.glite.managers.TesselatorVisitor visitor)
path - a flattened PathIteratorvisitor - a TesselatorVisitor
public void tesselate(int[] xPts,
int[] yPts,
int nPts,
fr.inria.insitu.glite.managers.TesselatorVisitor visitor)
xPts - a table of x coordinatesyPts - a table of y coordinatesnPts - the number of points to considervisitor - the TesselatorVisitorpublic void dispose()
dispose in interface LiteManagerpublic void begin(int mode)
begin in interface javax.media.opengl.glu.GLUtessellatorCallbackbegin in class javax.media.opengl.glu.GLUtessellatorCallbackAdapterpublic void vertex(Object data)
vertex in interface javax.media.opengl.glu.GLUtessellatorCallbackvertex in class javax.media.opengl.glu.GLUtessellatorCallbackAdapterpublic void end()
end in interface javax.media.opengl.glu.GLUtessellatorCallbackend in class javax.media.opengl.glu.GLUtessellatorCallbackAdapterpublic void error(int errorCode)
error in interface javax.media.opengl.glu.GLUtessellatorCallbackerror in class javax.media.opengl.glu.GLUtessellatorCallbackAdapter
public void combine(double[] coords,
Object[] data,
float[] weight,
Object[] dataOut)
combine in interface javax.media.opengl.glu.GLUtessellatorCallbackcombine in class javax.media.opengl.glu.GLUtessellatorCallbackAdapter
public static void defaultCombine(double[] coords,
Object[] data,
float[] weight,
Object[] dataOut)
coords - coordinates to combinedata - associated data to combineweight - weights on the pointsdataOut - where the combined points will be returnedpublic static void defaultError(int errorCode)
errorCode - the GLU error code.
public void fill(javax.media.opengl.GL gl,
Shape shape,
AffineTransform at,
float flatness)
gl - the GL contextshape - the shapeat - the affine transformflatness - the flatness
public void fill(javax.media.opengl.GL gl,
VertexArray vertexArray,
Shape shape,
AffineTransform at,
float flatness)
gl - the GL contextvertexArray - a VertexArrayshape - the shapeat - the affine transformflatness - the flatness
public void fill(javax.media.opengl.GL gl,
Shape shape,
AffineTransform at)
gl - the GL contextshape - the shapeat - the affine transform
public void fill(javax.media.opengl.GL gl,
Shape shape)
gl - the GL contextshape - the shape
public VertexArrayList fill(VertexArrayList list,
Shape shape,
AffineTransform at,
float flatness)
list - a VertexArrayListshape - the shapeat - the affine transformflatness - the flatness
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||