INSA
  • Tutorials
  • Documentation
  • Api Documentation
  • Changelog
Show / Hide Table of Contents
  • Relations
    • Xareus.Relations
      • IEngine
      • IObject
      • IObjectType
      • IRelation
      • Object
      • ObjectMatch
      • ObjectPattern
      • ObjectQueryParameters
      • ObjectType
      • PatternType
      • Realization
      • RealizationQueryParameters
      • Reference
      • Relation
      • Type
      • TypeMatch
      • TypeSearch
    • Xareus.Relations.CSharp
      • Engine
    • Xareus.Relations.Extra
      • Helper
      • IRunnableRelation
      • ObjectPatternAttribute
    • Xareus.Relations.Tests
      • Bolt
      • Inheritance
      • RelationsTests
      • S3PM
    • Xareus.Relations.Tests.CSharp
      • EngineTest
    • Xareus.Relations.Utilities
      • Extensions
  • Scenarios
    • Xareus.Scenarios
      • AFunction
      • ASequence
      • Assignment
      • ComplexSequence
      • Decision
      • DecisionEvent
      • DecisionTree
      • Decoration
      • Event
      • Event.EffectorData
      • Event.SensorData
      • Extendable
      • ExtendedInfo
      • ExternalScenario
      • Function
      • IValueParser
      • Identifiable
      • InitialSequence
      • Net
      • Node
      • NodeUserData
      • Parameter
      • Place
      • ProxySequence
      • Reference
      • SMTransition
      • SafePetriNet
      • Scenario
      • ScenarioLoadedEventArgs
      • ScenarioLoadingParameters
      • ScenarioState
      • SequenceState
      • SetValueInContextEffector
      • SimpleSequence
      • State
      • StateMachine
      • Transition
      • TransitionFiredEventArgs
      • TypedValue
      • ValueParser
    • Xareus.Scenarios.Arithmetics
      • NumberBetweenSensor
      • NumberEffector
      • NumberEffector.ArithmeticalOperator
      • NumberSensor
      • NumberSensor.ComparisonOperator
      • RandomNumberEffector
      • Utils
    • Xareus.Scenarios.AssignmentEval
      • AAssignmentEval
    • Xareus.Scenarios.Boolean
      • BooleanEffector
      • BooleanEffector.LogicalOperator
      • BooleanSensor
      • BooleanSensor.ComparisonOperator
    • Xareus.Scenarios.Context
      • BackwardCompatibilityContext
      • BackwardCompatibilityContext.ParserDelegate
      • ContextType
      • IContext
      • Map
      • SimpleDictionary
      • Trie
    • Xareus.Scenarios.ContextInit
      • AContextInit
      • DefaultContextInit
    • Xareus.Scenarios.Converter
      • BoolConverter
      • ByteConverter
      • CharConverter
      • DoubleConverter
      • FloatConverter
      • IntConverter
      • LongConverter
      • PlaceConverter
      • PrimitiveConverter
      • SByteConverter
      • SMTransitionConverter
      • SafePetriNetConverter
      • ScenarioStateConverter
      • ScenarioVariablePathConverter
      • SequenceStateConverter
      • ShortConverter
      • StateConverter
      • StateMachineConverter
      • TransitionConverter
      • UIntConverter
      • ULongConverter
      • UShortConverter
      • VariableConverter
      • VariablePathConverter
    • Xareus.Scenarios.Converters
      • ArrayConverter
      • CollectionConverter
      • StringConverter
      • TypeConverter
    • Xareus.Scenarios.Effector
      • AEffector
    • Xareus.Scenarios.Exception
      • InvalidDataException
      • InvalidStateException
    • Xareus.Scenarios.Extra
      • AssignmentOverlap
      • DefaultTokenUpdate
      • DefaultTokenUpdate.TokenData
      • DownstreamSequenceList
      • EventSensor
      • ExtendedInfoHelper
      • SelectFromListEffector
      • SequenceList
      • TransitionFiredSensor
      • UpstreamSequenceList
      • VariableExistsSensor
    • Xareus.Scenarios.Extra.Time
      • WaitEffector
    • Xareus.Scenarios.FinalTokenMerge
      • AFinalTokenMerge
      • CopyAllTokens
      • PickFirst
    • Xareus.Scenarios.Network
      • AScenarioSender
      • INetSocketTcp
      • NetSocketTcpScenarioReceiver
      • NetSocketTcpScenarioSender
      • NetSocketTcpScenarioSender.ClientNewScenarioRegistration
      • NetSocketTcpScenarioSender.ClientUpdateRegistration
      • NetSocketTcpUtils
      • NetSocketTcpUtils.ReceiveState
    • Xareus.Scenarios.Network.Tests
      • NetworkTest
    • Xareus.Scenarios.ScenarioManipulation
      • AddTokenToSequencesEffector
      • AddTokenToSequencesEffector.TokenData
      • LoadScenarioStateEffector
      • LoadScenarioStateFromFileEffector
      • LoadSequenceStateEffector
      • LoadSequenceStateFromFileEffector
      • RemoveTokensFromSequencesEffector
      • SaveScenarioStateEffector
      • SaveScenarioStateInFileEffector
      • SaveSequenceStateEffector
      • SaveSequenceStateInFileEffector
    • Xareus.Scenarios.Sensor
      • ASensor
      • ASensor.Result
    • Xareus.Scenarios.Tests
      • ConfigurationParameterTest
      • ConvertersTests
      • IContextTest
      • ParserTest
      • ProgramTest
      • ScenarioManipulationTests
      • ScenarioTest
      • TypeTest
      • TypeTest.OverrideClass
    • Xareus.Scenarios.Time
      • RandomTimeSensor
      • TimeParametersConverter
      • TimeSensor
      • TimeUnit
      • TimeUtils
    • Xareus.Scenarios.TokenAssign
      • ATokenAssign
      • DoNothing
    • Xareus.Scenarios.TokenInit
      • ATokenInit
      • DefaultTokenInit
      • EmptyTokenInit
    • Xareus.Scenarios.TokenMerge
      • ATokenMerge
      • CopyAllTokens
      • PickFirst
    • Xareus.Scenarios.TokenSplit
      • ATokenSplit
    • Xareus.Scenarios.Utilities
      • BackwardCompatibilityManager
      • ConfigurationParameterAttribute
      • ContextVariableAttribute
      • EventContextEntryAttribute
      • FunctionDescriptionAttribute
      • FunctionManager
      • IFunctionParametersConverter
      • IRenameClass
      • IRenamedProvider
      • Necessity
      • ObsoleteUtils
      • OverrideClassAttribute
      • ParameterChecker
      • RenamedAttribute
      • RenamedManagerBase
      • RenamedTypeUtils
      • RuntimeTools
      • TypeConverterForAttribute
    • Xareus.Scenarios.Variables
      • ContextVariable<T>
      • EventVariablePath
      • ExternalContextVariablePath
      • ScenarioVariablePath
      • TokenVariablePath
      • Variable
      • VariablePath
  • Scenarios.Relations
      • Program
    • Xareus.Scenarios.Relations
      • Action
      • ActionLogEffector
      • ActionRecordEffector
      • ActionRecorder
      • AnyRelationSensor
      • Change
      • Environment
      • Execution
      • IRealizationManager
      • InitializeRecorderEffector
      • RealizationContext
      • RealizationManager
      • RealizationRecord
      • RelationEffector
      • RelationSensor
      • RelationsValueParser
      • RenamedProvider
      • WriteActionRecordEffector
    • Xareus.Scenarios.Relations.TypeConverter
      • FiveObjectConverter
      • RealizationConverter
      • RelationConverter
  • Utils
    • Xareus.Utils
      • AssemblyUtils
      • DatedEventManager<DataType, TimeType>
      • DatedEventManager<DataType, TimeType>.EventRecord
      • Extensions
      • FieldsAndPropertiesContainer
      • MemberUtils
      • Serialization
      • TypeUtils
      • UriUtils
    • Xareus.Utils.Tests
      • DatedEventManagerTest
      • DatedEventManagerTest.TestDatedEventManager
      • ExtensionsTests
      • MemberUtilsTest
      • TypeUtilsTests
      • TypeUtilsTests.DummySensor
      • TypeUtilsTests.GenericClassUser
      • TypeUtilsTests.GenericClass<T>
      • UriUtilsTest
  • Unity
    • FIVE.Unity
      • UFManager
      • UFRelationEngine
      • UFScenarioEngineKernel
    • Xareus.Unity
      • GameObjectExtension
      • Log4netFileAppender
      • Log4netUnityAppender
      • XULog4net
      • XareusManager
    • Xareus.Unity.Converters
      • ColorConverter
      • MemberInfoConverter
      • MethodInfoConverter
      • QuaternionConverter
      • UnityObjectConverter
      • Vector2Converter
      • Vector2IntConverter
      • Vector3Converter
      • Vector3IntConverter
      • Vector4Converter
      • VectorConverter
    • Xareus.Unity.TypeDescriptorContext
      • DictionaryDescriptorContext
      • SimpleTypeDescriptorContext<T>
      • UnityObjectDescriptorContext
  • Unity Relations
    • Xareus.Relations.Scenarios.Unity
      • TypeWithScenario
    • Xareus.Relations.Unity
      • BaseEditorDescriptorAttribute
      • GenerationMode
      • IRelationEngine
      • IdentifiableBehaviour
      • ObjectPatternAttribute
      • ObjectPatternDescriptorAttribute
      • ObjectQueryWithCallback
      • ParameterDescriptorAttribute
      • RealizationQueryWithCallback
      • RelationDescriptorAttribute
      • RelationEngine
      • RelationEngineKernel
      • RelationParameters
      • Serializer
      • TypeDescriptorAttribute
      • TypeMember
      • TypeParentAttribute
      • UniqueIDGenerator
      • XUObject
      • XUObject.XuObjectChanged
      • XUObjectPattern
      • XUObjectQueryParameters
      • XURealization
      • XURealizationQueryParameters
      • XURelation
      • XUType
      • XUTypeSearch
    • Xareus.Relations.Unity.Converters
      • XUObjectConverter
      • XURelationTypeConverter
      • XUTypeConverter
  • Unity Scenarios
      • ABaseScenarioElementUI
      • DecisionTreeUI
    • Xareus.Scenarios.Network.Unity
      • NetworkClient
      • NetworkManager
      • NetworkServer
      • UnityNetSocketTcpScenarioReceiver
      • UnityNetSocketTcpScenarioSender
    • Xareus.Scenarios.Unity
      • AInUnityStepSensor
      • AUnityContextInit
      • AUnityEffector
      • AUnitySensor
      • AUnityTokenAssign
      • AdditionalScenarioFile
      • AdvancedConfigurationParameterAttribute
      • Comment
      • DecisionTreeEvaluation
      • ExternalContextEntryAttribute
      • IScenarioEngine
      • ObsoleteFunctionAttribute
      • ObsoleteFunctionAttribute.ParameterConvesion
      • RuntimeScenarioFileRegistry
      • ScenarioEngine
      • ScenarioEngineKernel
      • ScenarioRunner
      • Section
    • Xareus.Scenarios.Unity.Edition
      • BusinessControl
      • Constants
      • ContextVariableManager
      • ContextVariableManager.SerializedContextVariables
      • IScenarioSerializer
      • IToolbarEntryData
      • Layer
      • Layer.UxmlFactory
      • Layer.UxmlTraits
      • LayerBar
      • LayerBar.UxmlFactory
      • LayerBar.UxmlTraits
      • LayerBarButton
      • LayerBarButton.UxmlFactory
      • LayerBarButton.UxmlTraits
      • ScenarioEditorExtendedInfoUpdater
      • ScenarioSerializer
      • ScenarioTabHandler
      • ScenarioTabHandler.LayerViewData
      • ScenarioTabHandler.LayerViewDataDictionary
      • ScenarioWrapper
      • ScenarioWrapper.ScenarioDataConsumers
      • SequenceType
      • SerializableScenario
      • Tab
      • Tab.UxmlFactory
      • Tab.UxmlTraits
      • ThemeManager
      • ThemeManager.ThemeChange
      • XmlUtils
    • Xareus.Scenarios.Unity.Edition.Events
      • ArcCreatedEvent
      • ArcDeletedEvent
      • ArcStartedEvent
      • CreateContextToFireEvent
      • DeselectedEventArgs
      • EventCallbackFunctor<EventType>
      • IEventCallbackFunctor
      • IScenarioEventHandler
      • IdChangeEvent
      • LabelChangeEvent
      • OpenExternalScenarioEventArgs
      • ScenarioDataChangedEventArgs
    • Xareus.Scenarios.Unity.Edition.UI
      • ABaseArcUI
      • AClickableElementUI
      • ADecisionArcPreviewUI
      • AMovableElementUI
      • AMovableElementUI.MovableElementUIMoved
      • ArcDirectionUI
      • ArcPreviewUI
      • ArcUI
      • ArrowToNodesDirectionUI
      • ArrowToNodesUI
      • BackgroundGrid
      • CanvasUI
      • CanvasUI.UxmlFactory
      • CanvasUI.UxmlTraits
      • CommentUI
      • ComplexSequenceUI
      • DecisionArcUI
      • DecisionNodeUI
      • DecisionUI
      • EffectorUI
      • ExternalScenarioUI
      • FalseDecisionArcPreviewUI
      • FalseDecisionArcUI
      • FalseOutUI
      • FinalUI
      • InitialUI
      • LayerUI
      • NodeUI
      • PartialTokenUI
      • PetriNetUI
      • PlaceUI
      • SMTransitionUI
      • SectionUI
      • SensorUI
      • SequenceUI
      • StateMachineUI
      • StateUI
      • TokenAssignUI
      • TokenMergeUI
      • TokenUI
      • TransitionUI
      • TrueDecisionArcPreviewUI
      • TrueDecisionArcUI
      • TrueOutUI
    • Xareus.Scenarios.Unity.MiddleVR
      • AUnityClusterEffector
      • VRCall
    • Xareus.Scenarios.Unity.Providers
      • IClassConstraintableExtension
      • IClassReceiverExtension
      • IConstraintable
      • IConstraintable<T>
      • IProvider
      • IProvider<T>
      • IReceiver
      • IReceiver<T>
      • ProvideConstraintAttribute
      • ProviderAttribute
      • ValueChangedEventArgs<T>
    • Xareus.Scenarios.Unity.VisualScripting
      • Constants
      • VisualScriptHolder
      • VisualScriptingEffector
      • VisualScriptingSensor
  • Unity Utils
    • Xareus.Unity
      • MethodParameters
    • Xareus.Unity.Utils
      • ClassTemplate
      • ClusterUtils
      • ColorUtils
      • FileUtils
      • StringUtils
      • UnityEditorUtils
      • UnityUtils
  • Unity Librairies
    • Xareus
      • StaticClassMemberValueSensor
    • Xareus.Relations.Scenarios
      • CheckTypeWithScenarioMemberValueSensor
      • InvokeTypeWithScenarioMethodEffector
      • SetTypeWithScenarioMemberValueEffector
    • Xareus.Scenarios.Input
      • KeyPressedSensor
    • Xareus.Scenarios.Relations
      • CheckXareusObjectTypeMemberValueSensor
      • CheckXareusTypeMemberValueSensor
      • CompareXareusTypesMembersValuesSensor
      • InvokeXareusObjectMethodEffector
      • RandomXareusObjectEffector
      • RandomXareusObjectEffector.Result
      • RandomXareusObjectWithTypeEffector
      • SelectXareusTypesFromListEffector
      • SetXareusTypeMemberValueEffector
    • Xareus.Scenarios.Relations.ParametersConverter
      • CheckXareusTypeMemberValueSensorConverter
      • CompareXareusTypesMembersValuesSensorConverter
      • TypeValueSensorParametersConverter
    • Xareus.Scenarios.Time.Unity
      • UnityTimeSensor
      • UnityTimeSensor.TimeType
    • Xareus.Scenarios.Unity
      • AInvokeMethodEffector
      • AnyInputSensor
      • ChangeColorEffector
      • ChangeParentEffector
      • ChangeTextEffector
      • CheckMemberValueSensor
      • CompareMembersValuesSensor
      • DistanceSensor
      • HasComponentOfTypeSensor
      • InvokeStaticMethodEffector
      • InvokeUnityObjectMethodEffector
      • LoadSceneEffector
      • LogEffector
      • ObjectClickedSensor
      • ObjectCollisionSensor
      • PlaySoundEffector
      • SceneLoadedSensor
      • ScreenFadeEffector
      • ScreenFadeEffector.FadeType
      • SelectChildObjects
      • SelectComponents
      • SetActiveEffector
      • SetEnabledEffector
      • SetMemberValueEffector
      • StartDisplaySpriteEffector
      • StartDisplayTextAssetEffector
      • StartDisplayVideoClipEffector
      • StopAudioSourceEffector
      • StopDisplaySpriteEffector
      • StopDisplayTextAssetEffector
      • StopDisplayVideoClipEffector
      • UnityEventSensor
      • UnityNumberSensor
    • Xareus.Scenarios.Unity.UI
      • ButtonClickedSensor
      • DropdownSensor
      • ToggleValueSensor
      • ToggleValueSensor.SelectMode
    • Xareus.Scenarios.Unity.Utils
      • CompareMembersValuesSensorUpdater
      • ObjectCollisionSensorUpdater
    • Xareus.Unity
      • CheckMethodReturnValueSensor
      • DefaultUnityContextInit
      • DefaultUnityTokenUpdate
      • ScreenFadeEffect
      • SetValueInContextEffector
      • UFEOtherTrigger

