Class StringDrawing
An IDisplayee to draw string.
public class StringDrawing : IDisplayee, IExpandToBox3d, IDisposable
- Inheritance
-
StringDrawing
- Implements
- Inherited Members
- Extension Methods
Constructors
StringDrawing(string)
Constructor.
public StringDrawing(string text)
Parameters
text
stringtext
Fields
text
Text to draw.
public readonly string text
Field Value
Properties
Height
Gets the height of the string drawing in pixels.
public int Height { get; }
Property Value
IsAlwaysOnTop
Is text always on top.
public bool IsAlwaysOnTop { get; set; }
Property Value
Width
Gets the width of the string drawing in pixels.
public int Width { get; }
Property Value
Methods
Display(Bind)
Display function called in DispEngine rendering loop.
public void Display(Bind bind)
Parameters
bind
BindBind with DispEngine. See Bind.
Display(Bind, Vec3d, bool)
Display at p
.
public void Display(Bind bind, Vec3d p, bool isAlwaysOnTop = false)
Parameters
Display(Bind, string, Vec3d, bool)
Display text
at p
.
public static void Display(Bind bind, string text, Vec3d p = null, bool isAlwaysOnTop = false)
Parameters
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()
Dispose(bool)
protected virtual void Dispose(bool disposing)
Parameters
disposing
bool
ExpandToBox3d(Box3d)
Expands the destination box. This function is usually used to compute the bounding box of elements.
public void ExpandToBox3d(Box3d dst)
Parameters
dst
Box3dDestination box
~StringDrawing()
protected ~StringDrawing()