public class AxisRenderer3D extends AxisRenderer<float[]> implements DataUnitsTransformer<float[],Double,Double>
config
Constructor and Description |
---|
AxisRenderer3D()
Default constructor sets some default axis values
|
Modifier and Type | Method and Description |
---|---|
Double |
calculatePosition(Double units)
For a given coordinate in the units of the data, will calculate
the render coordinates
|
Double |
calculateUnitsAt(Double position)
Calculates the data unit coordinate at the given render coordinates
|
void |
drawAxis(AxisConfig<float[]> config)
Draw the major axis
|
void |
drawAxisLabel(AxisConfig<float[]> config)
Draw the axis label
|
void |
drawMajorTick(double location,
AxisConfig<float[]> config)
Draw a tick on the axis at the given location
|
void |
drawMajorTickGridline(double location,
AxisConfig<float[]> config)
Draw a major grid line on the vis
|
void |
drawMinorTick(double location,
AxisConfig<float[]> config)
Draw a minor tick on the axis
|
void |
drawMinorTickGridline(double location,
AxisConfig<float[]> config)
Draw a minor grid on the vis
|
Double |
scaleDimension(Double dimension)
Given a specific data dimension, calculates a render dimension.
|
void |
setGLAD(javax.media.opengl.GLAutoDrawable glad) |
void |
setGridDirection(int i) |
getConfig, nearestHigherMajorTick, nearestLowerMajorTick, precalc, renderAxis, setConfig
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
precalc
public AxisRenderer3D()
public void drawAxis(AxisConfig<float[]> config)
AxisRenderer
drawAxis
in class AxisRenderer<float[]>
config
- The axis configurationpublic void drawAxisLabel(AxisConfig<float[]> config)
AxisRenderer
drawAxisLabel
in class AxisRenderer<float[]>
config
- The axis configurationpublic void drawMajorTick(double location, AxisConfig<float[]> config)
AxisRenderer
drawMajorTick
in class AxisRenderer<float[]>
location
- The location (in data units)config
- The configpublic void drawMajorTickGridline(double location, AxisConfig<float[]> config)
AxisRenderer
drawMajorTickGridline
in class AxisRenderer<float[]>
location
- The location (in data units)config
- The configpublic void drawMinorTick(double location, AxisConfig<float[]> config)
AxisRenderer
drawMinorTick
in class AxisRenderer<float[]>
location
- The location (in data units)config
- The configurationpublic void drawMinorTickGridline(double location, AxisConfig<float[]> config)
AxisRenderer
drawMinorTickGridline
in class AxisRenderer<float[]>
location
- The location (in data units)config
- The axis configurationpublic void setGLAD(javax.media.opengl.GLAutoDrawable glad)
glad
- public Double calculatePosition(Double units)
DataUnitsTransformer
calculatePosition
in interface DataUnitsTransformer<float[],Double,Double>
units
- The unit to convert to render coordinatespublic Double calculateUnitsAt(Double position)
DataUnitsTransformer
calculateUnitsAt
in interface DataUnitsTransformer<float[],Double,Double>
position
- The data rendered position to convertpublic void setGridDirection(int i)
i
- public Double scaleDimension(Double dimension)
DataUnitsTransformer
scaleDimension
in interface DataUnitsTransformer<float[],Double,Double>
dimension
- The units/data dimension