Class CanvasUI

Displays and manage events of a given scenario Responsible of undoing/redoing commands on the scenario Events : The canvas subscribes to events coming for the layers it manages

Inheritance
object
CallbackEventHandler
Focusable
VisualElement
CanvasUI
Namespace: Xareus.Scenarios.Unity.Edition.UI
Assembly: Xareus.Scenarios.Unity.Edition.dll
Syntax
[Serializable]
public class CanvasUI : VisualElement

Constructors

CanvasUI()

Declaration
public CanvasUI()

Fields

MAX_ZOOM

Declaration
public static readonly float MAX_ZOOM
Field Value
Type Description
float

MIN_ZOOM

Declaration
public static readonly float MIN_ZOOM
Field Value
Type Description
float

grid

Declaration
public BackgroundGrid grid
Field Value
Type Description
BackgroundGrid

Properties

ArcSourceNode

Declaration
public NodeUI ArcSourceNode { get; }
Property Value
Type Description
NodeUI

CanvasTexture

Declaration
public Texture2D CanvasTexture { get; }
Property Value
Type Description
Texture2D

CurrentLayer

Declaration
public LayerUI CurrentLayer { get; }
Property Value
Type Description
LayerUI

IsCreatingArc

Indicates if the canvas is currently in the process of building an arc

