Class CanvasObject
Interaction logic for CanvasObject.xaml
Inheritance
Implements
Inherited Members
Namespace: Phoenix.BotBrain.Overmind.Views
Assembly: Phoenix.Plugin.BotBrain.Overmind.dll
Syntax
public class CanvasObject : UserControl, IAnimatable, ISupportInitialize, IFrameworkInputElement, IInputElement, IQueryAmbient, IAddChild, IComponentConnector
Constructors
View SourceCanvasObject(string, string, double, double, object?, bool)
Initializes a new instance of the CanvasObject class.
Declaration
public CanvasObject(string nodeName, string nodeTypeName, double scaleX, double scaleY, object? objectType = null, bool isOvermind = false)
Parameters
| Type | Name | Description |
|---|---|---|
| string | nodeName | The node name. |
| string | nodeTypeName | The name of the quality pass, scenario, role, etc |
| double | scaleX | Offset to scale the X axis by |
| double | scaleY | Offset to scale the Y axis by |
| object | objectType | The data object being referenced and displayed in UI. |
| bool | isOvermind | Boolean value indicating if this is the Overmind node |
Fields
View SourceAdditionalCanvasContentOnRightProperty
Identifies the AdditionalCanvasContentOnRight dependency property.
Declaration
public static readonly DependencyProperty AdditionalCanvasContentOnRightProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
IsSelectedProperty
DependencyProperty to track which CanvasObject is selected
Declaration
public static readonly DependencyProperty IsSelectedProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
Properties
View SourceAdditionalCanvasContentOnRight
Gets or sets the content that is displayed to the right of the canvas object image.
Declaration
public object AdditionalCanvasContentOnRight { get; set; }
Property Value
| Type | Description |
|---|---|
| object |
BottomY
Gets the canvas Y coordinate for the bottom of this CanvasObject
Declaration
public double BottomY { get; }
Property Value
| Type | Description |
|---|---|
| double |
IsOvermind
Gets a value indicating whether this node is the Overmind node
Declaration
public bool IsOvermind { get; }
Property Value
| Type | Description |
|---|---|
| bool |
IsSelected
Gets or sets a value indicating whether this CanvasObject is currently selected
Declaration
public bool IsSelected { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
LeftX
Gets the canvas X coordinate for the left side of this CanvasObject
Declaration
public double LeftX { get; }
Property Value
| Type | Description |
|---|---|
| double |
MiddleX
Gets the canvas X coordinate for the middle of this CanvasObject
Declaration
public double MiddleX { get; }
Property Value
| Type | Description |
|---|---|
| double |
NameOfNode
Gets the name of this CanvasObject
Declaration
public string NameOfNode { get; }
Property Value
| Type | Description |
|---|---|
| string |
ObjectHeight
Gets the height of this object
Declaration
public double ObjectHeight { get; }
Property Value
| Type | Description |
|---|---|
| double |
ObjectType
Gets what type of CanvasObject this is (scenario/role/etc)
Declaration
public object? ObjectType { get; }
Property Value
| Type | Description |
|---|---|
| object |
ObjectWidth
Gets the width of this object
Declaration
public double ObjectWidth { get; }
Property Value
| Type | Description |
|---|---|
| double |
TopY
Gets the canvas Y coordinate for the top of this CanvasObject
Declaration
public double TopY { get; }
Property Value
| Type | Description |
|---|---|
| double |
Methods
View SourceInitializeComponent()
InitializeComponent
Declaration
public void InitializeComponent()