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 int
DEFAULT_IMG_HEIGHT
static int
DEFAULT_IMG_WIDTH
protected BufferedImage
image
protected Coord3d
position
-
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 void
applyGeometryTransform(Transform transform)
void
draw(IPainter painter)
Call OpenGL2 routines for rendering the object.static BufferedImage
getImage(Shape shape)
static BufferedImage
getImage(Shape shape, int width, int height)
static BufferedImage
getImage(Shape shape, int width, int height, int imageType, Color color)
static BufferedImage
getImage(Shape shape, int width, int height, Color color)
Coord3d
getPosition()
void
setPosition(Coord3d position)
void
updateBounds()
-
Methods inherited from class org.jzy3d.plot3d.primitives.Drawable
addDrawableListener, asWireframeable, dispose, 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
-
-
-
-
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:Drawable
Call OpenGL2 routines for rendering the object.- Specified by:
draw
in interfaceIGLRenderer
- Specified by:
draw
in classDrawable
-
applyGeometryTransform
public void applyGeometryTransform(Transform transform)
- Specified by:
applyGeometryTransform
in classDrawable
-
updateBounds
public void updateBounds()
- Specified by:
updateBounds
in 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)
-
-