java.lang.Object
de.grogra.graph.impl.Edge
de.grogra.graph.impl.Node
de.grogra.imp3d.objects.Null
de.grogra.imp3d.objects.ColoredNull
de.grogra.imp3d.objects.SensorNodeGrid
- All Implemented Interfaces:
Transformation,Pickable,Renderable,Manageable,PersistenceCapable,Shareable,UserFields,XObject,Map,Serializable
A 2D grid of n×m spherical
SensorNode sensors.
The grid is centred at the local origin. Cell centres are spaced evenly
across [-xDim/2, xDim/2] × [-yDim/2, yDim/2]. Every cell uses the same
radius. Per-cell colours are supported; the default is white
(sense all wavelengths).
After a light-model computation, per-cell irradiance is retrieved via
FluxLightModel.getSensedIrradianceGrid(SensorNodeGrid).- Author:
- MH at YNL 2026
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class de.grogra.graph.impl.Node
Node.AccessorBridge, Node.FieldAttributeAccessor, Node.NType -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Node.NTypeprotected booleanIf true, the light model accumulates total intercepted power [W] instead of irradiance [W m⁻²] per cell.static final Node.NType.Fieldint[]Per-cell volume IDs for the CPU raytracer (index = i*m + j).protected floatCosine-lobe exponent for directional sensitivity (0 = Lambertian).static final Node.NType.FieldintFirst GPU group index for this grid (cell (i,j) = firstGroupIndex + i*m + j).protected floatDistance between consecutive layer planes along local Z (m).static final Node.NType.Fieldprotected intNumber of sensor cells along the local Y axis.static final Node.NType.Fieldprotected intNumber of sensor cells along the local X axis.static final Node.NType.Fieldprotected intNumber of horizontal layers stacked along the local Z axis.static final Node.NType.Fieldprotected floatRadius of each spherical sensor disc (m).static final Node.NType.Fieldprotected booleanIf true each cell responds to rays arriving from both sides.static final Node.NType.Fieldprotected floatTotal extent of the grid along the local X axis (m).static final Node.NType.Fieldprotected floatTotal extent of the grid along the local Y axis (m).static final Node.NType.FieldFields inherited from class de.grogra.imp3d.objects.ColoredNull
color, color$FIELDFields inherited from class de.grogra.imp3d.objects.Null
transform, transform$FIELD, TRANSFORMING_MASK, transforming$FIELD, USED_BITSFields inherited from class de.grogra.graph.impl.Node
ADDITIONAL_FIELDS, bits, DELETED, EXPLICIT_EXTENT_INDEX, explicitExtentIndex$FIELD, EXTENT_BIT, EXTENT_MASK, extentIndex$FIELD, extentTail$FIELD, HAS_OBSERVERS, IMPORT_NODE_EXTENT_INDEX, IS_INTERPRETIVE, isInterpretive$FIELD, LAST_EXTENT_INDEX, LAST_VISIBLE_EXTENT_INDEX, layer$FIELD, MARK, mark$FIELD, MAX_RESOLUTION, MIME_TYPE, MIN_RESOLUTION, MIN_UNUSED_SPECIAL_OF_SOURCE, MIN_UNUSED_SPECIAL_OF_TARGET, name$FIELD, RESOLUTION_BIT, RESOLUTION_MASK, resolution$FIELD, TYPE_EXTENT_INDEXFields inherited from interface de.grogra.util.Map
DEFAULT_VALUE, EMPTY_MAP -
Constructor Summary
ConstructorsConstructorDescriptionCreates a white 3×3 grid with default dimensions (1 m × 1 m) and sensor radius 0.1 m in irradiance mode.SensorNodeGrid(float xDim, float yDim, int n, int m, float radius) Creates a white n×m grid spanningxDim×yDimmetres in irradiance mode.SensorNodeGrid(float xDim, float yDim, int n, int m, float radius, boolean absoluteMode) Creates a white n×m grid spanningxDim×yDimmetres with the specified measurement mode.SensorNodeGrid(float xDim, float yDim, int n, int m, float radius, boolean absoluteMode, RGBColor color) Creates an n×m grid spanningxDim×yDimmetres with the specified measurement mode and colour.SensorNodeGrid(float xDim, float yDim, int n, int m, float radius, int numberOfLayers, float layerSpacing) Creates a white n×m layered grid spanningxDim×yDimmetres in irradiance mode.SensorNodeGrid(float xDim, float yDim, int n, int m, float radius, int numberOfLayers, float layerSpacing, boolean absoluteMode) Creates a white n×m layered grid spanningxDim×yDimmetres with the specified measurement mode.SensorNodeGrid(float xDim, float yDim, int n, int m, float radius, RGBColor color) Creates an n×m grid spanningxDim×yDimmetres with the given colour.SensorNodeGrid(int n, int m, float xSpacing, float ySpacing, float radius) Creates a white n×m grid with uniform cell spacing in irradiance mode.SensorNodeGrid(int n, int m, float xSpacing, float ySpacing, float radius, boolean absoluteMode) Creates a white n×m grid with uniform cell spacing and the specified measurement mode.SensorNodeGrid(int n, int m, float xSpacing, float ySpacing, float radius, boolean absoluteMode, RGBColor color) Creates an n×m grid with uniform cell spacing, the specified measurement mode and colour.SensorNodeGrid(int n, int m, float xSpacing, float ySpacing, float radius, int numberOfLayers, float layerSpacing) Creates a white n×m layered grid with uniform cell spacing in irradiance mode.SensorNodeGrid(int n, int m, float xSpacing, float ySpacing, float radius, int numberOfLayers, float layerSpacing, boolean absoluteMode) Creates a white n×m layered grid with uniform cell spacing and the specified measurement mode.SensorNodeGrid(int n, int m, float xSpacing, float ySpacing, float radius, RGBColor color) Creates an n×m grid with uniform cell spacing and the given colour.SensorNodeGrid(RGBColor color) Creates a 3×3 grid with default dimensions and the specified spectral sensitivity colour. -
Method Summary
Modifier and TypeMethodDescriptionvoiddraw(Object object, boolean asNode, RenderState rs) voidDraws only the text labels for each cell, without drawing any 3-D geometry.floatgetCellCenterX(int i) Returns the local-space X centre of columni.floatgetCellCenterY(int j) Returns the local-space Y centre of rowj.getCellColor(int i, int j) Returns the colour of cell (i, j), or white if no per-cell colour has been assigned.getCellColorForLayer(int k, int i, int j) Returns the colour for layerk, cell (i, j).floatgetCellTransparency(int i, int j) Returns the transparency of cell (i, j) in [0, 1], where 0 = fully opaque and 1 = fully transparent.floatgetCellTransparencyForLayer(int k, int i, int j) Returns the transparency for layerk, cell (i, j) in [0, 1].floatfloatintgetM()intgetN()protected Node.NTypeThis method returns theNode.NTypewhich describes the managed fields of the class of this node.intfloatfloatgetXDim()floatgetYDim()booleanbooleanvoidlabelCell(float[][] values) Places a text label at the centre of each cell showing the value formatted to four decimal places.voidlabelCell(float[][][] values) Places a text label at the centre of each cell per layer showing the corresponding value formatted to four decimal places.floatlayerZ(int k) Returns the Z offset (in local space) of layerk.protected NodeThis method returns a new instance of the class of this node.voidComputes intersections of a given ray with this shape.voidsetAbsoluteMode(boolean value) voidsetColorCell(float[][][] rgb) Sets per-cell colours from an n×m×3 array (values in [0,1]).voidsetColorCell(float[][][][] rgb) Sets per-layer per-cell colours from a layers×n×m×3 array (values in [0,1]).voidsetColorCell(float[][][][] rgb, float transparency) Sets per-layer per-cell colours from a layers×n×m×3 array and applies a uniform transparency to all layers and cells.voidsetColorCell(float[][][][] rgb, float[][][] transparencies) Sets per-layer per-cell colours from a layers×n×m×3 array and individual per-layer per-cell transparency values.voidsetColorCell(float[][][] rgb, float transparency) Sets per-cell colours from an n×m×3 array and applies a uniform transparency to all cells.voidsetColorCell(float[][][] rgb, float[][] transparencies) Sets per-cell colours from an n×m×3 array and individual transparency values.voidsetColorCell(float[][][] values, ColorGradient gradient) Sets per-layer per-cell colours by mapping a layers×n×m scalar array through aColorGradient.voidsetColorCell(float[][][] values, ColorGradient gradient, float transparency) Sets per-layer per-cell colours by mapping a layers×n×m scalar array through aColorGradientand applies a uniform transparency to all layers and cells.voidsetColorCell(float[][][] values, ColorGradient gradient, float[][][] transparencies) Sets per-layer per-cell colours by mapping a layers×n×m scalar array through aColorGradientand individual per-layer per-cell transparency values.voidsetColorCell(float[][] values, ColorGradient gradient) Sets per-cell colours by mapping a 2D scalar array through aColorGradient.voidsetColorCell(float[][] values, ColorGradient gradient, float transparency) Sets per-cell colours by mapping a 2D scalar array through aColorGradientand applies a uniform transparency to all cells.voidsetColorCell(float[][] values, ColorGradient gradient, float[][] transparencies) Sets per-cell colours by mapping a 2D scalar array through aColorGradientand individual transparency values.voidsetExponent(float value) voidsetLayerSpacing(float value) voidsetM(int value) voidsetN(int value) voidsetNumberOfLayers(int value) voidsetRadius(float value) voidsetTwoSided(boolean value) voidsetXDim(float value) voidsetYDim(float value) Methods inherited from class de.grogra.imp3d.objects.ColoredNull
getColor, setColor, setColor, setColorMethods inherited from class de.grogra.imp3d.objects.Null
getLocalTransformation, getTransform, getTransformMatrix, getTranslation, isTransforming, postTransform, preTransform, setRotation, setScale, setTransform, setTransform, setTransform, setTransform, setTransform, setTransform, setTransform, setTransform, setTransforming, setTranslationMethods inherited from class de.grogra.graph.impl.Node
addEdgeBitsTo, addReference, appendBranchNode, appendBranchNode, appendReferencesTo, clone, clone, cloneGraph, dump, dumpTree, dup, dup, dupFrom, dupnew, dupUnmanagedFields, edgeChanged, fieldModified, findAdjacent, findRefinementType, get, getAccessor, getAccessor, getAttributes, getAxisParent, getBoolean, getBranch, getBranchLength, getBranchNode, getBranchTail, getByte, getChar, getCommonAncestor, getCurrentGraphState, getDirectChildCount, getDouble, getEdgeAttributeAccessor, getEdgeAttributes, getEdgeBitsTo, getEdgeTo, getExtentIndex, getFirst, getFirstEdge, getFloat, getGraph, getId, getIgnored, getIndex, getInstantiator, getInt, getLayer, getLong, getManageableType, getName, getNeighbor, getNext, getNType, getObject, getOrCreateEdgeTo, getOrNull, getPersistenceManager, getPredecessor, getProvider, getResolution, getShort, getSource, getStamp, getSuccessor, getSymbol, getSymbolColor, getTarget, getTransaction, getUserField, getUserFieldCount, getXClass, getXData, hasName, initProvider, initXClass, insertBranchNode, insertBranchNode, instantiateGraph, isAncestorOf, isDirection, isEncoarseOf, isExplicitExtentIndex, isManagingInstance, isMarked, isRoot, isSource, isTarget, manageableReadResolve, manageableWriteReplace, paramString, removeAll, removeEdgeBitsTo, removeFromChain, removeFromChain, removeReference, setBranch, setBranch, setExplicitExtentIndex, setExtentIndex, setGraphForDeserialization, setIgnored, setLayer, setMark, setName, setResolution, setSuccessor, setSuccessor, specialEdgeAdded, specialEdgeRefModified, specialEdgeRemoved, toString, writeReplaceMethods inherited from class de.grogra.graph.impl.Edge
addEdgeBits, getBitMark, getEdgeBits, getEdgeKeys, getObjectMark, getSpecialEdgeDescriptor, parseEdgeKeys, remove, removeEdgeBits, setBitMark, setEdgeBits, setObjectMark, testEdgeBitsMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface de.grogra.persistence.PersistenceCapable
getBitMark, getObjectMark, setBitMark, setObjectMark
-
Field Details
-
xDim
protected float xDimTotal extent of the grid along the local X axis (m). -
yDim
protected float yDimTotal extent of the grid along the local Y axis (m). -
n
protected int nNumber of sensor cells along the local X axis. -
m
protected int mNumber of sensor cells along the local Y axis. -
radius
protected float radiusRadius of each spherical sensor disc (m). -
exponent
protected float exponentCosine-lobe exponent for directional sensitivity (0 = Lambertian). -
numberOfLayers
protected int numberOfLayersNumber of horizontal layers stacked along the local Z axis. -
layerSpacing
protected float layerSpacingDistance between consecutive layer planes along local Z (m). -
twoSided
protected boolean twoSidedIf true each cell responds to rays arriving from both sides. -
absoluteMode
protected boolean absoluteModeIf true, the light model accumulates total intercepted power [W] instead of irradiance [W m⁻²] per cell. -
firstGroupIndex
public transient int firstGroupIndexFirst GPU group index for this grid (cell (i,j) = firstGroupIndex + i*m + j). -
cellVolumeIds
public transient int[] cellVolumeIdsPer-cell volume IDs for the CPU raytracer (index = i*m + j). -
$TYPE
-
xDim$FIELD
-
yDim$FIELD
-
n$FIELD
-
m$FIELD
-
radius$FIELD
-
exponent$FIELD
-
numberOfLayers$FIELD
-
layerSpacing$FIELD
-
twoSided$FIELD
-
absoluteMode$FIELD
-
-
Constructor Details
-
SensorNodeGrid
public SensorNodeGrid()Creates a white 3×3 grid with default dimensions (1 m × 1 m) and sensor radius 0.1 m in irradiance mode. -
SensorNodeGrid
public SensorNodeGrid(float xDim, float yDim, int n, int m, float radius) Creates a white n×m grid spanningxDim×yDimmetres in irradiance mode.- Parameters:
xDim- total extent of the grid along the local X axis (m)yDim- total extent of the grid along the local Y axis (m)n- number of sensor cells along Xm- number of sensor cells along Yradius- radius of each spherical sensor disc (m)
-
SensorNodeGrid
public SensorNodeGrid(int n, int m, float xSpacing, float ySpacing, float radius) Creates a white n×m grid with uniform cell spacing in irradiance mode. The total grid dimensions are derived asxDim = n * xSpacingandyDim = m * ySpacing.- Parameters:
n- number of sensor cells along Xm- number of sensor cells along YxSpacing- centre-to-centre spacing along X (m)ySpacing- centre-to-centre spacing along Y (m)radius- radius of each spherical sensor disc (m)
-
SensorNodeGrid
public SensorNodeGrid(float xDim, float yDim, int n, int m, float radius, boolean absoluteMode) Creates a white n×m grid spanningxDim×yDimmetres with the specified measurement mode.- Parameters:
xDim- total extent along the local X axis (m)yDim- total extent along the local Y axis (m)n- number of sensor cells along Xm- number of sensor cells along Yradius- radius of each spherical sensor disc (m)absoluteMode- iftrue, accumulates total intercepted power [W] instead of irradiance [W m⁻²] per cell
-
SensorNodeGrid
public SensorNodeGrid(int n, int m, float xSpacing, float ySpacing, float radius, boolean absoluteMode) Creates a white n×m grid with uniform cell spacing and the specified measurement mode.- Parameters:
n- number of sensor cells along Xm- number of sensor cells along YxSpacing- centre-to-centre spacing along X (m)ySpacing- centre-to-centre spacing along Y (m)radius- radius of each spherical sensor disc (m)absoluteMode- iftrue, accumulates total intercepted power [W] instead of irradiance [W m⁻²] per cell
-
SensorNodeGrid
Creates a 3×3 grid with default dimensions and the specified spectral sensitivity colour.- Parameters:
color- spectral sensitivity colour applied to all cells
-
SensorNodeGrid
Creates an n×m grid spanningxDim×yDimmetres with the given colour.- Parameters:
xDim- total extent along the local X axis (m)yDim- total extent along the local Y axis (m)n- number of sensor cells along Xm- number of sensor cells along Yradius- radius of each spherical sensor disc (m)color- spectral sensitivity colour applied to all cells
-
SensorNodeGrid
Creates an n×m grid with uniform cell spacing and the given colour.- Parameters:
n- number of sensor cells along Xm- number of sensor cells along YxSpacing- centre-to-centre spacing along X (m)ySpacing- centre-to-centre spacing along Y (m)radius- radius of each spherical sensor disc (m)color- spectral sensitivity colour applied to all cells
-
SensorNodeGrid
public SensorNodeGrid(float xDim, float yDim, int n, int m, float radius, boolean absoluteMode, RGBColor color) Creates an n×m grid spanningxDim×yDimmetres with the specified measurement mode and colour.- Parameters:
xDim- total extent along the local X axis (m)yDim- total extent along the local Y axis (m)n- number of sensor cells along Xm- number of sensor cells along Yradius- radius of each spherical sensor disc (m)absoluteMode- iftrue, accumulates total intercepted power [W] instead of irradiance [W m⁻²] per cellcolor- spectral sensitivity colour applied to all cells
-
SensorNodeGrid
public SensorNodeGrid(int n, int m, float xSpacing, float ySpacing, float radius, boolean absoluteMode, RGBColor color) Creates an n×m grid with uniform cell spacing, the specified measurement mode and colour.- Parameters:
n- number of sensor cells along Xm- number of sensor cells along YxSpacing- centre-to-centre spacing along X (m)ySpacing- centre-to-centre spacing along Y (m)radius- radius of each spherical sensor disc (m)absoluteMode- iftrue, accumulates total intercepted power [W] instead of irradiance [W m⁻²] per cellcolor- spectral sensitivity colour applied to all cells
-
SensorNodeGrid
public SensorNodeGrid(float xDim, float yDim, int n, int m, float radius, int numberOfLayers, float layerSpacing) Creates a white n×m layered grid spanningxDim×yDimmetres in irradiance mode.- Parameters:
xDim- total extent along the local X axis (m)yDim- total extent along the local Y axis (m)n- number of sensor cells along Xm- number of sensor cells along Yradius- radius of each spherical sensor disc (m)numberOfLayers- number of layers stacked along local ZlayerSpacing- distance between consecutive layer planes (m)
-
SensorNodeGrid
public SensorNodeGrid(int n, int m, float xSpacing, float ySpacing, float radius, int numberOfLayers, float layerSpacing) Creates a white n×m layered grid with uniform cell spacing in irradiance mode.- Parameters:
n- number of sensor cells along Xm- number of sensor cells along YxSpacing- centre-to-centre spacing along X (m)ySpacing- centre-to-centre spacing along Y (m)radius- radius of each spherical sensor disc (m)numberOfLayers- number of layers stacked along local ZlayerSpacing- distance between consecutive layer planes (m)
-
SensorNodeGrid
public SensorNodeGrid(float xDim, float yDim, int n, int m, float radius, int numberOfLayers, float layerSpacing, boolean absoluteMode) Creates a white n×m layered grid spanningxDim×yDimmetres with the specified measurement mode.- Parameters:
xDim- total extent along the local X axis (m)yDim- total extent along the local Y axis (m)n- number of sensor cells along Xm- number of sensor cells along Yradius- radius of each spherical sensor disc (m)numberOfLayers- number of layers stacked along local ZlayerSpacing- distance between consecutive layer planes (m)absoluteMode- iftrue, accumulates total intercepted power [W]
-
SensorNodeGrid
public SensorNodeGrid(int n, int m, float xSpacing, float ySpacing, float radius, int numberOfLayers, float layerSpacing, boolean absoluteMode) Creates a white n×m layered grid with uniform cell spacing and the specified measurement mode.- Parameters:
n- number of sensor cells along Xm- number of sensor cells along YxSpacing- centre-to-centre spacing along X (m)ySpacing- centre-to-centre spacing along Y (m)radius- radius of each spherical sensor disc (m)numberOfLayers- number of layers stacked along local ZlayerSpacing- distance between consecutive layer planes (m)absoluteMode- iftrue, accumulates total intercepted power [W]
-
-
Method Details
-
getCellColor
Returns the colour of cell (i, j), or white if no per-cell colour has been assigned. -
getCellTransparency
public float getCellTransparency(int i, int j) Returns the transparency of cell (i, j) in [0, 1], where 0 = fully opaque and 1 = fully transparent. Returns 0 if no per-cell transparency has been assigned. -
getCellColorForLayer
Returns the colour for layerk, cell (i, j). Falls back togetCellColor(int, int)if no layered colour is set. -
getCellTransparencyForLayer
public float getCellTransparencyForLayer(int k, int i, int j) Returns the transparency for layerk, cell (i, j) in [0, 1]. Falls back togetCellTransparency(int, int)if no layered transparency is set. -
setColorCell
public void setColorCell(float[][][] rgb) Sets per-cell colours from an n×m×3 array (values in [0,1]). rgb[i][j] = { r, g, b } for cell (i, j). -
setColorCell
public void setColorCell(float[][][] rgb, float transparency) Sets per-cell colours from an n×m×3 array and applies a uniform transparency to all cells. rgb[i][j] = { r, g, b } for cell (i, j).- Parameters:
rgb- n×m×3 colour array (values in [0, 1])transparency- transparency applied to every cell (0 = opaque, 1 = fully transparent)
-
setColorCell
public void setColorCell(float[][][] rgb, float[][] transparencies) Sets per-cell colours from an n×m×3 array and individual transparency values. rgb[i][j] = { r, g, b } and transparencies[i][j] for cell (i, j).- Parameters:
rgb- n×m×3 colour array (values in [0, 1])transparencies- n×m transparency array (0 = opaque, 1 = fully transparent)
-
setColorCell
Sets per-cell colours by mapping a 2D scalar array through aColorGradient. values[i][j] is the scalar for cell (i, j). -
setColorCell
Sets per-cell colours by mapping a 2D scalar array through aColorGradientand applies a uniform transparency to all cells. values[i][j] is the scalar for cell (i, j).- Parameters:
values- n×m scalar arraygradient- colour gradient to map scalar values to RGBtransparency- transparency applied to every cell (0 = opaque, 1 = fully transparent)
-
setColorCell
Sets per-cell colours by mapping a 2D scalar array through aColorGradientand individual transparency values. values[i][j] is the scalar for cell (i, j).- Parameters:
values- n×m scalar arraygradient- colour gradient to map scalar values to RGBtransparencies- n×m transparency array (0 = opaque, 1 = fully transparent)
-
setColorCell
public void setColorCell(float[][][][] rgb) Sets per-layer per-cell colours from a layers×n×m×3 array (values in [0,1]). rgb[k][i][j] = { r, g, b } for layer k, cell (i, j). -
setColorCell
public void setColorCell(float[][][][] rgb, float transparency) Sets per-layer per-cell colours from a layers×n×m×3 array and applies a uniform transparency to all layers and cells.- Parameters:
rgb- layers×n×m×3 colour array (values in [0, 1])transparency- transparency applied to every cell (0 = opaque, 1 = fully transparent)
-
setColorCell
public void setColorCell(float[][][][] rgb, float[][][] transparencies) Sets per-layer per-cell colours from a layers×n×m×3 array and individual per-layer per-cell transparency values.- Parameters:
rgb- layers×n×m×3 colour array (values in [0, 1])transparencies- layers×n×m transparency array (0 = opaque, 1 = fully transparent)
-
setColorCell
Sets per-layer per-cell colours by mapping a layers×n×m scalar array through aColorGradient. values[k][i][j] is the scalar for layer k, cell (i, j). -
setColorCell
Sets per-layer per-cell colours by mapping a layers×n×m scalar array through aColorGradientand applies a uniform transparency to all layers and cells.- Parameters:
values- layers×n×m scalar arraygradient- colour gradient to map scalar values to RGBtransparency- transparency applied to every cell (0 = opaque, 1 = fully transparent)
-
setColorCell
Sets per-layer per-cell colours by mapping a layers×n×m scalar array through aColorGradientand individual per-layer per-cell transparency values.- Parameters:
values- layers×n×m scalar arraygradient- colour gradient to map scalar values to RGBtransparencies- layers×n×m transparency array (0 = opaque, 1 = fully transparent)
-
labelCell
public void labelCell(float[][] values) Places a text label at the centre of each cell showing the value formatted to four decimal places. Pass null to remove all labels. -
labelCell
public void labelCell(float[][][] values) Places a text label at the centre of each cell per layer showing the corresponding value formatted to four decimal places. values[k][i][j] is the scalar for layer k, cell (i, j). Pass null to remove all layered labels. -
getCellCenterX
public float getCellCenterX(int i) Returns the local-space X centre of columni. -
getCellCenterY
public float getCellCenterY(int j) Returns the local-space Y centre of rowj. -
layerZ
public float layerZ(int k) Returns the Z offset (in local space) of layerk. Layer 0 is at Z = 0; subsequent layers are spacedlayerSpacingapart.- Parameters:
k- layer index (0-based)- Returns:
- local Z coordinate of the layer plane
-
pick
public void pick(Object object, boolean asNode, Point3d origin, Vector3d direction, Matrix4d t, PickList list) Description copied from interface:PickableComputes intersections of a given ray with this shape.- Specified by:
pickin interfacePickable- Parameters:
object- the object of which this shape is an attributeasNode-trueiff object is a nodeorigin- the origin of the ray, in local coordinatesdirection- the direction of the ray, in local coordinatest- the transformation from local coordinates to world coordinateslist- the list to which intersections have to be added
-
draw
- Specified by:
drawin interfaceRenderable
-
drawLabels
Draws only the text labels for each cell, without drawing any 3-D geometry. Called by GL4's ObjectCollector after it has drawn the cells itself. -
getNTypeImpl
Description copied from class:NodeThis method returns theNode.NTypewhich describes the managed fields of the class of this node. This method has to be implemented in every concrete subclass.- Overrides:
getNTypeImplin classNull- Returns:
- type describing the managed fields of the class of this node
-
newInstance
Description copied from class:NodeThis method returns a new instance of the class of this node. This method has to be implemented in every concrete subclass.- Overrides:
newInstancein classNull- Returns:
- new instance of class of this node
-
isTwoSided
public boolean isTwoSided() -
setTwoSided
public void setTwoSided(boolean value) -
isAbsoluteMode
public boolean isAbsoluteMode() -
setAbsoluteMode
public void setAbsoluteMode(boolean value) -
getN
public int getN() -
setN
public void setN(int value) -
getM
public int getM() -
setM
public void setM(int value) -
getNumberOfLayers
public int getNumberOfLayers() -
setNumberOfLayers
public void setNumberOfLayers(int value) -
getXDim
public float getXDim() -
setXDim
public void setXDim(float value) -
getYDim
public float getYDim() -
setYDim
public void setYDim(float value) -
getRadius
public float getRadius() -
setRadius
public void setRadius(float value) -
getExponent
public float getExponent() -
setExponent
public void setExponent(float value) -
getLayerSpacing
public float getLayerSpacing() -
setLayerSpacing
public void setLayerSpacing(float value)
-