Class CoordinateDrawing
Draw a Cartesian Coordinate.
public class CoordinateDrawing : IDisplayee, IExpandToBox3d, IDisposable, IMakeXmlSource
- Inheritance
-
CoordinateDrawing
- Implements
- Inherited Members
- Extension Methods
Constructors
CoordinateDrawing()
Ctor.
public CoordinateDrawing()
CoordinateDrawing(string)
Ctor with setter of TextAtOrigin.
public CoordinateDrawing(string textAtOrigin)
Parameters
textAtOrigin
stringtext at origin
CoordinateDrawing(XElement)
Ctor.
public CoordinateDrawing(XElement src)
Parameters
src
XElementXML
Properties
DimensionInPixels
public double DimensionInPixels { get; set; }
Property Value
- double
Edge length in pixels.
HslOffset
public static Vec3d HslOffset { get; set; }
Property Value
- Vec3d
HSL offset for coloring this.
TextAtOrigin
public string TextAtOrigin { get; set; }
Property Value
- string
Text displays at the origin of this coordinate.
XName
Name for XML IO.
public static string XName { 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, string)
Displays a coordinate drawing with the specified binding context and tag.
public static void Display(Bind bind, string tag)
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
MakeXmlSource(string, string)
Creates an XML representation of the object. This method may also generate additional resources such as related files.
public XElement MakeXmlSource(string baseDirectory, string relFile)
Parameters
baseDirectory
stringThe base directory for resolving relative paths
relFile
stringThe relative file path for the XML source
Returns
- XElement
An XML element representing the object's state