Declaration
public bool IsCreatingArc { get; }
Property Value
Type Description
bool

IsPlaying

Is the canvas displaying a scenario that is currently playing ?

Declaration
public bool IsPlaying { get; }
Property Value
Type Description
bool

LayerIds

Declaration
public List<string> LayerIds { get; }
Property Value
Type Description
List<string>

MousePosition

Access to the last known mouse position. This is necessary because during some events, the mouse position in the current event is wrong

Declaration
public Vector2 MousePosition { get; set; }
Property Value
Type Description
Vector2

Played

Declaration
public bool Played { get; set; }
Property Value
Type Description
bool

Position

Declaration
public Vector2 Position { get; set; }
Property Value
Type Description
Vector2

ScenarioId

Declaration
public string ScenarioId { get; }
Property Value
Type Description
string

ScenarioTabHandler

Declaration
public ScenarioTabHandler ScenarioTabHandler { get; }
Property Value
Type Description
ScenarioTabHandler

ScenarioWrapper

Access to the scenario within the canvas

Declaration
public ScenarioWrapper ScenarioWrapper { get; set; }
Property Value
Type Description
ScenarioWrapper

SelectedUIElements

Access to canvas current selection. This can include the temporary selection being performed

Declaration
public List<AClickableElementUI> SelectedUIElements { get; set; }
Property Value
Type Description
List<AClickableElementUI>

