GridData -- Methods used by Value2dDisplay and Object2dDisplay for display
Description
Methods required by widgets that display grids. User defined space objects must adopt this or any implementor of it in order to be accepted as data providers in the setDiscrete2dToDisplay method of Value2dDisplay and Object2dDisplay objects. User spaces must also define the macro discrete2dSiteAt(), versions of which can be found in Grid2d.h or Discrete2d.h.
Protocols adopted by GridData
None
Methods
Phase: Using
- (long)getValueAtX: (unsigned)xY: (unsigned)y Return the integer stored at (x,y).
- getObjectAtX: (unsigned)xY: (unsigned)y Return the pointer stored at (x,y).
- (long *)getOffsets
- (id *)getLattice Returns the lattice pointer - use this for fast access.
- (unsigned)getSizeY Get the size of the lattice in the Y dimension.
- (unsigned)getSizeX Get the size of the lattice in the X dimension.