StackRise¶
Namespace Nfty.Model in assembly Nfty.Model.
What the stack rule makes of a stack: the art, the union depth map and the face owners' pictures. Owns StackRise.Art and StackRise.Faces.
Properties¶
Art¶
The picture the stack shows from the front (the compositor's composite, or the finished picture it was given).
Depth¶
Per pixel, the union of the solid layers' columns, as a map of its own (a copy of the current state: StackDepth.CombineInto() updates a rise in place).
Faces¶
The front and back owners' pictures and the wall seams.
Methods¶
BackOwner(int, int)¶
The layer that owns the back face at a pixel.
Parameters
x(int) - Column.y(int) - Row.
Returns. As StackRise.FrontOwner(), for the back face.
DepthAt(int, int)¶
The union depth at a pixel, without building a map.
Parameters
x(int) - Column.y(int) - Row.
Returns. The pair; 0/0 on a pixel no layer covers.
Dispose()¶
Disposes the art and the face pictures this rise owns.
FrontOwner(int, int)¶
The layer that owns the front face at a pixel.
Parameters
x(int) - Column.y(int) - Row.
Returns. The bottom-first index into the layers given to the combine (for a selection or asset, into the PRESENT picks in the order given); -1 on a pixel no layer covers. Ties go to the upper layer.