Top Description Fields Constructors Methods
com.jogamp.graph.curve

public abstract Class Region

extends Object
Class Inheritance
Known Direct Subclasses
com.jogamp.graph.curve.opengl.GLRegion
Imports
java.util.ArrayList, .List, jogamp.graph.geom.plane.AffineTransform, jogamp.opengl.Debug, com.jogamp.graph.geom.Triangle, .Vertex, com.jogamp.graph.curve.opengl.GLRegion, com.jogamp.opengl.math.geom.AABBox, .Frustum, com.jogamp.opengl.util.texture.TextureSequence

Abstract Outline shape representation define the method an OutlineShape(s) is bound and rendered.
See Also
GLRegion

Field Summary

Modifier and TypeField and Description
protected final AABBox
public static final int
COLORCHANNEL_RENDERING_BIT

Rendering-Mode bit for Region

If set, a color channel attribute per vertex is added to the stream, otherwise only the static color is being used.

public static final int
COLORTEXTURE_RENDERING_BIT

Rendering-Mode bit for Region

If set, a color texture is used to determine the color.

pack-priv final float[]
public static final boolean
DEBUG

Debug flag for region impl (graph.curve)

public static final boolean
public static final int
private int
protected static final int
protected static final int
protected Frustum
public static final int
MAX_QUALITY

Default maximum quality, .

public static final int
MSAA_RENDERING_BIT

Rendering-Mode bit for Region

MSAA based Anti-Aliasing, a two pass region rendering, slower and more resource hungry (FBO), but providing fast MSAA in case the whole scene is not rendered with MSAA.

private int
private int
private final int
private final AABBox
public static final int
VARWEIGHT_RENDERING_BIT

Rendering-Mode bit for Region

