public class Texture3D extends AbstractDrawable implements IGLBindedResource, IMultiColorable
bbox, boundingBoxColor, boundingBoxDisplayed, displayed, hasListeners, legend, legendDisplayed, listeners, spaceTransformer, transform, transformBefore| Constructor and Description |
|---|
Texture3D(Buffer buffer,
int[] shape,
float min,
float max,
ColorMapper mapper,
BoundingBox3d bbox) |
| Modifier and Type | Method and Description |
|---|---|
void |
applyGeometryTransform(Transform transform) |
void |
bind(com.jogamp.opengl.GL gl) |
void |
dispose()
Performs all required operation to cleanup the Drawable.
|
void |
draw(com.jogamp.opengl.GL gl,
com.jogamp.opengl.glu.GLU glu,
Camera cam)
Call OpenGL2 routines for rendering the object.
|
ColorMapper |
getColorMapper()
Get the colormapper.
|
boolean |
hasMountedOnce()
Return true if mount(...) has been called at least one time
|
void |
mount(com.jogamp.opengl.GL gl)
Mount resources to gl context
|
void |
setColorMapper(ColorMapper mapper)
Set the colormapper that will be used by the Drawable, instead of using precomputed colors.
|
void |
setMax(Number max) |
void |
setMin(Number min) |
void |
setTextureData(com.jogamp.opengl.GL gl,
Buffer buffer,
int[] shape) |
void |
updateBounds() |
addDrawableListener, call, call, callWithAlphaFactor, colorGL2, colorGLES2, doDrawBounds, doTransform, fireDrawableChanged, fireDrawableChanged, getBarycentre, getBoundingBoxColor, getBounds, getDistance, getLegend, getLongestDistance, getShortestDistance, getSpaceTransformer, getTransform, getTransformBefore, hasLegend, isBoundingBoxDisplayed, isDisplayed, isLegendDisplayed, negative, removeDrawableListener, setBoundingBoxColor, setBoundingBoxDisplayed, setDisplayed, setLegend, setLegendDisplayed, setSpaceTransformer, setTransform, setTransformBefore, toString, toString, vertexGL2, vertexGL2, vertexGLES2public Texture3D(Buffer buffer, int[] shape, float min, float max, ColorMapper mapper, BoundingBox3d bbox)
public void mount(com.jogamp.opengl.GL gl)
IGLBindedResourcemount in interface IGLBindedResourcepublic void setMin(Number min)
public void setMax(Number max)
public boolean hasMountedOnce()
IGLBindedResourcehasMountedOnce in interface IGLBindedResourcepublic void bind(com.jogamp.opengl.GL gl)
throws com.jogamp.opengl.GLException
com.jogamp.opengl.GLExceptionpublic void setTextureData(com.jogamp.opengl.GL gl,
Buffer buffer,
int[] shape)
gl - buffer - texture datashape - the dimensions of 3d texture.https://www.khronos.org/registry/OpenGL-Refpages/gl2.1/xhtml/glTexImage3D.xmlpublic void draw(com.jogamp.opengl.GL gl,
com.jogamp.opengl.glu.GLU glu,
Camera cam)
AbstractDrawabledraw in interface IGLRendererdraw in class AbstractDrawablegl - GL2 contextglu - GLU contextcam - a reference to a shooting Camera.public void applyGeometryTransform(Transform transform)
applyGeometryTransform in class AbstractDrawablepublic void dispose()
AbstractDrawabledispose in class AbstractDrawablepublic void updateBounds()
updateBounds in class AbstractDrawablepublic ColorMapper getColorMapper()
IMultiColorablegetColorMapper in interface IMultiColorablepublic void setColorMapper(ColorMapper mapper)
IMultiColorablesetColorMapper in interface IMultiColorableCopyright © 2021. All rights reserved.