Zoom

Declaration
public float Zoom { get; set; }
Property Value
Type Description
float

Methods

AddLayer(string)

Adds a layer to the current list

Declaration
public void AddLayer(string id)
Parameters
Type Name Description
string id

AddToSelection(AClickableElementUI, bool)

Select the given GUI element

Declaration
protected void AddToSelection(AClickableElementUI elementUI, bool temporary = false)
Parameters
Type Name Description
AClickableElementUI elementUI
bool temporary

BusinessToViewCoordinates(Vector2)

Converts coordinates from the business to the view. Business coordinates are the value stored within the XML. View coordinates are values displayed within the canvas. They depend on zoom and canvas position.

Declaration
public Vector2 BusinessToViewCoordinates(Vector2 businessCoordinates)
Parameters
Type Name Description
Vector2 businessCoordinates
Returns
Type Description
Vector2

CheckNodesVisibility()

Declaration
protected void CheckNodesVisibility()

CheckReload()

Declaration
protected void CheckReload()

ComputeClosestNodePosition()

Declaration
public Vector2 ComputeClosestNodePosition()
Returns
Type Description
Vector2

ComputeNodesCenterOfGravity()

Computes and returns the position of the center of gravity of the current layer.

Declaration
public Vector2 ComputeNodesCenterOfGravity()
Returns
Type Description
Vector2

