public class Rectangle3DPlotter extends XYZVisualisation3D<Rectangle3D> implements ItemPlotter3D<Rectangle3D>
Modifier and Type | Class and Description |
---|---|
static class |
Rectangle3DPlotter.RectanglePlotPosition
Where the actual position of the rectangle is relative to the geometry.
|
XYZVisualisation3D.LocatedObject3D<D>
plotter
cameraPosition, data, glu, glut, window
Constructor and Description |
---|
Rectangle3DPlotter(int width,
int height)
Create a visualisation with the given size
|
Modifier and Type | Method and Description |
---|---|
void |
addRectangle(Rectangle3D rect)
Note that your rectangle may be altered at this point.
|
void |
init(javax.media.opengl.GLAutoDrawable drawable) |
static void |
main(String[] args) |
void |
plotObject(javax.media.opengl.GLAutoDrawable drawable,
XYZVisualisation3D.LocatedObject3D<Rectangle3D> object,
AxesRenderer3D renderer)
Plots a specific object to the 3D visualisation using the
AxesRenderer3D to
provide the position of the object. |
void |
renderRestarting()
Called just before a render of the visualisation is about to start.
|
getAxesRenderer, getPlotter, getxAxisColour, getxAxisName, getyAxisColour, getyAxisName, getzAxisColour, getzAxisName, isAutoScale, renderVis, setAutoScale, setPlotter, setxAxisColour, setxAxisName, setyAxisColour, setyAxisName, setzAxisColour, setzAxisName, updateVis
addAnimatedVisualisationListener, display, dispose, finalize, getVisualisationImage, isEnableLights, removeAnimatedVisualisationListener, reshape, setData, setEnableLights, setRequiredSize
public Rectangle3DPlotter(int width, int height)
width
- Width in pixels of the visheight
- Height in pixels of the vispublic void renderRestarting()
renderRestarting
in interface ItemPlotter3D<Rectangle3D>
ItemPlotter3D.renderRestarting()
public void plotObject(javax.media.opengl.GLAutoDrawable drawable, XYZVisualisation3D.LocatedObject3D<Rectangle3D> object, AxesRenderer3D renderer)
AxesRenderer3D
to
provide the position of the object. Should side affect the given image.plotObject
in interface ItemPlotter3D<Rectangle3D>
drawable
- The 3D worldobject
- The objectrenderer
- The axes rendererItemPlotter3D.plotObject(javax.media.opengl.GLAutoDrawable, org.openimaj.vis.general.XYZVisualisation3D.LocatedObject3D, org.openimaj.vis.general.AxesRenderer3D)
public void init(javax.media.opengl.GLAutoDrawable drawable)
init
in interface javax.media.opengl.GLEventListener
init
in class Visualisation3D<List<XYZVisualisation3D.LocatedObject3D<Rectangle3D>>>
public void addRectangle(Rectangle3D rect)
rect
- The rectangle.