DisplayCache

References
public abstract class DisplayCache : IDisposable
An immutable collection of display shapes.

Constructors

DisplayCache

#
protected DisplayCache(
obj,
solution,
clipping
)

Fields

_pixelScale

#
protected float _pixelScale

Properties

Clipping

#
Gets the clipping box of this cache.
public BoundingBox Clipping { get; }

ExpirationFactor

#
Gets a normalised factor for the expiration transition. Zero means expiration has not started yet, One means expiration has fully completed, any value in between indicates a partial transition.
public float ExpirationFactor { get; }

HasFaces

#
Gets whether this cache has at least one face object to draw.
public abstract bool HasFaces { get; }

HasWires

#
Gets whether this cache has at least one wire object to draw.
public abstract bool HasWires { get; }

Object

#
Gets the object which owns this cache.
public IDocumentObject Object { get; }

Solution

#
Gets the solution this cache is associated with.
public SolutionId Solution { get; }

Methods

Create

#
public static DisplayCache Create(
obj,
solution,
clipping,
points = null,
vectors = null,
planes = null,
curves = null,
texts = null,
meshes = null,
widgets = null
)

Dispose

#
public void Dispose()

DrawFaces

#
Method called when the face shapes need to be drawn in the viewport. Faces include shaded meshes, surfaces, breps, Sub-Ds, and so on.
public void DrawFaces(
pipeline,
guises
)

DrawWires

#
Method called when the wire shapes need to be drawn in the viewport. Wires include point symbols, curves, edges, texts, and so on.
public void DrawWires(
pipeline,
guises
)

Expire

#
Expire this cache of display data. Typically you do not need to call this method. This cache will be automatically expired along with the IDocumentObject associated with it.
public void Expire()