GH_CanvasWireValidator

GH_CanvasValidator
Utility validator for restricting wire creation.

Constructors

GH_CanvasWireValidator

#
public GH_CanvasWireValidator()

Properties

Canvas

Gets the canvas this validator is associated with.
protected GH_Canvas Canvas { get; }
inherited fromGH_CanvasValidator

Document

Gets the document (if it exists) that is currently loaded in the canvas.
protected GH_Document Document { get; }
inherited fromGH_CanvasValidator

WireDelegate

#
Gets or sets the delegate to be invoked when a wire is created.
public Action WireDelegate { get; set; }

WireMotionText

#
Gets or sets the text to draw at the wire interior.
public string WireMotionText { get; set; }

WireSource

#
Gets or sets the wire source filter.
public Guid WireSource { get; set; }

WireSourceText

#
Gets or sets the text to draw at the wire source location.
public string WireSourceText { get; set; }

WireTarget

#
Gets or sets the wire target filter.
public Guid WireTarget { get; set; }

WireTargetText

#
Gets or sets the text to draw at the wire target location.
public string WireTargetText { get; set; }

Methods

AddedToCanvas

#
public override void AddedToCanvas(
canvas
)

AppliesToDocument

#
public override bool AppliesToDocument(
id
)

CanAcceptObject

#
public override bool CanAcceptObject(
id
)

CanCreateObject

#
public override bool CanCreateObject(
id,
PointF
pt
)

CanCreateWire

#
public override bool CanCreateWire(
source,
target
)

CanDeleteObject

#
public override bool CanDeleteObject()

CanDeleteWire

#
public override bool CanDeleteWire(
source,
target
)

CanDragObject

#
public override bool CanDragObject(
PointF
dragFromPoint
)

CanNavigateCanvas

public virtual bool CanNavigateCanvas()
inherited fromGH_CanvasValidator
CanNavigateCanvas

CanShowCanvasMenu

#
public override bool CanShowCanvasMenu(
PointF
pt
)

CanShowComponentSearchBox

#
public override bool CanShowComponentSearchBox(
PointF
pt
)

CanShowObjectMenu

public virtual bool CanShowObjectMenu()
inherited fromGH_CanvasValidator
CanShowObjectMenu

RemovedFromCanvas

#
public override void RemovedFromCanvas(
canvas
)