Skip to content

GridLayout

Source: GridLayout.h

GridLayout

class GridLayout
src/light/layouts/GridLayout.h:13

Inherits: LayoutBase

Layout of a dense row-major 3D grid.

GridLayout card Author: MoonLight, https://github.com/ewowi/MoonLight/blob/main/src/MoonLight/Nodes/Layouts/L_MoonLight.h

Public Attributes

lengthType width = : The grid's extent on x.

lengthType height = : Its extent on y.

lengthType depth = 1 : Its extent on z, 1 for a flat panel.

bool serpentine = false

Public Methods

virtual inline const char * tags() const override : The catalog tags this layout carries.

virtual inline Dim dimensions() const override : How many axes this layout places lights on.

virtual inline void defineControls() override : The controls a user sets on the card.

virtual inline nrOfLightsType lightCount() const override : How many lights the current settings place.

virtual inline void placeLights(const CoordSink & sink) const override : Emit every light's coordinate, in wiring order.