Depiction Engine For Unity 2023.0 (Alpha)
Loading...
Searching...
No Matches
DepictionEngine.Grid2D Class Reference

Classes

struct  Range
 A range defined by start and end index. More...
 
class  Row
 A row defined by a list of DepictionEngine.Grid2D.Range. More...
 

Public Member Functions

void Init (CameraGrid2D cameraGrid2D)
 
Grid2D IsInGrid (Vector2Int grid2DIndex, Vector2Int grid2DDimensions)
 
bool UpdateGridFields (Vector2Int gridDimensions, GeoCoordinate2Double geoCenter, bool updateDerivedProperties=true)
 
override bool UpdateGrid ()
 
void IterateOverIndexes (Action< IGrid2D, GeoCoordinate2Double, Vector2Int, Vector2Int > callback)
 
override void Clear ()
 
- Public Member Functions inherited from DepictionEngine.GridBase
virtual GridBase Init ()
 
bool SetEnabled (bool value)
 
virtual bool UpdateGrid ()
 
virtual void Clear ()
 
bool UpdateGrid ()
 
Grid2D IsInGrid (Vector2Int grid2DIndex, Vector2Int grid2DDimensions)
 
void IterateOverIndexes (Action< IGrid2D, GeoCoordinate2Double, Vector2Int, Vector2Int > callback)
 

Protected Member Functions

Row CreateRow (int y, int start, int end)
 
Row CreateRow (int y)
 
void SetRowStaticProperties ()
 
int GetRowCount ()
 
Row GetRow (int y, Vector2Int gridDimensions)
 
void AddRow (int y, Row value)
 
void IterateOverRows (Action< Row > callback)
 
virtual bool UpdateGrid (Vector2Int gridDimensions)
 
override bool UpdateDerivedProperties ()
 
virtual bool UpdateDerivedProperties ()
 

Protected Attributes

Vector2Double _centerIndex
 
Vector2Int _centerIndexInt
 
GeoCoordinate2Double _geoCenter
 

Static Protected Attributes

static readonly double MIN_SIZE = 0.00000001d
 

Properties

int rowCount [get]
 
Vector2Double centerIndex [get]
 
Vector2Int grid2DDimensions [get]
 
GeoCoordinate2Double geoCenter [get]
 
CameraGrid2D cameraGrid2D [get]
 
- Properties inherited from DepictionEngine.GridBase
int cascade [get, set]
 
bool enabled [get]
 
bool wasFirstUpdated [get]
 
- Properties inherited from DepictionEngine.IGrid
bool wasFirstUpdated [get]
 
- Properties inherited from DepictionEngine.IGrid2D
GeoCoordinate2Double geoCenter [get]
 

Member Function Documentation

◆ Clear()

override void DepictionEngine.Grid2D.Clear ( )
virtual

Reimplemented from DepictionEngine.GridBase.

◆ IsInGrid()

Grid2D DepictionEngine.Grid2D.IsInGrid ( Vector2Int  grid2DIndex,
Vector2Int  grid2DDimensions 
)

◆ IterateOverIndexes()

void DepictionEngine.Grid2D.IterateOverIndexes ( Action< IGrid2D, GeoCoordinate2Double, Vector2Int, Vector2Int >  callback)

◆ UpdateDerivedProperties()

override bool DepictionEngine.Grid2D.UpdateDerivedProperties ( )
protectedvirtual

Reimplemented from DepictionEngine.GridBase.

◆ UpdateGrid()

override bool DepictionEngine.Grid2D.UpdateGrid ( )
virtual

Reimplemented from DepictionEngine.GridBase.

Property Documentation

◆ geoCenter

GeoCoordinate2Double DepictionEngine.Grid2D.geoCenter
get

The documentation for this class was generated from the following file: