Table of Contents

Class CGModuleSlot

Class defining a module slot

public class CGModuleSlot
Inheritance
CGModuleSlot
Derived

Fields

mLinkedSlots

protected List<CGModuleSlot> mLinkedSlots

Field Value

List<CGModuleSlot>

Properties

CanvasSpaceDropZone

Mouse-Hotzone, in canvas space

public Rect CanvasSpaceDropZone { get; }

Property Value

Rect

Count

Gets the number of connected links, i.e. shortcut to this.Links.Count

public int Count { get; }

Property Value

int

DropZone

Mouse-Hotzone, in module space

public Rect DropZone { get; set; }

Property Value

Rect

ExternalInput

Gets the module as an IExternalInput

public IExternalInput ExternalInput { get; }

Property Value

IExternalInput

Info

Gets the SlotInfo Attribute

public SlotInfo Info { get; }

Property Value

SlotInfo

IsLinked

Whether the link is wired or not

public bool IsLinked { get; }

Property Value

bool

IsOnRequest

Does this slot receive/provide data only on demand, as opposed to on refresh?

public virtual bool IsOnRequest { get; }

Property Value

bool
See Also

LinkedSlots

All slots of linked modules

public List<CGModuleSlot> LinkedSlots { get; }

Property Value

List<CGModuleSlot>

Module

The Module this Slot belongs to

public CGModule Module { get; }

Property Value

CGModule

Name

public string Name { get; }

Property Value

string

OnRequestModule

Gets the module as an IOnRequestProcessing

public IOnRequestProcessing OnRequestModule { get; }

Property Value

IOnRequestProcessing

Origin

Origin of Link-Wire, in Canvas space

public Vector2 Origin { get; set; }

Property Value

Vector2

PathProvider

Gets the module as an IPathProvider

public IPathProvider PathProvider { get; }

Property Value

IPathProvider

Methods

CanLinkTo(CGModuleSlot)

Can a link be established between this slot and the other link?

public virtual bool CanLinkTo(CGModuleSlot other)

Parameters

other CGModuleSlot

Returns

bool

GetLinkedModules()

Gets a list of all Links' modules

public List<CGModule> GetLinkedModules()

Returns

List<CGModule>

HasLinkTo(CGModuleSlot)

public bool HasLinkTo(CGModuleSlot other)

Parameters

other CGModuleSlot

Returns

bool

LinkInputAndOutput(CGModuleSlot, CGModuleSlot)

protected static void LinkInputAndOutput(CGModuleSlot inputSlot, CGModuleSlot outputSlot)

Parameters

inputSlot CGModuleSlot
outputSlot CGModuleSlot

LinkTo(CGModuleSlot)

public virtual void LinkTo(CGModuleSlot other)

Parameters

other CGModuleSlot

LoadLinkedSlots()

protected virtual void LoadLinkedSlots()

ReInitializeLinkedSlots()

public void ReInitializeLinkedSlots()

SetInfoFromField(FieldInfo)

public void SetInfoFromField(FieldInfo fieldInfo)

Parameters

fieldInfo FieldInfo

ToString()

public override string ToString()

Returns

string

UnlinkAll()

Unlink this slot from all its linked slots

public virtual void UnlinkAll()

UnlinkFrom(CGModuleSlot)

Unlink the current slot from the specified other slot.

public virtual void UnlinkFrom(CGModuleSlot other)

Parameters

other CGModuleSlot

The other CGModuleSlot to unlink from.

Operators

implicit operator bool(CGModuleSlot)

public static implicit operator bool(CGModuleSlot a)

Parameters

a CGModuleSlot

Returns

bool