Vector2 of the coordinates of the center of gravity of the current layer.

ConvertFromSystem(Vector2, Vector2, float)

Converts coordinates from another system. It removes offset and zoom from the source.

Declaration
public static Vector2 ConvertFromSystem(Vector2 source, Vector2 offset, float zoom)
Parameters
Type Name Description
Vector2 source
Vector2 offset
float zoom
Returns
Type Description
Vector2

ConvertToSystem(Vector2, Vector2, float)

Converts coordinates to another system. It adds an offset and a zoom to the source.

Declaration
public static Vector2 ConvertToSystem(Vector2 source, Vector2 offset, float zoom)
Parameters
Type Name Description
Vector2 source
Vector2 offset
float zoom
Returns
Type Description
Vector2

CopySelectedNodesToClipboard()

Copy the selected nodes data into the system clipboard

Declaration
public bool CopySelectedNodesToClipboard()
Returns
Type Description
bool

CreateArcPreview(ArcStartedEvent)

Declaration
public void CreateArcPreview(ArcStartedEvent args)
Parameters
Type Name Description
ArcStartedEvent args

Delete(AClickableElementUI)

Delete all selected nodes

Declaration
protected void Delete(AClickableElementUI elementUI)
Parameters
Type Name Description
AClickableElementUI elementUI

