Machinations

Public Member Functions | Protected Member Functions | Protected Attributes | Properties | List of all members
Machinations.GUI.NodeView< T > Class Template Reference

ancestor of all machinations node views,contains common metods of them can be used as a source for simlink More...

Inheritance diagram for Machinations.GUI.NodeView< T >:

## Public Member Functions

virtual void | InitShape ()
override void | AddConnection (IConnectionView connectionView, bool start, bool withModel=true)
override List< UIElement > | GetAllUiElements ()
override void | ColorView (Brush brush)
override void | Dispose ()
override GraphElement | GetModelElement ()
SimlinkView | CreateSimlinkView (SimlinkModel existing=null)
Public Member Functions inherited from Machinations.GUI.PointObjectView
Point | LinePosition (Point beforeLast)
virtual void | RemoveConnection (IConnectionView connection, bool start)
virtual void | Move (double deltaX, double deltaY)
Brush | GetBrushForSelection ()
Public Member Functions inherited from Machinations.GUI.INodeView< T >
void | InitShape ()
Brush | GetBrushForSelection ()
SimlinkView | CreateSimlinkView (SimlinkModel existing=null)

## Protected Member Functions

| NodeView (T model)
override Brush | GetBrushForNormalSelection ()
Protected Member Functions inherited from Machinations.GUI.PointObjectView
| PointObjectView ()
virtual void | SetMainUiElementPosition (Point value)
virtual void | UpdateLabelPosition ()

## Protected Attributes

T | m_model
readonly TextBlock | m_descriptionTextBlock
List< SimlinkView > | m_simlinkViews
Protected Attributes inherited from Machinations.GUI.PointObjectView
Point | m_position
List< IConnectionView > | m_inputConnections
List< IConnectionView > | m_outputConnections
readonly TextBlock | m_textBlock
UIElement | m_uiElement
| defining shape of an object,each type of object have to have its own More...
ViewSelectionMode | m_selected
ViewHighlightMode | m_highlighted

## Properties

override int | Radius`[get]`
override string | Label`[get, set]`
int | ActivationMode`[get, set]`
int | PullMode`[get, set]`
T | Model`[get]`
override Point | Position`[get, set]`
override Color | BaseColor`[get, set]`
override ViewSelectionMode | Selected`[set]`
override ViewHighlightMode | Highlighted`[set]`
IEnumerable< SimlinkView > | SimlinkViews`[get]`
Properties inherited from Machinations.GUI.PointObjectView
virtual Point | Position`[get, set]`
UIElement | UiElement`[get]`
virtual string | Label`[get, set]`
virtual Color | BaseColor`[get, set]`
virtual ViewSelectionMode | Selected`[get, set]`
virtual ViewHighlightMode | Highlighted`[get, set]`
virtual int | Radius`[get]`
Properties inherited from Machinations.GUI.ILinkableObject
IEnumerable< SimlinkView > | SimlinkViews`[get]`
Properties inherited from Machinations.GUI.INodeView< T >
new Point | Position`[get, set]`
int | ActivationMode`[get, set]`
int | PullMode`[get, set]`

## Additional Inherited Members

Events inherited from Machinations.GUI.PointObjectView
Action | OnLoaded

## Detailed Description

ancestor of all machinations node views,contains common metods of them can be used as a source for simlink

Template Parameters

  T |

Type Constraints

  T | : | MachinationsNode |

## Constructor & Destructor Documentation

## ◆ NodeView()

Machinations.GUI.NodeView< T >.NodeView | ( | T | model | ) |

protected

## Member Function Documentation

## ◆ AddConnection()

override void Machinations.GUI.NodeView< T >.AddConnection | ( | IConnectionView | connectionView,
|  | bool | start,
|  | bool | withModel = `true`
| ) |  |

virtual

Reimplemented from Machinations.GUI.PointObjectView.

## ◆ ColorView()

override void Machinations.GUI.NodeView< T >.ColorView | ( | Brush | brush | ) |

virtual

Reimplemented from Machinations.GUI.PointObjectView.

## ◆ CreateSimlinkView()

SimlinkView Machinations.GUI.NodeView< T >.CreateSimlinkView | ( | SimlinkModel | existing = `null` | ) |

## ◆ Dispose()

override void Machinations.GUI.NodeView< T >.Dispose | ( |  | ) |

virtual

Reimplemented from Machinations.GUI.PointObjectView.

## ◆ GetAllUiElements()

override List<UIElement> Machinations.GUI.NodeView< T >.GetAllUiElements | ( |  | ) |

virtual

Reimplemented from Machinations.GUI.PointObjectView.

## ◆ GetBrushForNormalSelection()

override Brush Machinations.GUI.NodeView< T >.GetBrushForNormalSelection | ( |  | ) |

protected virtual

Reimplemented from Machinations.GUI.PointObjectView.

## ◆ GetModelElement()

override GraphElement Machinations.GUI.NodeView< T >.GetModelElement | ( |  | ) |

virtual

Implements Machinations.GUI.PointObjectView.

## ◆ InitShape()

virtual void Machinations.GUI.NodeView< T >.InitShape | ( |  | ) |

virtual

Reimplemented in Machinations.GUI.PoolView, Machinations.GUI.RegisterView, Machinations.GUI.ArtifitialPlayerView, Machinations.GUI.EndConditionView, Machinations.GUI.GateView, Machinations.GUI.SourceView, Machinations.GUI.DrainView, Machinations.GUI.ConverterView, Machinations.GUI.TraderView, and Machinations.GUI.DelayView.

## Member Data Documentation

## ◆ m_descriptionTextBlock

readonly TextBlock Machinations.GUI.NodeView< T >.m_descriptionTextBlock

protected

## ◆ m_model

T Machinations.GUI.NodeView< T >.m_model

protected

## ◆ m_simlinkViews

List<SimlinkView> Machinations.GUI.NodeView< T >.m_simlinkViews

protected

## Property Documentation

## ◆ ActivationMode

int Machinations.GUI.NodeView< T >.ActivationMode

get set

## ◆ BaseColor

override Color Machinations.GUI.NodeView< T >.BaseColor

get set

## ◆ Highlighted

override ViewHighlightMode Machinations.GUI.NodeView< T >.Highlighted

set

## ◆ Label

override string Machinations.GUI.NodeView< T >.Label

get set

## ◆ Model

T Machinations.GUI.NodeView< T >.Model

get

## ◆ Position

override Point Machinations.GUI.NodeView< T >.Position

get set

## ◆ PullMode

int Machinations.GUI.NodeView< T >.PullMode

get set

## ◆ Radius

override int Machinations.GUI.NodeView< T >.Radius

get

## ◆ Selected

override ViewSelectionMode Machinations.GUI.NodeView< T >.Selected

set

## ◆ SimlinkViews

IEnumerable<SimlinkView> Machinations.GUI.NodeView< T >.SimlinkViews

get

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

- GUI/NodeView.cs