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;
46 @SuppressWarnings(
"unused")
62 shape.
addVertex(0, 0.326000f, 0.169000f,
true);
65 shape.
addVertex(0, 0.280000f, 0.169000f,
true);
73 shape.
addVertex(0, 0.121000f, 0.522000f,
true);
81 shape.
addVertex(0, 0.113000f, 0.522000f,
true);
89 shape.
addVertex(0, 0.113000f, 0.041000f,
true);
97 shape.
addVertex(0, 0.187000f, 0.041000f,
true);
105 shape.
addVertex(0, 0.215000f, 0.041000f,
false);
106 shape.
addVertex(0, 0.215000f, 0.021000f,
true);
114 shape.
addVertex(0, 0.215000f, 0.000000f,
false);
115 shape.
addVertex(0, 0.187000f, 0.000000f,
true);
123 shape.
addVertex(0, 0.038000f, 0.000000f,
true);
131 shape.
addVertex(0, 0.011000f, 0.000000f,
false);
132 shape.
addVertex(0, 0.011000f, 0.021000f,
true);
140 shape.
addVertex(0, 0.011000f, 0.041000f,
false);
141 shape.
addVertex(0, 0.038000f, 0.041000f,
true);
149 shape.
addVertex(0, 0.072000f, 0.041000f,
true);
157 shape.
addVertex(0, 0.072000f, 0.522000f,
true);
165 shape.
addVertex(0, 0.047000f, 0.522000f,
true);
173 shape.
addVertex(0, 0.020000f, 0.522000f,
false);
174 shape.
addVertex(0, 0.020000f, 0.543000f,
true);
182 shape.
addVertex(0, 0.020000f, 0.563000f,
false);
183 shape.
addVertex(0, 0.047000f, 0.563000f,
true);
191 shape.
addVertex(0, 0.146000f, 0.563000f,
true);
199 shape.
addVertex(0, 0.303000f, 0.215000f,
true);
207 shape.
addVertex(0, 0.457000f, 0.563000f,
true);
215 shape.
addVertex(0, 0.557000f, 0.563000f,
true);
223 shape.
addVertex(0, 0.584000f, 0.563000f,
false);
224 shape.
addVertex(0, 0.584000f, 0.543000f,
true);
232 shape.
addVertex(0, 0.584000f, 0.522000f,
false);
233 shape.
addVertex(0, 0.557000f, 0.522000f,
true);
241 shape.
addVertex(0, 0.532000f, 0.522000f,
true);
249 shape.
addVertex(0, 0.532000f, 0.041000f,
true);
257 shape.
addVertex(0, 0.566000f, 0.041000f,
true);
265 shape.
addVertex(0, 0.593000f, 0.041000f,
false);
266 shape.
addVertex(0, 0.593000f, 0.021000f,
true);
274 shape.
addVertex(0, 0.593000f, 0.000000f,
false);
275 shape.
addVertex(0, 0.566000f, 0.000000f,
true);
283 shape.
addVertex(0, 0.417000f, 0.000000f,
true);
291 shape.
addVertex(0, 0.390000f, 0.000000f,
false);
292 shape.
addVertex(0, 0.390000f, 0.021000f,
true);
300 shape.
addVertex(0, 0.390000f, 0.041000f,
false);
301 shape.
addVertex(0, 0.417000f, 0.041000f,
true);
309 shape.
addVertex(0, 0.491000f, 0.041000f,
true);
317 shape.
addVertex(0, 0.491000f, 0.522000f,
true);
325 shape.
addVertex(0, 0.483000f, 0.522000f,
true);
333 shape.
addVertex(0, 0.326000f, 0.169000f,
true);
349 shape.
addVertex(0, 0.326000f, 0.169000f,
true);
352 shape.
addVertex(0, 0.280000f, 0.169000f,
true);
360 shape.
addVertex(0, 0.121000f, 0.522000f,
true);
368 shape.
addVertex(0, 0.113000f, 0.522000f,
true);
376 shape.
addVertex(0, 0.113000f, 0.041000f,
true);
384 shape.
addVertex(0, 0.187000f, 0.041000f,
true);
392 shape.
addVertex(0, 0.215000f, 0.041000f,
true);
393 shape.
addVertex(0, 0.215000f, 0.021000f,
true);
401 shape.
addVertex(0, 0.215000f, 0.000000f,
true);
402 shape.
addVertex(0, 0.187000f, 0.000000f,
true);
410 shape.
addVertex(0, 0.038000f, 0.000000f,
true);
418 shape.
addVertex(0, 0.011000f, 0.000000f,
true);
419 shape.
addVertex(0, 0.011000f, 0.021000f,
true);
427 shape.
addVertex(0, 0.011000f, 0.041000f,
true);
428 shape.
addVertex(0, 0.038000f, 0.041000f,
true);
436 shape.
addVertex(0, 0.072000f, 0.041000f,
true);
444 shape.
addVertex(0, 0.072000f, 0.522000f,
true);
452 shape.
addVertex(0, 0.047000f, 0.522000f,
true);
460 shape.
addVertex(0, 0.020000f, 0.522000f,
true);
461 shape.
addVertex(0, 0.020000f, 0.543000f,
true);
469 shape.
addVertex(0, 0.020000f, 0.563000f,
true);
470 shape.
addVertex(0, 0.047000f, 0.563000f,
true);
478 shape.
addVertex(0, 0.146000f, 0.563000f,
true);
486 shape.
addVertex(0, 0.303000f, 0.215000f,
true);
494 shape.
addVertex(0, 0.457000f, 0.563000f,
true);
502 shape.
addVertex(0, 0.557000f, 0.563000f,
true);
510 shape.
addVertex(0, 0.584000f, 0.563000f,
true);
511 shape.
addVertex(0, 0.584000f, 0.543000f,
true);
519 shape.
addVertex(0, 0.584000f, 0.522000f,
true);
520 shape.
addVertex(0, 0.557000f, 0.522000f,
true);
528 shape.
addVertex(0, 0.532000f, 0.522000f,
true);
536 shape.
addVertex(0, 0.532000f, 0.041000f,
true);
544 shape.
addVertex(0, 0.566000f, 0.041000f,
true);
552 shape.
addVertex(0, 0.593000f, 0.041000f,
true);
553 shape.
addVertex(0, 0.593000f, 0.021000f,
true);
561 shape.
addVertex(0, 0.593000f, 0.000000f,
true);
562 shape.
addVertex(0, 0.566000f, 0.000000f,
true);
570 shape.
addVertex(0, 0.417000f, 0.000000f,
true);
578 shape.
addVertex(0, 0.390000f, 0.000000f,
true);
579 shape.
addVertex(0, 0.390000f, 0.021000f,
true);
587 shape.
addVertex(0, 0.390000f, 0.041000f,
true);
588 shape.
addVertex(0, 0.417000f, 0.041000f,
true);
596 shape.
addVertex(0, 0.491000f, 0.041000f,
true);
604 shape.
addVertex(0, 0.491000f, 0.522000f,
true);
612 shape.
addVertex(0, 0.483000f, 0.522000f,
true);
620 shape.
addVertex(0, 0.326000f, 0.169000f,
true);
624 final boolean with_left_leg =
true;
625 final boolean with_right_leg =
true;
637 shape.
addVertex(0, 0.326000f, 0.169000f,
true);
640 shape.
addVertex(0, 0.280000f, 0.169000f,
true);
648 shape.
addVertex(0, 0.121000f, 0.522000f,
true);
657 shape.
addVertex(0, 0.113000f, 0.522000f,
true);
659 if( with_left_leg ) {
669 shape.
addVertex(0, 0.113000f, 0.000000f,
true);
670 shape.
addVertex(0, 0.072000f, 0.000000f,
true);
690 shape.
addVertex(0, 0.072000f, 0.563000f,
true);
692 shape.
addVertex(0, 0.113000f, 0.563000f,
true);
702 shape.
addVertex(0, 0.146000f, 0.563000f,
true);
710 shape.
addVertex(0, 0.303000f, 0.215000f,
true);
718 shape.
addVertex(0, 0.457000f, 0.563000f,
true);
720 if( with_right_leg ) {
721 shape.
addVertex(0, 0.532000f, 0.563000f,
true);
730 shape.
addVertex(0, 0.532000f, 0.522000f,
true);
740 shape.
addVertex(0, 0.532000f, 0.000000f,
true);
741 shape.
addVertex(0, 0.491000f, 0.000000f,
true);
743 shape.
addVertex(0, 0.491000f, 0.563000f,
true);
762 shape.
addVertex(0, 0.491000f, 0.522000f,
true);
770 shape.
addVertex(0, 0.483000f, 0.522000f,
true);
778 shape.
addVertex(0, 0.326000f, 0.169000f,
true);
785 shape.
print(System.err);
795 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.
void print(final PrintStream out)
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.
void addShapeToRegion(final GLProfile glp, final GL2ES2 gl)
Glyph03FreeMonoRegular_M(final int renderModes)