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.450000f, -0.013000f,
true);
58 shape.
addVertex(0, 0.386000f, -0.013000f,
false);
59 shape.
addVertex(0, 0.353000f, 0.018000f,
true);
62 shape.
addVertex(0, 0.319000f, 0.049000f,
false);
63 shape.
addVertex(0, 0.307000f, 0.118000f,
true);
66 shape.
addVertex(0, 0.265000f, 0.049000f,
false);
67 shape.
addVertex(0, 0.225000f, 0.019000f,
true);
70 shape.
addVertex(0, 0.184000f, -0.012000f,
false);
71 shape.
addVertex(0, 0.134000f, -0.012000f,
true);
74 shape.
addVertex(0, 0.085000f, -0.012000f,
false);
75 shape.
addVertex(0, 0.053000f, 0.021000f,
true);
78 shape.
addVertex(0, 0.020000f, 0.055000f,
false);
79 shape.
addVertex(0, 0.020000f, 0.106000f,
true);
82 shape.
addVertex(0, 0.020000f, 0.185000f,
false);
83 shape.
addVertex(0, 0.062000f, 0.269000f,
true);
86 shape.
addVertex(0, 0.105000f, 0.353000f,
false);
87 shape.
addVertex(0, 0.170000f, 0.407000f,
true);
90 shape.
addVertex(0, 0.235000f, 0.462000f,
false);
91 shape.
addVertex(0, 0.296000f, 0.462000f,
true);
94 shape.
addVertex(0, 0.328000f, 0.462000f,
false);
95 shape.
addVertex(0, 0.346000f, 0.448000f,
true);
98 shape.
addVertex(0, 0.364000f, 0.433000f,
false);
99 shape.
addVertex(0, 0.377000f, 0.396000f,
true);
102 shape.
addVertex(0, 0.395000f, 0.454000f,
true);
105 shape.
addVertex(0, 0.498000f, 0.459000f,
true);
108 shape.
addVertex(0, 0.478000f, 0.394000f,
true);
111 shape.
addVertex(0, 0.510000f, 0.431000f,
false);
112 shape.
addVertex(0, 0.535000f, 0.445000f,
true);
115 shape.
addVertex(0, 0.561000f, 0.459000f,
false);
116 shape.
addVertex(0, 0.598000f, 0.459000f,
true);
119 shape.
addVertex(0, 0.645000f, 0.459000f,
false);
120 shape.
addVertex(0, 0.671000f, 0.436000f,
true);
123 shape.
addVertex(0, 0.698000f, 0.413000f,
false);
124 shape.
addVertex(0, 0.698000f, 0.372000f,
true);
127 shape.
addVertex(0, 0.698000f, 0.310000f,
false);
128 shape.
addVertex(0, 0.639000f, 0.263000f,
true);
131 shape.
addVertex(0, 0.579000f, 0.215000f,
false);
132 shape.
addVertex(0, 0.470000f, 0.190000f,
true);
135 shape.
addVertex(0, 0.431000f, 0.181000f,
true);
138 shape.
addVertex(0, 0.426000f, 0.156000f,
false);
139 shape.
addVertex(0, 0.426000f, 0.134000f,
true);
142 shape.
addVertex(0, 0.426000f, 0.096000f,
false);
143 shape.
addVertex(0, 0.444000f, 0.073000f,
true);
146 shape.
addVertex(0, 0.462000f, 0.050000f,
false);
147 shape.
addVertex(0, 0.493000f, 0.050000f,
true);
150 shape.
addVertex(0, 0.565000f, 0.050000f,
false);
151 shape.
addVertex(0, 0.616000f, 0.139000f,
true);
154 shape.
addVertex(0, 0.644000f, 0.122000f,
true);
157 shape.
addVertex(0, 0.578000f, -0.013000f,
false);
158 shape.
addVertex(0, 0.450000f, -0.013000f,
true);
166 shape.
addVertex(0, 0.194000f, 0.058000f,
true);
169 shape.
addVertex(0, 0.238000f, 0.058000f,
false);
170 shape.
addVertex(0, 0.278000f, 0.122000f,
true);
173 shape.
addVertex(0, 0.319000f, 0.187000f,
false);
174 shape.
addVertex(0, 0.338000f, 0.256000f,
true);
177 shape.
addVertex(0, 0.358000f, 0.326000f,
false);
178 shape.
addVertex(0, 0.358000f, 0.363000f,
true);
181 shape.
addVertex(0, 0.358000f, 0.387000f,
false);
182 shape.
addVertex(0, 0.345000f, 0.403000f,
true);
185 shape.
addVertex(0, 0.331000f, 0.419000f,
false);
186 shape.
addVertex(0, 0.310000f, 0.419000f,
true);
189 shape.
addVertex(0, 0.267000f, 0.419000f,
false);
190 shape.
addVertex(0, 0.227000f, 0.356000f,
true);
193 shape.
addVertex(0, 0.187000f, 0.293000f,
false);
194 shape.
addVertex(0, 0.167000f, 0.225000f,
true);
197 shape.
addVertex(0, 0.146000f, 0.156000f,
false);
198 shape.
addVertex(0, 0.146000f, 0.119000f,
true);
201 shape.
addVertex(0, 0.146000f, 0.092000f,
false);
202 shape.
addVertex(0, 0.159000f, 0.075000f,
true);
205 shape.
addVertex(0, 0.172000f, 0.058000f,
false);
206 shape.
addVertex(0, 0.194000f, 0.058000f,
true);
220 shape.
addVertex(0, 0.438000f, 0.214000f,
true);
223 shape.
addVertex(0, 0.498000f, 0.223000f,
false);
224 shape.
addVertex(0, 0.553000f, 0.271000f,
true);
232 shape.
addVertex(0, 0.608000f, 0.320000f,
false);
233 shape.
addVertex(0, 0.608000f, 0.388000f,
true);
241 shape.
addVertex(0, 0.608000f, 0.429000f,
false);
242 shape.
addVertex(0, 0.575000f, 0.429000f,
true);
250 shape.
addVertex(0, 0.502000f, 0.429000f,
false);
251 shape.
addVertex(0, 0.443000f, 0.231000f,
true);
259 shape.
addVertex(0, 0.438000f, 0.214000f,
true);
277 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.
Glyph05FreeSerifBoldItalic_ae(final int renderModes)
void addShapeToRegion(final GLProfile glp, final GL2ES2 gl)