Package group3dlocaliser.grids
Class SphericalGrid
java.lang.Object
group3dlocaliser.grids.Grid3D
group3dlocaliser.grids.SphericalGrid
- All Implemented Interfaces:
 PamSettings,SettingsNameProvider
Simple spherical grid. Points are spaced at even angles vertically. The number 
 of points generated at each vertical angles is reduced as vertical angle
 increases in order to keep spacing more or less even.
- Author:
 - dg50
 
- 
Field Summary
Fields - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionGet the next point in the grid.longintGet the total number of points in the grid.voidReset the grid so that the next call to getNextPoint will return the first grid point again.booleanrestoreSettings(PamControlledUnitSettings pamControlledUnitSettings) Methods inherited from class group3dlocaliser.grids.Grid3D
getUnitName, getUnitType 
- 
Field Details
- 
gridName
- See Also:
 
 
 - 
 - 
Constructor Details
- 
SphericalGrid
 
 - 
 - 
Method Details
- 
getSettingsReference
- Returns:
 - The serialisable object that will be stored
 
 - 
getSettingsVersion
public long getSettingsVersion()- Returns:
 - An integer version number for the settings
 
 - 
restoreSettings
- Parameters:
 pamControlledUnitSettings-- Returns:
 - true if successful The object performs final checks (if needed) and then casts the settings data pamcontrolledunitSettings.settings into the correct type and uses as required
 
 - 
getGridName
- Specified by:
 getGridNamein classGrid3D- Returns:
 - A descriptive name for the grid.
 
 - 
getTotalPoints
public int getTotalPoints()Description copied from class:Grid3DGet the total number of points in the grid.- Specified by:
 getTotalPointsin classGrid3D- Returns:
 - number of grid points
 
 - 
resetGrid
public void resetGrid()Description copied from class:Grid3DReset the grid so that the next call to getNextPoint will return the first grid point again. - 
getNextPoint
Description copied from class:Grid3DGet the next point in the grid. Will return null when it's complete.- Specified by:
 getNextPointin classGrid3D- Returns:
 - next grid point
 
 
 -