Package org.jzy3d.plot3d.primitives.vbo
Class ShaderMeshDrawableVBO
- java.lang.Object
-
- org.jzy3d.plot3d.primitives.Drawable
-
- org.jzy3d.plot3d.primitives.vbo.drawable.DrawableVBO
-
- org.jzy3d.plot3d.primitives.vbo.ShaderMeshDrawableVBO
-
- All Implemented Interfaces:
IMultiColorable
,IGLBindedResource
,IGLRenderer
,ISortableDraw
public class ShaderMeshDrawableVBO extends DrawableVBO implements IMultiColorable
-
-
Field Summary
-
Fields inherited from class org.jzy3d.plot3d.primitives.vbo.drawable.DrawableVBO
arrayName, byteOffset, color, colorChannelNumber, dimensions, elementName, geometry, hasMountedOnce, loader, normalOffset, pointer, polygonMode, polygonOffsetFactor, polygonOffsetFillEnable, polygonOffsetUnit, quality, size, width
-
Fields inherited from class org.jzy3d.plot3d.primitives.Drawable
bbox, boundingBoxColor, boundingBoxDisplayed, displayed, hasListeners, legend, legendDisplayed, listeners, spaceTransformer, transform, transformBefore
-
-
Constructor Summary
Constructors Constructor Description ShaderMeshDrawableVBO(ShaderMeshVBOBuilder loader, ColorMapper mapper)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
configure(IPainter painter, com.jogamp.opengl.GL gl)
void
dispose()
Performs all required operation to cleanup the Drawable.void
draw(IPainter painter)
Call OpenGL2 routines for rendering the object.ColorMapper
getColorMapper()
Get the colormapper.void
mount(IPainter painter)
Mount resources to gl contextprotected void
pointers(com.jogamp.opengl.GL gl)
void
setColorMapper(ColorMapper mapper)
Set the colormapper that will be used by the Drawable, instead of using precomputed colors.-
Methods inherited from class org.jzy3d.plot3d.primitives.vbo.drawable.DrawableVBO
applyGeometryTransform, applyPolygonModeFillGL2, applyQuality, applyVertices, applyWidth, color, disable, disableColor, doBindGL2, doConfigure, doConfigure, doDrawElements, doLoadArrayFloatBuffer, doLoadArrayFloatBuffer, doLoadElementIntBuffer, doLoadElementIntBuffer, doSetBoundingBox, enable, getColor, getGeometry, getPolygonMode, getPolygonOffsetFactor, getPolygonOffsetUnit, getQuality, getWidth, hasMountedOnce, isHasColorBuffer, isPolygonOffsetFillEnable, polygonOffseFillEnable, polygonOffsetFillDisable, rotator, rotator, rotator, setColor, setData, setData, setData, setGeometry, setHasColorBuffer, setPolygonMode, setPolygonOffsetFactor, setPolygonOffsetFillEnable, setPolygonOffsetUnit, setQuality, setWidth, updateBounds
-
Methods inherited from class org.jzy3d.plot3d.primitives.Drawable
addDrawableListener, asWireframeable, doDrawBoundsIfDisplayed, doTransform, fireDrawableChanged, fireDrawableChanged, getBarycentre, getBoundingBoxColor, getBounds, getDistance, getLegend, getLongestDistance, getShortestDistance, getSpaceTransformer, getTransform, getTransformBefore, hasLegend, isBoundingBoxDisplayed, isDisplayed, isLegendDisplayed, removeDrawableListener, setBoundingBoxColor, setBoundingBoxDisplayed, setDisplayed, setLegend, setLegendDisplayed, setSpaceTransformer, setTransform, setTransformBefore, toString, toString
-
-
-
-
Constructor Detail
-
ShaderMeshDrawableVBO
public ShaderMeshDrawableVBO(ShaderMeshVBOBuilder loader, ColorMapper mapper)
-
-
Method Detail
-
draw
public void draw(IPainter painter)
Description copied from class:Drawable
Call OpenGL2 routines for rendering the object.- Specified by:
draw
in interfaceIGLRenderer
- Overrides:
draw
in classDrawableVBO
-
mount
public void mount(IPainter painter)
Description copied from interface:IGLBindedResource
Mount resources to gl context- Specified by:
mount
in interfaceIGLBindedResource
- Overrides:
mount
in classDrawableVBO
-
dispose
public void dispose()
Description copied from class:Drawable
Performs all required operation to cleanup the Drawable.
-
pointers
protected void pointers(com.jogamp.opengl.GL gl)
- Overrides:
pointers
in classDrawableVBO
-
configure
protected void configure(IPainter painter, com.jogamp.opengl.GL gl)
- Overrides:
configure
in classDrawableVBO
-
getColorMapper
public ColorMapper getColorMapper()
Description copied from interface:IMultiColorable
Get the colormapper.- Specified by:
getColorMapper
in interfaceIMultiColorable
-
setColorMapper
public void setColorMapper(ColorMapper mapper)
Description copied from interface:IMultiColorable
Set the colormapper that will be used by the Drawable, instead of using precomputed colors.- Specified by:
setColorMapper
in interfaceIMultiColorable
-
-