28package com.jogamp.opengl.demos.graph.ui.testshapes;
30import com.jogamp.graph.curve.OutlineShape;
31import com.jogamp.graph.ui.GraphShape;
32import com.jogamp.math.geom.plane.Winding;
33import com.jogamp.opengl.GL2ES2;
34import com.jogamp.opengl.GLProfile;
47 @SuppressWarnings(
"unused")
61 shape.
addVertex(0, 0.527000f, 0.258000f,
true);
64 shape.
addVertex(0, 0.527000f, 0.197000f,
false);
65 shape.
addVertex(0, 0.510000f, 0.147000f,
true);
68 shape.
addVertex(0, 0.492000f, 0.097000f,
false);
69 shape.
addVertex(0, 0.461000f, 0.062000f,
true);
72 shape.
addVertex(0, 0.429000f, 0.027000f,
false);
73 shape.
addVertex(0, 0.386000f, 0.008000f,
true);
76 shape.
addVertex(0, 0.343000f, -0.012000f,
false);
77 shape.
addVertex(0, 0.291000f, -0.012000f,
true);
80 shape.
addVertex(0, 0.239000f, -0.012000f,
false);
81 shape.
addVertex(0, 0.196000f, 0.007000f,
true);
84 shape.
addVertex(0, 0.153000f, 0.027000f,
false);
85 shape.
addVertex(0, 0.122000f, 0.062000f,
true);
88 shape.
addVertex(0, 0.090000f, 0.097000f,
false);
89 shape.
addVertex(0, 0.073000f, 0.147000f,
true);
92 shape.
addVertex(0, 0.055000f, 0.197000f,
false);
93 shape.
addVertex(0, 0.055000f, 0.258000f,
true);
96 shape.
addVertex(0, 0.055000f, 0.319000f,
false);
97 shape.
addVertex(0, 0.072000f, 0.369000f,
true);
100 shape.
addVertex(0, 0.090000f, 0.419000f,
false);
101 shape.
addVertex(0, 0.121000f, 0.454000f,
true);
104 shape.
addVertex(0, 0.153000f, 0.490000f,
false);
105 shape.
addVertex(0, 0.196000f, 0.509000f,
true);
108 shape.
addVertex(0, 0.239000f, 0.529000f,
false);
109 shape.
addVertex(0, 0.291000f, 0.529000f,
true);
112 shape.
addVertex(0, 0.343000f, 0.529000f,
false);
113 shape.
addVertex(0, 0.386000f, 0.510000f,
true);
116 shape.
addVertex(0, 0.429000f, 0.490000f,
false);
117 shape.
addVertex(0, 0.460000f, 0.455000f,
true);
120 shape.
addVertex(0, 0.492000f, 0.419000f,
false);
121 shape.
addVertex(0, 0.509000f, 0.369000f,
true);
124 shape.
addVertex(0, 0.527000f, 0.319000f,
false);
125 shape.
addVertex(0, 0.527000f, 0.258000f,
true);
135 shape.
addVertex(0.527000f, 0.258000f,
true);
138 shape.
addVertex(0.527000f, 0.197000f,
false);
139 shape.
addVertex(0.510000f, 0.147000f,
true);
142 shape.
addVertex(0.492000f, 0.097000f,
false);
143 shape.
addVertex(0.461000f, 0.062000f,
true);
146 shape.
addVertex(0.429000f, 0.027000f,
false);
147 shape.
addVertex(0.386000f, 0.008000f,
true);
150 shape.
addVertex(0.343000f, -0.012000f,
false);
151 shape.
addVertex(0.291000f, -0.012000f,
true);
154 shape.
addVertex(0.239000f, -0.012000f,
false);
155 shape.
addVertex(0.196000f, 0.007000f,
true);
158 shape.
addVertex(0.153000f, 0.027000f,
false);
159 shape.
addVertex(0.122000f, 0.062000f,
true);
162 shape.
addVertex(0.090000f, 0.097000f,
false);
163 shape.
addVertex(0.073000f, 0.147000f,
true);
166 shape.
addVertex(0.055000f, 0.197000f,
false);
167 shape.
addVertex(0.055000f, 0.258000f,
true);
170 shape.
addVertex(0.055000f, 0.319000f,
false);
171 shape.
addVertex(0.072000f, 0.369000f,
true);
174 shape.
addVertex(0.090000f, 0.419000f,
false);
175 shape.
addVertex(0.121000f, 0.454000f,
true);
178 shape.
addVertex(0.153000f, 0.490000f,
false);
179 shape.
addVertex(0.196000f, 0.509000f,
true);
182 shape.
addVertex(0.239000f, 0.529000f,
false);
183 shape.
addVertex(0.291000f, 0.529000f,
true);
186 shape.
addVertex(0.343000f, 0.529000f,
false);
187 shape.
addVertex(0.386000f, 0.510000f,
true);
190 shape.
addVertex(0.429000f, 0.490000f,
false);
191 shape.
addVertex(0.460000f, 0.455000f,
true);
194 shape.
addVertex(0.492000f, 0.419000f,
false);
195 shape.
addVertex(0.509000f, 0.369000f,
true);
198 shape.
addVertex(0.527000f, 0.319000f,
false);
199 shape.
addVertex(0.527000f, 0.258000f,
true);
213 shape.
addVertex(0, 0.458000f, 0.258000f,
true);
216 shape.
addVertex(0, 0.458000f, 0.355000f,
false);
217 shape.
addVertex(0, 0.413000f, 0.412000f,
true);
220 shape.
addVertex(0, 0.368000f, 0.470000f,
false);
221 shape.
addVertex(0, 0.291000f, 0.470000f,
true);
224 shape.
addVertex(0, 0.214000f, 0.470000f,
false);
225 shape.
addVertex(0, 0.169000f, 0.413000f,
true);
228 shape.
addVertex(0, 0.124000f, 0.355000f,
false);
229 shape.
addVertex(0, 0.124000f, 0.258000f,
true);
232 shape.
addVertex(0, 0.124000f, 0.161000f,
false);
233 shape.
addVertex(0, 0.169000f, 0.104000f,
true);
236 shape.
addVertex(0, 0.214000f, 0.047000f,
false);
237 shape.
addVertex(0, 0.291000f, 0.047000f,
true);
240 shape.
addVertex(0, 0.368000f, 0.047000f,
false);
241 shape.
addVertex(0, 0.413000f, 0.104000f,
true);
244 shape.
addVertex(0, 0.458000f, 0.161000f,
false);
245 shape.
addVertex(0, 0.458000f, 0.258000f,
true);
256 shape.
addVertex(0.458000f, 0.258000f,
true);
259 shape.
addVertex(0.458000f, 0.355000f,
false);
260 shape.
addVertex(0.413000f, 0.412000f,
true);
263 shape.
addVertex(0.368000f, 0.470000f,
false);
264 shape.
addVertex(0.291000f, 0.470000f,
true);
267 shape.
addVertex(0.214000f, 0.470000f,
false);
268 shape.
addVertex(0.169000f, 0.413000f,
true);
271 shape.
addVertex(0.124000f, 0.355000f,
false);
272 shape.
addVertex(0.124000f, 0.258000f,
true);
275 shape.
addVertex(0.124000f, 0.161000f,
false);
276 shape.
addVertex(0.169000f, 0.104000f,
true);
279 shape.
addVertex(0.214000f, 0.047000f,
false);
280 shape.
addVertex(0.291000f, 0.047000f,
true);
283 shape.
addVertex(0.368000f, 0.047000f,
false);
284 shape.
addVertex(0.413000f, 0.104000f,
true);
287 shape.
addVertex(0.458000f, 0.161000f,
false);
288 shape.
addVertex(0.458000f, 0.258000f,
true);
306 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 setWindingOfLastOutline(final Winding enforced)
Sets the enforced Winding of the getLastOutline().
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.
Glyph01UbuntuLight_o(final int renderModes)
void addShapeToRegion(final GLProfile glp, final GL2ES2 gl)
Winding direction, either clockwise (CW) or counter-clockwise (CCW).
CCW
Counter-Clockwise (CCW) positive winding direction.