Machinations

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

view class for user components. keep pointers to views of attached outer views More...

Inheritance diagram for Machinations.GUI.UserComponentView:

## Public Member Functions

| UserComponentView (IUserComponentInstance component)
override GraphElement | GetModelElement ()
void | BeforeDelete (IComponentView replaceView=null)
override void | RemoveConnection (IConnectionView connection, bool start)
override void | ColorView (Brush brush)
override void | Dispose ()
List< UIElement > | GetInOutsUiElements ()
override void | AddConnection (IConnectionView connectionView, bool start, bool withModel=true)
Public Member Functions inherited from Machinations.GUI.PointObjectView
virtual List< UIElement > | GetAllUiElements ()
Point | LinePosition (Point beforeLast)
virtual void | Move (double deltaX, double deltaY)
Brush | GetBrushForSelection ()

## Protected Member Functions

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

## Properties

override string | Label`[get, set]`
override Point | Position`[get, set]`
IUserComponentInstance | Model`[get, set]`
List< InOutOuterView > | InOutOuterViews`[get, set]`
override int | Radius`[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.IComponentView
new Point | Position`[get, set]`
List< InOutOuterView > | InOutOuterViews`[get]`

## Events

Action | InOutChanged
Events inherited from Machinations.GUI.PointObjectView
Action | OnLoaded
Events inherited from Machinations.GUI.IComponentView
Action | InOutChanged

## Additional Inherited Members

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

## Detailed Description

view class for user components. keep pointers to views of attached outer views

## Constructor & Destructor Documentation

## ◆ UserComponentView()

Machinations.GUI.UserComponentView.UserComponentView | ( | IUserComponentInstance | component | ) |

## Member Function Documentation

## ◆ AddConnection()

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

virtual

Reimplemented from Machinations.GUI.PointObjectView.

## ◆ BeforeDelete()

void Machinations.GUI.UserComponentView.BeforeDelete | ( | IComponentView | replaceView = `null` | ) |

Implements Machinations.GUI.IComponentView.

## ◆ ColorView()

override void Machinations.GUI.UserComponentView.ColorView | ( | Brush | brush | ) |

virtual

Reimplemented from Machinations.GUI.PointObjectView.

## ◆ Dispose()

override void Machinations.GUI.UserComponentView.Dispose | ( |  | ) |

virtual

Reimplemented from Machinations.GUI.PointObjectView.

## ◆ GetBrushForNormalSelection()

override Brush Machinations.GUI.UserComponentView.GetBrushForNormalSelection | ( |  | ) |

protected virtual

Reimplemented from Machinations.GUI.PointObjectView.

## ◆ GetInOutsUiElements()

List<UIElement> Machinations.GUI.UserComponentView.GetInOutsUiElements | ( |  | ) |

## ◆ GetModelElement()

override GraphElement Machinations.GUI.UserComponentView.GetModelElement | ( |  | ) |

virtual

Implements Machinations.GUI.PointObjectView.

## ◆ RemoveConnection()

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

virtual

Reimplemented from Machinations.GUI.PointObjectView.

## ◆ SetMainUiElementPosition()

override void Machinations.GUI.UserComponentView.SetMainUiElementPosition | ( | Point | value | ) |

protected virtual

Reimplemented from Machinations.GUI.PointObjectView.

## ◆ UpdateLabelPosition()

override void Machinations.GUI.UserComponentView.UpdateLabelPosition | ( |  | ) |

protected virtual

Reimplemented from Machinations.GUI.PointObjectView.

## Property Documentation

## ◆ InOutOuterViews

List<InOutOuterView> Machinations.GUI.UserComponentView.InOutOuterViews

get set

## ◆ Label

override string Machinations.GUI.UserComponentView.Label

get set

## ◆ Model

IUserComponentInstance Machinations.GUI.UserComponentView.Model

get set

## ◆ Position

override Point Machinations.GUI.UserComponentView.Position

get set

## ◆ Radius

override int Machinations.GUI.UserComponentView.Radius

get

## Event Documentation

## ◆ InOutChanged

Action Machinations.GUI.UserComponentView.InOutChanged

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

- GUI/UserComponentView.cs