DeleteSelected()

Delete all selected nodes

Declaration
public void DeleteSelected()

Deselect(AClickableElementUI, bool)

Deselect the given GUI Element

Declaration
protected void Deselect(AClickableElementUI elementUI, bool temporary = false)
Parameters
Type Name Description
AClickableElementUI elementUI
bool temporary

DeselectAll()

Deselect everything in the canvas

Declaration
public void DeselectAll()

DoReload()

Declaration
protected void DoReload()

DuplicateSelectedNodes(Vector2)

Duplicate the selected nodes

Declaration
public bool DuplicateSelectedNodes(Vector2 duplicatePosition)
Parameters
Type Name Description
Vector2 duplicatePosition
Returns
Type Description
bool

GetLayer(string)

Get the layer from the local cache. Creates it if absent

Declaration
public LayerUI GetLayer(string id)
Parameters
Type Name Description
string id
Returns
Type Description
LayerUI

HandleElementsUISelection(IEnumerable<AClickableElementUI>, bool)

Select the given UI Elements

Declaration
protected void HandleElementsUISelection(IEnumerable<AClickableElementUI> uiElements, bool temporary = false)
Parameters
Type Name Description
IEnumerable<AClickableElementUI> uiElements
bool temporary

InvertElementUISelection(AClickableElementUI, bool)

Invert the given UI Element selection state

Declaration
protected void InvertElementUISelection(AClickableElementUI elementUI, bool temporary = false)
Parameters
Type Name Description
AClickableElementUI elementUI
bool temporary

InvertElementsUISelection(IEnumerable<AClickableElementUI>, bool)

Invert the given UI Elements selection state

Declaration
protected void InvertElementsUISelection(IEnumerable<AClickableElementUI> elementsUI, bool temporary = false)
Parameters
Type Name Description
IEnumerable<AClickableElementUI> elementsUI
bool temporary

MoveSelection(Vector2)

Declaration
public void MoveSelection(Vector2 mouseDelta)
Parameters
Type Name Description
Vector2 mouseDelta

OnExecuteCommand(ExecuteCommandEvent)

Declaration
protected void OnExecuteCommand(ExecuteCommandEvent evt)
Parameters
Type Name Description
ExecuteCommandEvent evt

OnKeyDown(KeyDownEvent)