Use non uniform weights [0.0 ..

public static final int
VBAA_RENDERING_BIT

Rendering-Mode bit for Region

View based Anti-Aliasing, a two pass region rendering, slower and more resource hungry (FBO), but AA is perfect.

Constructor Summary

AccessConstructor and Description
protected
Region(final int regionRenderModes)

Method Summary

Modifier and TypeMethod and Description
public final void
addOutlineShape(final OutlineShape shape, final AffineTransform t, final float[]
TODO
rgbaColor
)

Add the given OutlineShape to this region with the given optional AffineTransform.

public final void
addOutlineShapes(final List<OutlineShape> shapes, final AffineTransform transform, final float[] rgbaColor)

protected final void
protected void
public final AABBox

Returns:

the AxisAligned bounding box of current region
getBounds
()

protected final int
public final Frustum
public final int
public final int
getRenderModes()

Return bit-field of render modes, see GLRegion#create(int, TextureSequence).

public static String
getRenderModeString(final int renderModes)

public static boolean
hasColorChannel(final int renderModes)

Returns true if render mode has a color channel, i.e. the bit COLORCHANNEL_RENDERING_BIT is set, otherwise false.

public boolean
hasColorChannel()

Returns true if render mode has a color channel, i.e. the bit COLORCHANNEL_RENDERING_BIT is set, otherwise false.

public static boolean
hasColorTexture(final int renderModes)

Returns true if render mode has a color texture, i.e. the bit COLORTEXTURE_RENDERING_BIT is set, otherwise false.

public boolean
hasColorTexture()

Returns true if render mode has a color texture, i.e. the bit COLORTEXTURE_RENDERING_BIT is set, otherwise false.

public static boolean
hasVariableWeight(final int renderModes)

Returns true if render mode capable of variable weights, i.e. the bit VARWEIGHT_RENDERING_BIT is set, otherwise false.

public final boolean
hasVariableWeight()

Returns true if capable of variable weights, otherwise false.

public static boolean
isMSAA(final int renderModes)

public final boolean
isMSAA()

Returns true if capable of two pass rendering - MSAA, otherwise false.

public final boolean
isShapeDirty()

Returns true if this region's shape are dirty, see markShapeDirty().

public final boolean
isStateDirty()

Returns true if this region's state is dirty, see markStateDirty().

public static boolean
isTwoPass(final int renderModes)

public static boolean
isVBAA(final int renderModes)

public final boolean
isVBAA()

Returns true if capable of two pass rendering - VBAA, otherwise false.

public final void
markShapeDirty()

Mark this region's shape dirty, i.e. it's Vertices, Triangles, and or Lines changed.

public final void
markStateDirty()

Mark this region's state dirty, i.e. it's render attributes or parameters changed.

protected abstract void
pushIndex(int idx)

private void
pushNewVertexIdxImpl(final Vertex vertIn, final AffineTransform transform, final float[] rgba)

private void
pushNewVertexImpl(final Vertex vertIn, final AffineTransform transform, final float[] rgba)

protected abstract void
pushVertex(final float[] coords, final float[] texParams, float[] rgba)

public final void
public final void
setQuality(final int q)

See MAX_QUALITY

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

boxback to summary
protected final AABBox box
COLORCHANNEL_RENDERING_BITback to summary
public static final int COLORCHANNEL_RENDERING_BIT

Rendering-Mode bit for Region

If set, a color channel attribute per vertex is added to the stream, otherwise only the static color is being used.

COLORTEXTURE_RENDERING_BITback to summary
public static final int COLORTEXTURE_RENDERING_BIT

Rendering-Mode bit for Region

If set, a color texture is used to determine the color.

coordsExback to summary
pack-priv final float[] coordsEx
DEBUGback to summary
public static final boolean DEBUG

Debug flag for region impl (graph.curve)

DEBUG_INSTANCEback to summary
public static final boolean DEBUG_INSTANCE
DEFAULT_TWO_PASS_TEXTURE_UNITback to summary
public static final int DEFAULT_TWO_PASS_TEXTURE_UNIT
dirtyback to summary
private int dirty
DIRTY_SHAPEback to summary
protected static final int DIRTY_SHAPE
DIRTY_STATEback to summary
protected static final int DIRTY_STATE
frustumback to summary
protected Frustum frustum
MAX_QUALITYback to summary
public static final int MAX_QUALITY

Default maximum quality, .

MSAA_RENDERING_BITback to summary
public static final int MSAA_RENDERING_BIT

Rendering-Mode bit for Region

MSAA based Anti-Aliasing, a two pass region rendering, slower and more resource hungry (FBO), but providing fast MSAA in case the whole scene is not rendered with MSAA.

numVerticesback to summary
private int numVertices
qualityback to summary
private int quality
renderModesback to summary
private final int renderModes
tmpBoxback to summary
private final AABBox tmpBox
VARWEIGHT_RENDERING_BITback to summary
public static final int VARWEIGHT_RENDERING_BIT

Rendering-Mode bit for Region

Use non uniform weights [0.0 .. 1.9] for curve region rendering. Otherwise the default weight 1.0 for uniform curve region rendering is being applied.

VBAA_RENDERING_BITback to summary
public static final int VBAA_RENDERING_BIT

Rendering-Mode bit for Region

View based Anti-Aliasing, a two pass region rendering, slower and more resource hungry (FBO), but AA is perfect. Otherwise the default fast one pass MSAA region rendering is being used.

Constructor Detail

Regionback to summary
protected Region(final int regionRenderModes)

Method Detail

addOutlineShapeback to summary
public final void addOutlineShape(final OutlineShape shape, final AffineTransform t, final float[] rgbaColor)

Add the given OutlineShape to this region with the given optional AffineTransform.

In case frustum culling is set, the OutlineShape is dropped if it's bounding-box is fully outside of the frustum. The optional AffineTransform is applied to the bounding-box beforehand.

Parameters
rgbaColor:float[]

TODO

addOutlineShapesback to summary
public final void addOutlineShapes(final List<OutlineShape> shapes, final AffineTransform transform, final float[] rgbaColor)
clearDirtyBitsback to summary
protected final void clearDirtyBits(final int v)

See markShapeDirty() and markStateDirty().

clearImplback to summary
protected void clearImpl()
getBoundsback to summary
public final AABBox getBounds()
Returns:AABBox

the AxisAligned bounding box of current region

getDirtyBitsback to summary
protected final int getDirtyBits()
getFrustumback to summary
public final Frustum getFrustum()

See setFrustum(Frustum)

getQualityback to summary
public final int getQuality()

See MAX_QUALITY

getRenderModesback to summary
public final int getRenderModes()

Return bit-field of render modes, see GLRegion#create(int, TextureSequence).

getRenderModeStringback to summary
public static String getRenderModeString(final int renderModes)
hasColorChannelback to summary
public static boolean hasColorChannel(final int renderModes)

Returns true if render mode has a color channel, i.e. the bit COLORCHANNEL_RENDERING_BIT is set, otherwise false.

hasColorChannelback to summary
public boolean hasColorChannel()

Returns true if render mode has a color channel, i.e. the bit COLORCHANNEL_RENDERING_BIT is set, otherwise false.

hasColorTextureback to summary
public static boolean hasColorTexture(final int renderModes)

Returns true if render mode has a color texture, i.e. the bit COLORTEXTURE_RENDERING_BIT is set, otherwise false.

hasColorTextureback to summary
public boolean hasColorTexture()

Returns true if render mode has a color texture, i.e. the bit COLORTEXTURE_RENDERING_BIT is set, otherwise false.

hasVariableWeightback to summary
public static boolean hasVariableWeight(final int renderModes)

Returns true if render mode capable of variable weights, i.e. the bit VARWEIGHT_RENDERING_BIT is set, otherwise false.

hasVariableWeightback to summary
public final boolean hasVariableWeight()

Returns true if capable of variable weights, otherwise false.

isMSAAback to summary
public static boolean isMSAA(final int renderModes)
isMSAAback to summary
public final boolean isMSAA()

Returns true if capable of two pass rendering - MSAA, otherwise false.

isShapeDirtyback to summary
public final boolean isShapeDirty()

Returns true if this region's shape are dirty, see markShapeDirty().

isStateDirtyback to summary
public final boolean isStateDirty()

Returns true if this region's state is dirty, see markStateDirty().

isTwoPassback to summary
public static boolean isTwoPass(final int renderModes)
isVBAAback to summary
public static boolean isVBAA(final int renderModes)
isVBAAback to summary
public final boolean isVBAA()

Returns true if capable of two pass rendering - VBAA, otherwise false.

markShapeDirtyback to summary
public final void markShapeDirty()

Mark this region's shape dirty, i.e. it's Vertices, Triangles, and or Lines changed.

markStateDirtyback to summary
public final void markStateDirty()

Mark this region's state dirty, i.e. it's render attributes or parameters changed.

pushIndexback to summary
protected abstract void pushIndex(int idx)
pushNewVertexIdxImplback to summary
private void pushNewVertexIdxImpl(final Vertex vertIn, final AffineTransform transform, final float[] rgba)
pushNewVertexImplback to summary
private void pushNewVertexImpl(final Vertex vertIn, final AffineTransform transform, final float[] rgba)
pushVertexback to summary
protected abstract void pushVertex(final float[] coords, final float[] texParams, float[] rgba)
setFrustumback to summary
public final void setFrustum(final Frustum frustum)

Set Frustum culling for addOutlineShape(OutlineShape, AffineTransform, float[]).

setQualityback to summary
public final void setQuality(final int q)

See MAX_QUALITY

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object