IGH_CanvasValidator
References'Interface used for limiting a collection of typical actions on the canvas. Do not implement this interface directly if you can help it, instead inherit from GH_CanvasValidator.
Methods
AddedToCanvas
#This method will be called by the Canvas when this validator is added to it.
Parameters:
| canvas (GH_Canvas) | Canvas which just added this validator. |
AppliesToDocument
#Test whether this validator applies to a specific document.
Parameters:
| id (Guid) | Document id or Guid.Empty if no document is available. |
CanAcceptObject
#Validates whether a specific component can be accepted by the canvas at all.
Parameters:
| id (Guid) |
CanCreateObject
#Validates whether a specific component may be inserted at a specific point.
CanCreateWire
#Validates whether a wire-operation can commence.
CanDeleteObject
#Validates whether a specific object can be deleted.
Parameters:
| object (IGH_DocumentObject) |
CanDeleteWire
#Validates whether a wire can be deleted.
CanDragObject
#Validates whether some components can be dragged.
Parameters:
| object (IGH_DocumentObject) | |
| dragFromPoint (PointF) |