Connector Class |
Namespace: Demo3D.Visuals
public class Connector
The Connector type exposes the following members.
| Name | Description | |
|---|---|---|
| AlignmentStyle |
Gets or sets the way in which this connector aligns its parent to other connectors.
| |
| Allowed | ||
| AllowsTransferIn | ||
| AllowsTransferOut | ||
| AutoConfigure | ||
| AutoConnect | ||
| BoundaryOffset | ||
| Center |
Get the center of the connector for convenient visual point
| |
| ConnectedTo |
The first connector this connector is connected to, or null if no connected at all.
| |
| ConnectionWorldLocation |
World location of connector.
| |
| Connectors |
All connectors that are connected to this one.
| |
| ControlPointEnabled | ||
| ControlPointSize | ||
| DefaultAlignmentStyle |
Gets the default alignment style for this connector.
| |
| Disallowed | ||
| End | ||
| HeightOffset | ||
| IsConnected |
Is this connector connected to other connectors?
| |
| KeepInBounds | ||
| Length |
Get the length of the connector.
| |
| MaxAllowedConnections |
Optional limit to the number of connectors that this connector can connect to.
This is int.MaxValue by default making it effectively unlimited.
| |
| Name |
The name of the connector.
| |
| Normal | ||
| Parent | ||
| ReparentOnConnect | ||
| SnapDistance | ||
| Start | ||
| TransferDirection | ||
| Type | ||
| WorldCenter |
Get the center of the connector in world coordinates
| |
| WorldEnd |
Get the end of the connector in world coordinates.
| |
| WorldNormal |
The world normal of the connector.
| |
| WorldStart |
Get the start of the connector in world coordinates.
|
| Name | Description | |
|---|---|---|
| AddAspectT | ||
| AlignConnectors | ||
| AlignConnectors(ConnectorAlignment) | ||
| AlignConnectors(ConnectorAlignment, Boolean) |
Align the parent of this connector to be in line with the connector it is connected to.
Modify the transform of the parent of this connector to align to
the Normal of the ConnectedTo connector.
| |
| AngularDistanceFrom |
Find distance between the world normals as the difference between their
world-Y rotations, snapped to 5 degree increments
| |
| CanConnectTo |
Indicate if the two Connectors may actually be connected. This allows
connectors for different purposes. The GUI may use this to provide visual
feedback when the user drags an object near to another object.
| |
| Closest |
Find the closest connectors between two IConnectable objects (normally Visuals).
| |
| Connect(IConnectable, String, IConnectable, String, ConnectorAlignment, Boolean) |
Connect two named connectors together with parameters determining whether and how the connectables (Visuals) should move when aligned.
| |
| Connect(IConnectable, String, IConnectable, String, Boolean, Boolean) |
Connect two named connectors together with parameters determining whether and how the connectables (Visuals) should move when aligned.
| |
| Connect(IConnectable, String, IConnectable, String, ConnectorAlignment, Boolean, Boolean) |
Connect two named connectors together with parameters determining whether and how the connectables (Visuals) should move when aligned.
| |
| Connect(IConnectable, String, IConnectable, String, Boolean, Boolean, Boolean) |
Connect two named connectors together with parameters determining whether and how the connectables (Visuals) should move when aligned.
| |
| ConnectTo(Connector, ConnectorAlignment) |
Connect this and another connector together.
| |
| ConnectTo(Connector, Boolean) |
Connect two objects together. The method must take care of the placement and
orientation of the respective visual objects.
| |
| ConnectTo(Connector, Boolean, Boolean) |
Connect two objects together. The method must take care of the placement and
orientation of the respective visual objects.
| |
| ConnectTo(Connector, ConnectorAlignment, Boolean, Boolean) |
Connect this and another connector together.
| |
| ConnectTo(Connector, Boolean, Boolean, Boolean) |
Connect two objects together. The method must take care of the placement and
orientation of the respective visual objects.
| |
| ConnectTo(Connector, ConnectorAlignment, Boolean, Boolean, Action) |
Connect this and another connector together (Only usable from C# scripting, not JScript).
| |
| Disconnect |
Disconnect a named connector.
| |
| DisconnectAll |
Disconnect all connectors
| |
| DisconnectFrom |
Disconnect two objects from each other. The orientation is left the
same after disconnection.
| |
| DistanceFrom |
Calculates the distance of the centers of this connector to
the extents (start->end) of another connector.
| |
| FindAspectT | ||
| IsConnectedTo(Connector) | ||
| IsConnectedTo(Visual) | ||
| RemoveAspectT | ||
| ToString |
Connected "name:visual" string.
(Overrides ObjectToString.) | |
| ToVisualLocation |
The center of the connector as a VisualLocation.
|
| Name | Description | |
|---|---|---|
| AfterDisconnectedListeners |
Called just after this connector is disconnected from.
| |
| ConnectedListeners |
Called when this connector is connected to.
| |
| DisconnectedListeners |
Called just before this connector is disconnected from.
|