public class BarVisualisation3D extends Visualisation3D<double[][]>
cameraPosition, data, glu, glut, window
Constructor and Description |
---|
BarVisualisation3D(int width,
int height) |
Modifier and Type | Method and Description |
---|---|
protected DoubleBuffer |
get2dPoint(javax.media.opengl.GL2 gl,
double x,
double y,
double z) |
CameraPositionProvider |
getCameraPosition() |
ColourMap |
getColourMap() |
Float[] |
getxAxisColour() |
String |
getxAxisName() |
Float[] |
getyAxisColour() |
String |
getyAxisName() |
Float[] |
getzAxisColour() |
String |
getzAxisName() |
void |
init(javax.media.opengl.GLAutoDrawable drawable) |
boolean |
isAutoScale() |
static void |
main(String[] args) |
protected void |
renderVis(javax.media.opengl.GLAutoDrawable drawable)
Renders the visualisation
|
void |
setAutoScale(boolean autoScale) |
void |
setCameraPosition(CameraPositionProvider cameraPosition) |
void |
setColourMap(ColourMap colourMap) |
void |
setData(double[][] data)
Set the data to display in the visualisation.
|
void |
setMaximum(double max)
Set the maximum data value
|
void |
setxAxisColour(Float[] xAxisColour) |
void |
setxAxisName(String xAxisName) |
void |
setyAxisColour(Float[] yAxisColour) |
void |
setyAxisName(String yAxisName) |
void |
setzAxisColour(Float[] zAxisColour) |
void |
setzAxisName(String zAxisName) |
void |
updateVis()
Force a redraw of the visualisation image.
|
addAnimatedVisualisationListener, display, dispose, finalize, getVisualisationImage, isEnableLights, removeAnimatedVisualisationListener, reshape, setEnableLights, setRequiredSize
public BarVisualisation3D(int width, int height)
width
- height
- public void updateVis()
VisualisationImageProvider.updateVis()
protected void renderVis(javax.media.opengl.GLAutoDrawable drawable)
renderVis
in class Visualisation3D<double[][]>
drawable
- The drawableprotected DoubleBuffer get2dPoint(javax.media.opengl.GL2 gl, double x, double y, double z)
public void init(javax.media.opengl.GLAutoDrawable drawable)
init
in interface javax.media.opengl.GLEventListener
init
in class Visualisation3D<double[][]>
GLEventListener.init(javax.media.opengl.GLAutoDrawable)
public void setData(double[][] data)
setData
in interface Visualisation<double[][]>
setData
in class Visualisation3D<double[][]>
data
- The data to displayVisualisation.setData(java.lang.Object)
public void setMaximum(double max)
max
- The maximumpublic ColourMap getColourMap()
public void setColourMap(ColourMap colourMap)
colourMap
- the colourMap to setpublic String getxAxisName()
public void setxAxisName(String xAxisName)
xAxisName
- the xAxisName to setpublic String getyAxisName()
public void setyAxisName(String yAxisName)
yAxisName
- the yAxisName to setpublic String getzAxisName()
public void setzAxisName(String zAxisName)
zAxisName
- the zAxisName to setpublic Float[] getxAxisColour()
public void setxAxisColour(Float[] xAxisColour)
xAxisColour
- the xAxisColour to setpublic Float[] getyAxisColour()
public void setyAxisColour(Float[] yAxisColour)
yAxisColour
- the yAxisColour to setpublic Float[] getzAxisColour()
public void setzAxisColour(Float[] zAxisColour)
zAxisColour
- the zAxisColour to setpublic CameraPositionProvider getCameraPosition()
public void setCameraPosition(CameraPositionProvider cameraPosition)
cameraPosition
- the cameraPosition to setpublic boolean isAutoScale()
public void setAutoScale(boolean autoScale)
autoScale
- the autoScale to set