Package org.jzy3d.plot3d.primitives
Class EmulGLDrawableImage
- java.lang.Object
-
- org.jzy3d.plot3d.primitives.Drawable
-
- org.jzy3d.plot3d.primitives.DrawableImage
-
- org.jzy3d.plot3d.primitives.EmulGLDrawableImage
-
- All Implemented Interfaces:
IGLRenderer,ISortableDraw
public class EmulGLDrawableImage extends DrawableImage
Renders an image at the specified 3d position. The equivalent ofDrawableTexture.
-
-
Field Summary
Fields Modifier and Type Field Description static intDEFAULT_IMG_HEIGHTstatic intDEFAULT_IMG_WIDTHprotected BufferedImageimageprotected Coord3dposition-
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 EmulGLDrawableImage(BufferedImage image)EmulGLDrawableImage(BufferedImage image, Coord3d position)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidapplyGeometryTransform(Transform transform)voiddraw(IPainter painter)Call OpenGL2 routines for rendering the object.static BufferedImagegetImage(Shape shape)static BufferedImagegetImage(Shape shape, int width, int height)static BufferedImagegetImage(Shape shape, int width, int height, int imageType, Color color)static BufferedImagegetImage(Shape shape, int width, int height, Color color)Coord3dgetPosition()voidsetPosition(Coord3d position)voidupdateBounds()-
Methods inherited from class org.jzy3d.plot3d.primitives.Drawable
addDrawableListener, dispose, doDrawBoundsIfDisplayed, 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
-
-
-
-
Field Detail
-
image
protected BufferedImage image
-
position
protected Coord3d position
-
DEFAULT_IMG_WIDTH
public static int DEFAULT_IMG_WIDTH
-
DEFAULT_IMG_HEIGHT
public static int DEFAULT_IMG_HEIGHT
-
-
Constructor Detail
-
EmulGLDrawableImage
public EmulGLDrawableImage(BufferedImage image)
-
EmulGLDrawableImage
public EmulGLDrawableImage(BufferedImage image, Coord3d position)
-
-
Method Detail
-
draw
public void draw(IPainter painter)
Description copied from class:DrawableCall OpenGL2 routines for rendering the object.- Specified by:
drawin interfaceIGLRenderer- Specified by:
drawin classDrawable
-
applyGeometryTransform
public void applyGeometryTransform(Transform transform)
- Specified by:
applyGeometryTransformin classDrawable
-
updateBounds
public void updateBounds()
- Specified by:
updateBoundsin classDrawable
-
getPosition
public Coord3d getPosition()
-
setPosition
public void setPosition(Coord3d position)
-
getImage
public static BufferedImage getImage(Shape shape)
-
getImage
public static BufferedImage getImage(Shape shape, int width, int height)
-
getImage
public static BufferedImage getImage(Shape shape, int width, int height, Color color)
-
getImage
public static BufferedImage getImage(Shape shape, int width, int height, int imageType, Color color)
-
-