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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the next point in the grid.long
int
Get the total number of points in the grid.void
Reset the grid so that the next call to getNextPoint will return the first grid point again.boolean
restoreSettings
(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
- 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:
getGridName
in classGrid3D
- Returns:
- A descriptive name for the grid.
-
getTotalPoints
public int getTotalPoints()Description copied from class:Grid3D
Get the total number of points in the grid.- Specified by:
getTotalPoints
in classGrid3D
- Returns:
- number of grid points
-
resetGrid
public void resetGrid()Description copied from class:Grid3D
Reset the grid so that the next call to getNextPoint will return the first grid point again. -
getNextPoint
Description copied from class:Grid3D
Get the next point in the grid. Will return null when it's complete.- Specified by:
getNextPoint
in classGrid3D
- Returns:
- next grid point
-