GH_CanvasWireValidator

GH_CanvasValidator
Utility validator for restricting wire creation.

Constructors

GH_CanvasWireValidator

#
public GH_CanvasWireValidator()

Properties

Canvas

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

Document

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

WireDelegate

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

WireMotionText

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

WireSource

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

WireSourceText

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

WireTarget

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

WireTargetText

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

Methods

AddedToCanvas

#
public override void AddedToCanvas(GH_Canvas canvas)
canvas (GH_Canvas)

AppliesToDocument

#
public override bool AppliesToDocument(Guid id)
id (Guid)

CanAcceptObject

#
public override bool CanAcceptObject(Guid id)
id (Guid)

CanCreateObject

#
public override bool CanCreateObject(Guid id, PointF pt)
id (Guid)
pt (PointF)

CanCreateWire

#
public override bool CanCreateWire(IGH_Param source, IGH_Param target)
source (IGH_Param)
target (IGH_Param)

CanDeleteObject

#
public override bool CanDeleteObject(IGH_DocumentObject object)

CanDeleteWire

#
public override bool CanDeleteWire(IGH_Param source, IGH_Param target)
source (IGH_Param)
target (IGH_Param)

CanDragObject

#
public override bool CanDragObject(IGH_DocumentObject object, PointF dragFromPoint)
object (IGH_DocumentObject)
dragFromPoint (PointF)

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(IGH_DocumentObject object)
inherited fromGH_CanvasValidator
object (IGH_DocumentObject)
CanShowObjectMenu

RemovedFromCanvas

#
public override void RemovedFromCanvas(GH_Canvas canvas)
canvas (GH_Canvas)