Declaration
protected void OnKeyDown(KeyDownEvent evt)
Parameters
Type Name Description
KeyDownEvent evt

OnValidateCommand(ValidateCommandEvent)

Declaration
protected void OnValidateCommand(ValidateCommandEvent evt)
Parameters
Type Name Description
ValidateCommandEvent evt

PasteFromClipboard(Vector2)

Try to past the data from the system clipboard

Declaration
public bool PasteFromClipboard(Vector2 position)
Parameters
Type Name Description
Vector2 position
Returns
Type Description
bool

Reload()

Ask for a complete reload of the canvas. If multiple reloads are requested at the same frame, onely one will occur

Declaration
public void Reload()

RemoveLastLayer()

Remove the last layer if possible

Declaration
public void RemoveLastLayer()

Reselect()

Redo the selection to resend the events

Declaration
public void Reselect()

ResetArcPreview()

Declaration
public void ResetArcPreview()

SelectElementUI(AClickableElementUI)

Select the given UI Element

Declaration
protected void SelectElementUI(AClickableElementUI elementUI)
Parameters
Type Name Description
AClickableElementUI elementUI

SelectElementsUI(IEnumerable<AClickableElementUI>, bool)

Select the given UI Element

Declaration
protected void SelectElementsUI(IEnumerable<AClickableElementUI> elementsUi, bool additive = false)
Parameters
Type Name Description
IEnumerable<AClickableElementUI> elementsUi
bool additive

SelectMovableUIElements(IEnumerable<string>, bool)

Select the given MovableUIElements

Declaration
protected void SelectMovableUIElements(IEnumerable<string> movableIds, bool additive = false)
Parameters
Type Name Description
IEnumerable<string> movableIds
bool additive

SelectParentLayer()

Select the parent layer

Declaration
public void SelectParentLayer()

Serialize(IEnumerable<NodeUI>)

Declaration
public static string Serialize(IEnumerable<NodeUI> nodes)
Parameters
Type Name Description
IEnumerable<NodeUI> nodes
Returns
Type Description
string

StopPlaying()

Declaration
public void StopPlaying()

Update()

Declaration
public void Update()

ViewToBusinessCoordinates(Vector2)

Converts coordinates from the view to the business. View coordinates are values displayed within the canvas. They depend on zoom and canvas position. Business coordinates are the value stored within the XML.

Declaration
public Vector2 ViewToBusinessCoordinates(Vector2 viewCoordinates)
Parameters
Type Name Description
Vector2 viewCoordinates
Returns
Type Description
Vector2

Events

ArcCreated

Signal emitted when an arc is created

Declaration
public event EventHandler<ArcCreatedEvent> ArcCreated
Event Type
Type Description
EventHandler<ArcCreatedEvent>

ComplexSequenceDoubleClicked

Signal emitted when a sub complex sequence is opened

Declaration
public event EventHandler<string> ComplexSequenceDoubleClicked
Event Type
Type Description
EventHandler<string>

DeselectedAll

Signal emitted when nothing is selected

Declaration
public event EventHandler<DeselectedEventArgs> DeselectedAll
Event Type
Type Description
EventHandler<DeselectedEventArgs>

ExternalScenarioDoubleClicked

Signal emitted when an external scenario must be opened

Declaration
public event EventHandler<ExternalScenarioUI> ExternalScenarioDoubleClicked
Event Type
Type Description
EventHandler<ExternalScenarioUI>

LayerChanged

Signal emitted when the current layer is changed

Declaration
public event EventHandler LayerChanged
Event Type
Type Description
EventHandler

RemoveAllLayers

Signal emitted when all layers of the canvas must be removed

Declaration
public event EventHandler RemoveAllLayers
Event Type
Type Description
EventHandler

ScenarioDataChanged

Signal emitted when a command is executed

Declaration
public event EventHandler<ScenarioDataChangedEventArgs> ScenarioDataChanged
Event Type
Type Description
EventHandler<ScenarioDataChangedEventArgs>

SelectionUpdated

Signal emitted when the UI Elements selection changed

Declaration
public event EventHandler<List<AClickableElementUI>> SelectionUpdated
Event Type
Type Description
EventHandler<List<AClickableElementUI>>
INSA     IRISA     Inria     Ouest Valorisation Back to top