Table of Contents

Class CoordinateDrawing

Namespace
Hi.Disp.Flag
Assembly
HiDisp.dll

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 string

text at origin

CoordinateDrawing(XElement)

Ctor.

public CoordinateDrawing(XElement src)

Parameters

src XElement

XML

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

string

Methods

Display(Bind)

Display function called in DispEngine rendering loop.

public void Display(Bind bind)

Parameters

bind Bind

Bind 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

bind Bind

The binding context to display on.

tag string

The tag text to display at the origin.

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 Box3d

Destination 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 string

The base directory for resolving relative paths

relFile string

The relative file path for the XML source

Returns

XElement

An XML element representing the object's state