|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jmex.font3d.Glyph3D
public class Glyph3D
This class represents a glyph of text.
Field Summary | |
---|---|
(package private) java.util.Vector<PlanarEdge> |
outline
|
(package private) Vector3f[] |
outline_normals
|
(package private) Triangulator |
subdivision
This represents the planar subdivision of the glyph, before triangulation. |
(package private) java.nio.IntBuffer |
surface
|
Constructor Summary | |
---|---|
Glyph3D(char glyph_char)
|
Method Summary | |
---|---|
void |
addPolygon(ClosedPolygon poly)
This method adds one closed polygon to the subdivision (it can both be the outer-polygon or the inner) In normal glyphs, the outer should be clockwise and the inner counter-clockwise. |
void |
generateMesh(boolean drawSides,
boolean drawFront,
boolean drawBack)
Here we create the glyph-mesh from the triangulation (using sides/front/back according to arguments). |
java.awt.geom.Rectangle2D |
getBounds()
|
char |
getChar()
|
int |
getChildIndex()
|
Glyph3DMesh |
getMesh()
|
java.util.Vector<PlanarEdge> |
getOutline()
|
Vector3f[] |
getOutlineNormals()
|
java.nio.IntBuffer |
getSurface()
|
java.util.ArrayList<TriangulationVertex> |
getVertices()
|
boolean |
isEmpty()
|
void |
setBounds(java.awt.geom.Rectangle2D bounds2D)
|
void |
setChildIndex(int index)
|
void |
triangulate()
Triangulate the glyph, but first save the original outline. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
Triangulator subdivision
java.util.Vector<PlanarEdge> outline
Vector3f[] outline_normals
java.nio.IntBuffer surface
Constructor Detail |
---|
public Glyph3D(char glyph_char)
Method Detail |
---|
public void addPolygon(ClosedPolygon poly)
DoublyConnectedEdgeList
.
public void triangulate()
public boolean isEmpty()
public java.util.Vector<PlanarEdge> getOutline()
public Vector3f[] getOutlineNormals()
public java.nio.IntBuffer getSurface()
public void setBounds(java.awt.geom.Rectangle2D bounds2D)
public java.awt.geom.Rectangle2D getBounds()
public java.util.ArrayList<TriangulationVertex> getVertices()
public void generateMesh(boolean drawSides, boolean drawFront, boolean drawBack)
drawBack
- drawFront
- drawSides
- public Glyph3DMesh getMesh()
public char getChar()
public void setChildIndex(int index)
public int getChildIndex()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |