Machinations

Public Member Functions | Protected Member Functions | Protected Attributes | Properties | Events | List of all members
Machinations.GUI.ConnectionView Class Reference

view for Machinations connections. Is connected to two different views More...

Inheritance diagram for Machinations.GUI.ConnectionView:

## Public Member Functions

List< UIElement > | GetAllUiElements ()
Point | LinePosition (Point beforeLast)
GraphElement | GetModelElement ()
void | AddConnection (IConnectionView connectionView, bool start, bool withModel=true)
void | RemoveConnection (IConnectionView connection, bool start)
void | Move (double deltaX, double deltaY)
void | Dispose ()
void | AddEndView (IObjectView view)
void | RecalculateAfterLoaded ()
void | ClickOn (Point selectedPoint)
void | SetPoint (Point p)
void | AddStartView (IObjectView view)
void | RemovePoint (bool dragFinished)
bool | MovingPointIsLast ()
bool | MovingPointIsFirst ()
void | RemoveEnd ()
void | RemoveStart ()
void | Loaded ()
void | MovePoint (Point p)
void | RecalculateStartPoint (bool recalculateEnd=false)
void | RecalculateEndPoint (bool recalculateStart=false)

## Protected Member Functions

| ConnectionView (MachinationsConnection model, Point? startingPoint)
| ConnectionView (MachinationsConnection model)
Polyline | CreateArrowhead (Point startingPoint)
void | RefreshPolyline ()

## Protected Attributes

readonly MachinationsConnection | m_model
Polyline | m_polyline
Polyline | m_arrowHead
int | m_movingPointIndex
List< IConnectionView > | m_inputConnections

## Properties

virtual MachinationsConnection | Model`[get]`
UIElement | UiElement`[get]`
string | Label`[get, set]`
Color | BaseColor`[get, set]`
ViewSelectionMode | Selected`[get, set]`
ViewHighlightMode | Highlighted`[get, set]`
Point | Position`[get]`

## Events

Action | OnLoaded

## Detailed Description

view for Machinations connections. Is connected to two different views

## Constructor & Destructor Documentation

## ◆ ConnectionView() [1/2]

Machinations.GUI.ConnectionView.ConnectionView | ( | MachinationsConnection | model,
|  | Point? | startingPoint
| ) |  |

protected

## ◆ ConnectionView() [2/2]

Machinations.GUI.ConnectionView.ConnectionView | ( | MachinationsConnection | model | ) |

protected

## Member Function Documentation

## ◆ AddConnection()

void Machinations.GUI.ConnectionView.AddConnection | ( | IConnectionView | connectionView,
|  | bool | start,
|  | bool | withModel = `true`
| ) |  |

## ◆ AddEndView()

void Machinations.GUI.ConnectionView.AddEndView | ( | IObjectView | view | ) |

Implements Machinations.GUI.IConnectionView.

## ◆ AddStartView()

void Machinations.GUI.ConnectionView.AddStartView | ( | IObjectView | view | ) |

Implements Machinations.GUI.IConnectionView.

## ◆ ClickOn()

void Machinations.GUI.ConnectionView.ClickOn | ( | Point | selectedPoint | ) |

Implements Machinations.GUI.IConnectionView.

## ◆ CreateArrowhead()

Polyline Machinations.GUI.ConnectionView.CreateArrowhead | ( | Point | startingPoint | ) |

protected

## ◆ Dispose()

void Machinations.GUI.ConnectionView.Dispose | ( |  | ) |

## ◆ GetAllUiElements()

List<UIElement> Machinations.GUI.ConnectionView.GetAllUiElements | ( |  | ) |

## ◆ GetModelElement()

GraphElement Machinations.GUI.ConnectionView.GetModelElement | ( |  | ) |

## ◆ LinePosition()

Point Machinations.GUI.ConnectionView.LinePosition | ( | Point | beforeLast | ) |

## ◆ Loaded()

void Machinations.GUI.ConnectionView.Loaded | ( |  | ) |

Implements Machinations.GUI.IConnectionView.

## ◆ Move()

void Machinations.GUI.ConnectionView.Move | ( | double | deltaX,
|  | double | deltaY
| ) |  |

## ◆ MovePoint()

void Machinations.GUI.ConnectionView.MovePoint | ( | Point | p | ) |

Implements Machinations.GUI.IConnectionView.

## ◆ MovingPointIsFirst()

bool Machinations.GUI.ConnectionView.MovingPointIsFirst | ( |  | ) |

Implements Machinations.GUI.IConnectionView.

## ◆ MovingPointIsLast()

bool Machinations.GUI.ConnectionView.MovingPointIsLast | ( |  | ) |

Implements Machinations.GUI.IConnectionView.

## ◆ RecalculateAfterLoaded()

void Machinations.GUI.ConnectionView.RecalculateAfterLoaded | ( |  | ) |

Implements Machinations.GUI.IConnectionView.

## ◆ RecalculateEndPoint()

void Machinations.GUI.ConnectionView.RecalculateEndPoint | ( | bool | recalculateStart = `false` | ) |

Implements Machinations.GUI.IConnectionView.

## ◆ RecalculateStartPoint()

void Machinations.GUI.ConnectionView.RecalculateStartPoint | ( | bool | recalculateEnd = `false` | ) |

Implements Machinations.GUI.IConnectionView.

## ◆ RefreshPolyline()

void Machinations.GUI.ConnectionView.RefreshPolyline | ( |  | ) |

protected

## ◆ RemoveConnection()

void Machinations.GUI.ConnectionView.RemoveConnection | ( | IConnectionView | connection,
|  | bool | start
| ) |  |

## ◆ RemoveEnd()

void Machinations.GUI.ConnectionView.RemoveEnd | ( |  | ) |

Implements Machinations.GUI.IConnectionView.

## ◆ RemovePoint()

void Machinations.GUI.ConnectionView.RemovePoint | ( | bool | dragFinished | ) |

Implements Machinations.GUI.IConnectionView.

## ◆ RemoveStart()

void Machinations.GUI.ConnectionView.RemoveStart | ( |  | ) |

Implements Machinations.GUI.IConnectionView.

## ◆ SetPoint()

void Machinations.GUI.ConnectionView.SetPoint | ( | Point | p | ) |

Implements Machinations.GUI.IConnectionView.

## Member Data Documentation

## ◆ m_arrowHead

Polyline Machinations.GUI.ConnectionView.m_arrowHead

protected

## ◆ m_inputConnections

List<IConnectionView> Machinations.GUI.ConnectionView.m_inputConnections

protected

## ◆ m_model

readonly MachinationsConnection Machinations.GUI.ConnectionView.m_model

protected

## ◆ m_movingPointIndex

int Machinations.GUI.ConnectionView.m_movingPointIndex

protected

## ◆ m_polyline

Polyline Machinations.GUI.ConnectionView.m_polyline

protected

## Property Documentation

## ◆ BaseColor

Color Machinations.GUI.ConnectionView.BaseColor

get set

## ◆ Highlighted

ViewHighlightMode Machinations.GUI.ConnectionView.Highlighted

get set

## ◆ Label

string Machinations.GUI.ConnectionView.Label

get set

## ◆ Model

virtual MachinationsConnection Machinations.GUI.ConnectionView.Model

get

## ◆ Position

Point Machinations.GUI.ConnectionView.Position

get

## ◆ Selected

ViewSelectionMode Machinations.GUI.ConnectionView.Selected

get set

## ◆ UiElement

UIElement Machinations.GUI.ConnectionView.UiElement

get

## Event Documentation

## ◆ OnLoaded

Action Machinations.GUI.ConnectionView.OnLoaded

The documentation for this class was generated from the following file:

- GUI/ConnectionView.cs