28package com.jogamp.opengl.demos.graph.ui.testshapes;
30import com.jogamp.graph.curve.OutlineShape;
31import com.jogamp.graph.ui.GraphShape;
32import com.jogamp.opengl.GL2ES2;
33import com.jogamp.opengl.GLProfile;
55 shape.
addVertex(0, 0.043000f, 0.343000f,
true);
58 shape.
addVertex(0, 0.043000f, 0.432000f,
false);
59 shape.
addVertex(0, 0.058000f, 0.500000f,
true);
62 shape.
addVertex(0, 0.073000f, 0.568000f,
false);
63 shape.
addVertex(0, 0.096000f, 0.606000f,
true);
66 shape.
addVertex(0, 0.119000f, 0.645000f,
false);
67 shape.
addVertex(0, 0.151000f, 0.669000f,
true);
70 shape.
addVertex(0, 0.183000f, 0.693000f,
false);
71 shape.
addVertex(0, 0.212000f, 0.701000f,
true);
74 shape.
addVertex(0, 0.242000f, 0.709000f,
false);
75 shape.
addVertex(0, 0.275000f, 0.709000f,
true);
78 shape.
addVertex(0, 0.507000f, 0.709000f,
false);
79 shape.
addVertex(0, 0.507000f, 0.337000f,
true);
82 shape.
addVertex(0, 0.507000f, 0.162000f,
false);
83 shape.
addVertex(0, 0.448000f, 0.070000f,
true);
86 shape.
addVertex(0, 0.388000f, -0.023000f,
false);
87 shape.
addVertex(0, 0.275000f, -0.023000f,
true);
90 shape.
addVertex(0, 0.161000f, -0.023000f,
false);
91 shape.
addVertex(0, 0.102000f, 0.070000f,
true);
94 shape.
addVertex(0, 0.043000f, 0.164000f,
false);
95 shape.
addVertex(0, 0.043000f, 0.343000f,
true);
103 shape.
addVertex(0, 0.417000f, 0.345000f,
true);
106 shape.
addVertex(0, 0.417000f, 0.631000f,
false);
107 shape.
addVertex(0, 0.275000f, 0.631000f,
true);
110 shape.
addVertex(0, 0.133000f, 0.631000f,
false);
111 shape.
addVertex(0, 0.133000f, 0.342000f,
true);
114 shape.
addVertex(0, 0.133000f, 0.050000f,
false);
115 shape.
addVertex(0, 0.273000f, 0.050000f,
true);
118 shape.
addVertex(0, 0.347000f, 0.050000f,
false);
119 shape.
addVertex(0, 0.382000f, 0.122000f,
true);
122 shape.
addVertex(0, 0.417000f, 0.194000f,
false);
123 shape.
addVertex(0, 0.417000f, 0.345000f,
true);
140 return super.getSubString();
A Generic shape objects which is defined by a list of Outlines.
final Winding getWindingOfLastOutline()
Compute the Winding of the getLastOutline() using the VectorUtil#area(ArrayList) function over all of...
final void addVertex(final Vertex v)
Adds a vertex to the last open outline to the shape's tail.
final void setIsQuadraticNurbs()
Claim this outline's vertices are all OutlineShape.VerticesState#QUADRATIC_NURBS, hence no cubic tran...
final void setSharpness(final float s)
Sets sharpness, defaults to DEFAULT_SHARPNESS.
final void closeLastOutline(final boolean closeTail)
Closes the last outline in the shape.
final void addEmptyOutline()
Add a new empty Outline to the end of this shape's outline list.
final void addOutlineShape(final OutlineShape shape, final AffineTransform t, final Vec4f rgbaColor)
Add the given OutlineShape to this region with the given optional AffineTransform.
Graph based GLRegion Shape.
final void resetGLRegion(final GLProfile glp, final GL2ES2 gl, final TextureSequence colorTexSeq, int vertexCount, int indexCount)
Reset the GLRegion and reserving its buffers to have a free capacity for vertexCount and indexCount e...
final Vec4f rgbaColor
Default base-color w/o color channel, will be modulated w/ pressed- and toggle color.
final Shape setRotationPivot(final float px, final float py, final float pz)
Set unscaled rotation origin, aka pivot.
final AABBox resize(final AABBox newBox)
Resize the AABBox to encapsulate another AABox.
final Vec3f getCenter()
Returns computed center of this AABBox of getLow() and getHigh().
Specifies the the OpenGL profile.
GPU based resolution independent test object.
Glyph04FreeSans_0(final int renderModes)
void addShapeToRegion(final GLProfile glp, final GL2ES2 gl)