28package com.jogamp.graph.ui;
30import java.util.Collection;
33import com.jogamp.math.Matrix4f;
34import com.jogamp.math.geom.AABBox;
35import com.jogamp.math.util.PMVMatrix4f;
36import com.jogamp.opengl.GL2ES2;
37import com.jogamp.graph.curve.opengl.RegionRenderer;
Generic Shape, potentially using a Graph via GraphShape or other means of representing content.
Basic 4x4 float matrix implementation using fields for intensive use-cases (host operations).
Axis Aligned Bounding Box.
PMVMatrix4f implements the basic computer graphics Matrix4f pack using projection (P),...
Container interface of UI Shapes.
void setPMvCullingEnabled(final boolean v)
Enable or disable Project-Modelview (PMv) frustum culling per Shape for this container.
void removeAllShapes(final GL2ES2 gl, final RegionRenderer renderer)
Removes all contained shapes with Shape#destroy(GL2ES2, RegionRenderer).
int getShapeCount()
Returns number of Shapes, see getShapes().
Shape removeShape(final Shape s)
Removes given shape, w/o Shape#destroy(GL2ES2, RegionRenderer).
boolean isOutside2(final Matrix4f mvCont, final Shape shape, final PMVMatrix4f pmvShape)
Returns whether the given Shape is completely outside of this container.
boolean removeShape(final GL2ES2 gl, final RegionRenderer renderer, final Shape s)
Removes given shape with Shape#destroy(GL2ES2, RegionRenderer), if contained.
boolean isOutside(final PMVMatrix4f pmv, final Shape shape)
Returns whether the given Shape is completely outside of this container.
void removeShapes(Collection<? extends Shape > shapes)
Removes all given shapes, w/o Shape#destroy(GL2ES2, RegionRenderer).
List< Shape > getRenderedShapes()
Returns added shapes which are rendered and sorted by z-axis in ascending order toward z-near.
boolean isCullingEnabled()
Return whether Project-Modelview (PMv) frustum culling or Group's Modelview (Mv) frustum clipping is ...
List< Shape > getShapes()
Returns added Shapes.
Shape getShapeByName(final String name)
void removeShapes(final GL2ES2 gl, final RegionRenderer renderer, final Collection<? extends Shape > shapes)
Removes all given shapes with Shape#destroy(GL2ES2, RegionRenderer).
Shape getShapeByID(final int id)
boolean contains(Shape s)
AABBox getBounds(final PMVMatrix4f pmv, Shape shape)
Returns AABBox dimension of given Shape from this container's perspective, i.e.
void addShape(Shape s)
Adds a Shape.
Shape getShapeByIdx(final int id)
boolean isPMvCullingEnabled()
Return whether Project-Modelview (PMv) frustum culling is enabled for this container.
void addShapes(Collection<? extends Shape > shapes)