Interface ICategorizedDislayLists
- Namespace
- CADability.GeoObject
- Assembly
- CADability.dll
Receives the objects of a Model sorted into the display lists that the renderer paints one after the other: PaintTo3DList(IPaintTo3D, ICategorizedDislayLists) of each object calls Add(Layer, bool, bool, IGeoObject) to say which lists the object belongs to. The lists are kept per Layer, so that visibility and transparency of a layer can be applied to all of its objects at once. Implemented by Model; not intended to be implemented by user code.
public interface ICategorizedDislayLists
Methods
Add(Layer, bool, bool, IGeoObject)
Adds go to the display lists of layer. With addToFace
the object is painted together with the faces (opaque surfaces, painted first), with addToLinear
together with the curves (painted after the faces, so they are not hidden by faces they lie on); both flags may be
set for an object that has faces and edges. With neither flag the object goes to the list of transparent objects,
which is painted last. An UnscaledGeoObject is always collected in a list of its own, regardless of
the flags.
void Add(Layer layer, bool addToFace, bool addToLinear, IGeoObject go)
Parameters
layerLayerthe layer whose lists receive the object; null for objects without a layer
addToFacebooltrue to paint the object together with the faces
addToLinearbooltrue to paint the object together with the curves
goIGeoObjectthe object to add