Display

Display is the main class of Isodi which manages all Isodi resources.

This class is abstract, as it should be overriden by the renderer. Use the make method to create a display with the current renderer.

Note: If the display is destroyed, all of its members will automatically be destroyed too, so references to display objects will be dead. Make sure you clean them out before switching displays.

Constructors

this
this()

Destructor

~this
~this()
Undocumented in source.

Members

Functions

addAnchor
Anchor addAnchor(Position position)

Add a new anchor to the display.

addCell
Cell addCell(Position position, string type)

Add a new cell to the display. Replaces the cell if one already exists.

addModel
Model addModel(string type)
Model addModel(Position position, string type)

Add a new model to the display.

anchorCount
size_t anchorCount()

Get the number of anchors in the display.

anchors
auto anchors()

Iterate on all anchors

cellCount
size_t cellCount()

Get the number of cells in the display.

cells
auto cells()

Iterate on all cells

clear
void clear()

Clear all objects within the display. Leaves packs and cache in place.

clearDestroy
void clearDestroy()

Destroy the contents of the display.

getCell
Cell getCell(UniquePosition position)

Get a cell at given position.

modelCount
size_t modelCount()

Get the number of models in the display.

models
auto models()

Iterate on all models

reloadResources
void reloadResources()

Reload all resources in the display. Make sure to call PackList.clearCache.

removeAnchor
bool removeAnchor(Anchor anchor)

Remove the given anchor from the map.

removeCell
bool removeCell(UniquePosition position)
bool removeCell(Position position)

Remove the cell at given position.

removeModel
bool removeModel(Model model)

Remove the given model from the map.

Static functions

make
Display make()

Create a display with the current renderer.

Variables

anchorMap
Anchor[size_t] anchorMap;

Registered anchors

camera
Camera camera;

Active camera.

cellMap
Cell[UniquePosition] cellMap;

Registered cells

cellSize
int cellSize;

Base cell size in the display, if supported by the renderer.

modelMap
Model[size_t] modelMap;

Registered models

packs
PackList packs;

Used pack list

Meta