ucl.physiol.neuroconstruct.project.packing
Class HexagonalLayerPackingAdapter
java.lang.Object
ucl.physiol.neuroconstruct.project.packing.CellPackingAdapter
ucl.physiol.neuroconstruct.project.packing.HexagonalLayerPackingAdapter
public class HexagonalLayerPackingAdapter
- extends CellPackingAdapter
Creates a single layer of cell bodies in hexagonal formation (e.g. as found
with Golgi cells in the cerebellum)
- Author:
- Padraig Gleeson
| Methods inherited from class ucl.physiol.neuroconstruct.project.packing.CellPackingAdapter |
addRegionAndCellInfo, avoidOtherCellGroups, cancelPosition, doesCellCollideWithExistingCells, getCurrentNumberPositions, getDescription, getLastPosTaken, getNextPosition, getNumPosAlreadyTaken, getParameterList, setParameterList |
HexagonalLayerPackingAdapter
public HexagonalLayerPackingAdapter()
reset
public void reset()
- Description copied from class:
CellPackingAdapter
- Resets to zero internally computed positions
- Overrides:
reset in class CellPackingAdapter
generateNextPosition
protected Point3f generateNextPosition()
throws CellPackingException
- Description copied from class:
CellPackingAdapter
- Internal function to generate the next position
- Specified by:
generateNextPosition in class CellPackingAdapter
- Returns:
- The position as Point3d object
- Throws:
CellPackingException - if a position cannoth be generated, i.e. region full
setParameter
public void setParameter(String parameterName,
float parameterValue)
throws CellPackingException
- Specified by:
setParameter in class CellPackingAdapter
- Throws:
CellPackingException
toString
public String toString()
- Description copied from class:
CellPackingAdapter
- Returns a short summary of the class's state, for GUIs etc. Included here
(even though it's in Object) to force the subclasses to implement it
- Specified by:
toString in class CellPackingAdapter
- Returns:
- A string rep of internal state
toNiceString
public String toNiceString()
- Description copied from class:
CellPackingAdapter
- For a more plain english description of the settings
- Specified by:
toNiceString in class CellPackingAdapter
main
public static void main(String[] args)