C# Class Axiom.Samples.SdkTrayManager

Main class to manage a cursor, backdrop, trays and widgets.
Inheritance: ISdkTrayListener, IResourceGroupListener
Afficher le fichier Open project: WolfgangSt/axiom Class Usage Examples

Protected Properties

Свойство Type Description
CursorWasVisible bool
Dialog TextBox
LoadBar Axiom.Samples.ProgressBar
Logo DecorWidget
Mouse SharpInputSystem.Mouse
StatsPanel ParamsPanel
backdrop Axiom.Overlays.OverlayElementContainer
backdropLayer Axiom.Overlays.Overlay
cursor Axiom.Overlays.OverlayElementContainer
cursorLayer Axiom.Overlays.Overlay
expandedMenu SelectMenu
groupInitProportion Real
groupLoadProportion Real
listener ISdkTrayListener
loadInc Real
mDialogShade Axiom.Overlays.OverlayElementContainer
mFpsLabel Label
mName String
mNo Axiom.Samples.Button
mOk Axiom.Samples.Button
mPriorityLayer Axiom.Overlays.Overlay
mTrayDrag bool
mTrayPadding Real
mTrays Axiom.Overlays.OverlayElementContainer[]
mTraysLayer Axiom.Overlays.Overlay
mWidgetDeathRow System.Collections.Generic.List
mWidgetPadding Real
mWidgetSpacing Real
mWidgets WidgetList[]
mWindow Axiom.Graphics.RenderWindow
mYes Axiom.Samples.Button
trayWidgetAlign HorizontalAlignment[]

Méthodes publiques

Méthode Description
AdjustTrays ( ) : void

Fits trays to their contents and snaps them to their anchor locations.

CheckboxToggled ( CheckBox box ) : void

ClearAllTrays ( ) : void

Removes all widgets from all widget trays.

ClearTray ( TrayLocation trayLoc ) : void

Removes all widgets from a widget tray.

CloseDialog ( ) : void

Hides whatever dialog is currently showing.

CreateButton ( TrayLocation trayLoc, String name, String caption ) : Axiom.Samples.Button

CreateButton ( TrayLocation trayLoc, String name, String caption, Real width ) : Axiom.Samples.Button

CreateCheckBox ( TrayLocation trayLoc, String name, System.String caption ) : CheckBox

CreateCheckBox ( TrayLocation trayLoc, String name, System.String caption, Real width ) : CheckBox

CreateDecorWidget ( TrayLocation trayLoc, String name, String typeName, String templateName ) : DecorWidget

CreateLabel ( TrayLocation trayLoc, String name, System.String caption ) : Label

CreateLabel ( TrayLocation trayLoc, String name, System.String caption, Real width ) : Label

CreateLogoWidget ( TrayLocation trayLoc, String name, String typeName, String templateName ) : DecorWidget

CreateLongSelectMenu ( TrayLocation trayLoc, String name, System.String caption, Real width, Real boxWidth, int maxItemsShown ) : SelectMenu

CreateLongSelectMenu ( TrayLocation trayLoc, String name, System.String caption, Real width, Real boxWidth, int maxItemsShown, IList items ) : SelectMenu

CreateLongSlider ( TrayLocation trayLoc, String name, System.String caption, Real width, Real trackWidth, Real valueBoxWidth, Real minValue, Real maxValue, int snaps ) : Axiom.Samples.Slider

CreateLongSlider ( TrayLocation trayLoc, String name, System.String caption, Real trackWidth, Real valueBoxWidth, Real minValue, Real maxValue, int snaps ) : Axiom.Samples.Slider

CreateParamsPanel ( TrayLocation trayLoc, String name, Real width, IList paramNames ) : ParamsPanel

CreateParamsPanel ( TrayLocation trayLoc, String name, Real width, int lines ) : ParamsPanel

CreateProgressBar ( TrayLocation trayLoc, String name, System.String caption, Real width, Real commentBoxWidth ) : Axiom.Samples.ProgressBar

CreateSeparator ( TrayLocation trayLoc, String name ) : Separator

CreateSeparator ( TrayLocation trayLoc, String name, Real width ) : Separator

CreateTextBox ( TrayLocation trayLoc, String name, System.String caption, Real width, Real height ) : TextBox

CreateThickSelectMenu ( TrayLocation trayLoc, String name, System.String caption, Real width, int maxItemsShown ) : SelectMenu

CreateThickSelectMenu ( TrayLocation trayLoc, String name, System.String caption, Real width, int maxItemsShown, IList items ) : SelectMenu

CreateThickSlider ( TrayLocation trayLoc, String name, System.String caption, Real width, Real valueBoxWidth, Real minValue, Real maxValue, int snaps ) : Axiom.Samples.Slider

DestroyAllWidgets ( ) : void

Destroys all widgets.

DestroyAllWidgetsInTray ( TrayLocation trayLoc ) : void

Destroys all widgets in a tray.

DestroyWidget ( String name ) : void

Destroys a widget.

DestroyWidget ( TrayLocation trayLoc, String name ) : void

Destroys a widget.

DestroyWidget ( TrayLocation trayLoc, int place ) : void

Destroys a widget.

DestroyWidget ( Widget widget ) : void

Destroys a widget.

Dispose ( ) : void

Destroys background, cursor, widgets, and trays.

FrameRenderingQueued ( FrameEventArgs evt ) : bool

Process frame events. Updates frame statistics widget set and deletes all widgets queued for destruction.

GetCursorRay ( Camera cam ) : Ray

Returns a 3D ray into the scene that is directly underneath the cursor.

GetWidget ( String name ) : Widget

Gets a widget by name.

GetWidget ( TrayLocation trayLoc, String name ) : Widget

Gets a widget from a tray by name.

GetWidget ( TrayLocation trayLoc, int place ) : Widget

Gets a widget from a tray by place.

GetWidgetCount ( TrayLocation trayLoc ) : int

Gets the number of widgets in a tray.

GetWidgetEnumerator ( TrayLocation trayLoc ) : IEnumerator

Gets all the widgets of a specific tray.

HideAll ( ) : void

HideBackdrop ( ) : void

HideCursor ( ) : void

HideFrameStats ( ) : void

Hides frame statistics widget set.

HideLoadingBar ( ) : void

HideLogo ( ) : void

HideTrays ( ) : void

InjectMouseDown ( SharpInputSystem evt, SharpInputSystem id ) : bool

Processes mouse button down events. Returns true if the event was

consumed and should not be passed on to other handlers.

InjectMouseMove ( SharpInputSystem evt ) : bool

Updates cursor position. Returns true if the event was

consumed and should not be passed on to other handlers.

InjectMouseUp ( SharpInputSystem evt, SharpInputSystem id ) : bool

Processes mouse button up events. Returns true if the event was

consumed and should not be passed on to other handlers.

ItemSelected ( SelectMenu menu ) : void

LabelHit ( Label label ) : void

Toggles visibility of advanced statistics.

LocateWidgetInTray ( Widget widget ) : int

Gets a widget's position in its tray.

MoveWidgetToTray ( String name, TrayLocation trayLoc ) : void

Adds a widget to a specified tray.

MoveWidgetToTray ( String name, TrayLocation trayLoc, int place ) : void

Adds a widget to a specified tray.

MoveWidgetToTray ( TrayLocation currentTrayLoc, String name, TrayLocation targetTrayLoc ) : void

Adds a widget to a specified tray.

MoveWidgetToTray ( TrayLocation currentTrayLoc, String name, TrayLocation targetTrayLoc, int place ) : void

Adds a widget to a specified tray.

MoveWidgetToTray ( TrayLocation currentTrayLoc, int currentPlace, TrayLocation targetTrayLoc ) : void

Adds a widget to a specified tray.

MoveWidgetToTray ( TrayLocation currentTrayLoc, int currentPlace, TrayLocation targetTrayLoc, int targetPlace ) : void

Adds a widget to a specified tray.

MoveWidgetToTray ( Widget widget, TrayLocation trayLoc ) : void

Adds a widget to a specified tray.

MoveWidgetToTray ( Widget widget, TrayLocation trayLoc, int place ) : void

Adds a widget to a specified tray.

OkDialogClosed ( string text ) : void

OnButtonHit ( object sender, Axiom.Samples.Button button ) : void

Destroys dialog widgets, notifies listener, and ends high priority session.

RefreshCursor ( ) : void

Updates cursor position based on unbuffered mouse state. This is necessary because if the tray manager has been cut off from mouse events for a time, the cursor position will be out of date.

RemoveWidgetFromTray ( String name ) : void

Removes a widget from its tray. Same as moving it to the null tray.

RemoveWidgetFromTray ( TrayLocation trayLoc, String name ) : void

Removes a widget from its tray. Same as moving it to the null tray.

RemoveWidgetFromTray ( TrayLocation trayLoc, int place ) : void

Removes a widget from its tray. Same as moving it to the null tray.

RemoveWidgetFromTray ( Widget widget ) : void

Removes a widget from its tray. Same as moving it to the null tray.

ResourceGroupLoadEnded ( string groupName ) : void

This event is fired when a resource group finished loading.

ResourceGroupLoadStarted ( string groupName, int resourceCount ) : void

This event is fired when a resource group begins loading.

ResourceGroupPrepareEnded ( string groupName ) : void

ResourceGroupPrepareStarted ( string groupName, int resourceCount ) : void

ResourceGroupScriptingEnded ( string groupName ) : void

This event is fired when a resource group finished parsing scripts.

ResourceGroupScriptingStarted ( string groupName, int scriptCount ) : void

This event is fired when a resource group begins parsing scripts.

ResourceLoadEnded ( ) : void

This event is fired when the resource has been loaded.

ResourceLoadStarted ( Axiom.Core.Resource resource ) : void

This event is fired when a declared resource is about to be loaded.

ResourcePrepareEnded ( ) : void

ResourcePrepareStarted ( Axiom.Core.Resource resource ) : void

ScreenToScene ( Camera cam, Vector2 pt ) : Ray

Converts a 2D screen coordinate (in pixels) to a 3D ray into the scene.

ScriptParseEnded ( string scriptName, bool skipped ) : void

This event is fired when the script has been fully parsed.

ScriptParseStarted ( string scriptName, bool &skipThisScript ) : void

This event is fired when a script is about to be parsed.

SdkTrayManager ( String name, Axiom.Graphics.RenderWindow window, SharpInputSystem mouse ) : System

Creates backdrop, cursor, and trays.

SdkTrayManager ( String name, Axiom.Graphics.RenderWindow window, SharpInputSystem mouse, ISdkTrayListener listener ) : System

Creates backdrop, cursor, and trays.

SetTrayWidgetAlignment ( TrayLocation trayLoc, HorizontalAlignment gha ) : void

Sets horizontal alignment of a tray's contents.

ShowAll ( ) : void

ShowBackdrop ( ) : void

Displays specified material on backdrop, or the last material used if

none specified. Good for pause menus like in the browser.

ShowBackdrop ( String materialName ) : void

Displays specified material on backdrop, or the last material used if

none specified. Good for pause menus like in the browser.

ShowCursor ( ) : void

Displays specified material on cursor, or the last material used if

none specified. Used to change cursor type.

ShowCursor ( String materialName ) : void

Displays specified material on cursor, or the last material used if

none specified. Used to change cursor type.

ShowFrameStats ( TrayLocation trayLoc ) : void

Shows frame statistics widget set in the specified location.

ShowFrameStats ( TrayLocation trayLoc, int place ) : void

Shows frame statistics widget set in the specified location.

ShowLoadingBar ( ) : void

Shows loading bar. Also takes job settings: the number of resource groups to be initialised, the number of resource groups to be loaded, and the proportion of the job that will be taken up by initialization. Usually, script parsing takes up most time, so the default value is 0.7.

ShowLoadingBar ( int numGroupsInit, int numGroupsLoad ) : void

Shows loading bar. Also takes job settings: the number of resource groups to be initialised, the number of resource groups to be loaded, and the proportion of the job that will be taken up by initialization. Usually, script parsing takes up most time, so the default value is 0.7.

ShowLoadingBar ( int numGroupsInit, int numGroupsLoad, Real initProportion ) : void

Shows loading bar. Also takes job settings: the number of resource groups to be initialised, the number of resource groups to be loaded, and the proportion of the job that will be taken up by initialization. Usually, script parsing takes up most time, so the default value is 0.7.

ShowLogo ( TrayLocation trayLoc ) : void

Shows logo in the specified location.

ShowLogo ( TrayLocation trayLoc, int place ) : void

Shows logo in the specified location.

ShowOkDialog ( System.String caption, System.String message ) : void

Pops up a message dialog with an OK button.

ShowTrays ( ) : void

ShowYesNoDialog ( System.String caption, System.String question ) : void

Pops up a question dialog with Yes and No buttons.

SliderMoved ( Axiom.Samples.Slider slider ) : void

ToggleAdvancedFrameStats ( ) : void

Toggles visibility of advanced statistics.

WorldGeometryStageEnded ( ) : void

This event is fired when a stage of loading linked world geometry has been completed. The number of stages required will have been included in the resourceCount passed in resourceGroupLoadStarted.

WorldGeometryStageStarted ( string description ) : void

This event is fired when a stage of loading linked world geometry is about to start. The number of stages required will have been included in the resourceCount passed in resourceGroupLoadStarted.

YesNoDialogClosed ( string text, bool yesHit ) : void

createLongSelectMenu ( TrayLocation trayLoc, String name, System.String caption, Real boxWidth, int maxItemsShown ) : SelectMenu

sceneToScreen ( Camera cam, Vector3 pt ) : Vector2

Converts a 3D scene position to a 2D screen coordinate (in pixels).

Method Details

AdjustTrays() public méthode

Fits trays to their contents and snaps them to their anchor locations.
public AdjustTrays ( ) : void
Résultat void

CheckboxToggled() public méthode

public CheckboxToggled ( CheckBox box ) : void
box CheckBox
Résultat void

ClearAllTrays() public méthode

Removes all widgets from all widget trays.
public ClearAllTrays ( ) : void
Résultat void

ClearTray() public méthode

Removes all widgets from a widget tray.
public ClearTray ( TrayLocation trayLoc ) : void
trayLoc TrayLocation
Résultat void

CloseDialog() public méthode

Hides whatever dialog is currently showing.
public CloseDialog ( ) : void
Résultat void

CreateButton() public méthode

public CreateButton ( TrayLocation trayLoc, String name, String caption ) : Axiom.Samples.Button
trayLoc TrayLocation
name String
caption String
Résultat Axiom.Samples.Button

CreateButton() public méthode

public CreateButton ( TrayLocation trayLoc, String name, String caption, Real width ) : Axiom.Samples.Button
trayLoc TrayLocation
name String
caption String
width Real
Résultat Axiom.Samples.Button

CreateCheckBox() public méthode

public CreateCheckBox ( TrayLocation trayLoc, String name, System.String caption ) : CheckBox
trayLoc TrayLocation
name String
caption System.String
Résultat CheckBox

CreateCheckBox() public méthode

public CreateCheckBox ( TrayLocation trayLoc, String name, System.String caption, Real width ) : CheckBox
trayLoc TrayLocation
name String
caption System.String
width Real
Résultat CheckBox

CreateDecorWidget() public méthode

public CreateDecorWidget ( TrayLocation trayLoc, String name, String typeName, String templateName ) : DecorWidget
trayLoc TrayLocation
name String
typeName String
templateName String
Résultat DecorWidget

CreateLabel() public méthode

public CreateLabel ( TrayLocation trayLoc, String name, System.String caption ) : Label
trayLoc TrayLocation
name String
caption System.String
Résultat Label

CreateLabel() public méthode

public CreateLabel ( TrayLocation trayLoc, String name, System.String caption, Real width ) : Label
trayLoc TrayLocation
name String
caption System.String
width Real
Résultat Label

CreateLogoWidget() public méthode

public CreateLogoWidget ( TrayLocation trayLoc, String name, String typeName, String templateName ) : DecorWidget
trayLoc TrayLocation
name String
typeName String
templateName String
Résultat DecorWidget

CreateLongSelectMenu() public méthode

public CreateLongSelectMenu ( TrayLocation trayLoc, String name, System.String caption, Real width, Real boxWidth, int maxItemsShown ) : SelectMenu
trayLoc TrayLocation
name String
caption System.String
width Real
boxWidth Real
maxItemsShown int
Résultat SelectMenu

CreateLongSelectMenu() public méthode

public CreateLongSelectMenu ( TrayLocation trayLoc, String name, System.String caption, Real width, Real boxWidth, int maxItemsShown, IList items ) : SelectMenu
trayLoc TrayLocation
name String
caption System.String
width Real
boxWidth Real
maxItemsShown int
items IList
Résultat SelectMenu

CreateLongSlider() public méthode

public CreateLongSlider ( TrayLocation trayLoc, String name, System.String caption, Real width, Real trackWidth, Real valueBoxWidth, Real minValue, Real maxValue, int snaps ) : Axiom.Samples.Slider
trayLoc TrayLocation
name String
caption System.String
width Real
trackWidth Real
valueBoxWidth Real
minValue Real
maxValue Real
snaps int
Résultat Axiom.Samples.Slider

CreateLongSlider() public méthode

public CreateLongSlider ( TrayLocation trayLoc, String name, System.String caption, Real trackWidth, Real valueBoxWidth, Real minValue, Real maxValue, int snaps ) : Axiom.Samples.Slider
trayLoc TrayLocation
name String
caption System.String
trackWidth Real
valueBoxWidth Real
minValue Real
maxValue Real
snaps int
Résultat Axiom.Samples.Slider

CreateParamsPanel() public méthode

public CreateParamsPanel ( TrayLocation trayLoc, String name, Real width, IList paramNames ) : ParamsPanel
trayLoc TrayLocation
name String
width Real
paramNames IList
Résultat ParamsPanel

CreateParamsPanel() public méthode

public CreateParamsPanel ( TrayLocation trayLoc, String name, Real width, int lines ) : ParamsPanel
trayLoc TrayLocation
name String
width Real
lines int
Résultat ParamsPanel

CreateProgressBar() public méthode

public CreateProgressBar ( TrayLocation trayLoc, String name, System.String caption, Real width, Real commentBoxWidth ) : Axiom.Samples.ProgressBar
trayLoc TrayLocation
name String
caption System.String
width Real
commentBoxWidth Real
Résultat Axiom.Samples.ProgressBar

CreateSeparator() public méthode

public CreateSeparator ( TrayLocation trayLoc, String name ) : Separator
trayLoc TrayLocation
name String
Résultat Separator

CreateSeparator() public méthode

public CreateSeparator ( TrayLocation trayLoc, String name, Real width ) : Separator
trayLoc TrayLocation
name String
width Real
Résultat Separator

CreateTextBox() public méthode

public CreateTextBox ( TrayLocation trayLoc, String name, System.String caption, Real width, Real height ) : TextBox
trayLoc TrayLocation
name String
caption System.String
width Real
height Real
Résultat TextBox

CreateThickSelectMenu() public méthode

public CreateThickSelectMenu ( TrayLocation trayLoc, String name, System.String caption, Real width, int maxItemsShown ) : SelectMenu
trayLoc TrayLocation
name String
caption System.String
width Real
maxItemsShown int
Résultat SelectMenu

CreateThickSelectMenu() public méthode

public CreateThickSelectMenu ( TrayLocation trayLoc, String name, System.String caption, Real width, int maxItemsShown, IList items ) : SelectMenu
trayLoc TrayLocation
name String
caption System.String
width Real
maxItemsShown int
items IList
Résultat SelectMenu

CreateThickSlider() public méthode

public CreateThickSlider ( TrayLocation trayLoc, String name, System.String caption, Real width, Real valueBoxWidth, Real minValue, Real maxValue, int snaps ) : Axiom.Samples.Slider
trayLoc TrayLocation
name String
caption System.String
width Real
valueBoxWidth Real
minValue Real
maxValue Real
snaps int
Résultat Axiom.Samples.Slider

DestroyAllWidgets() public méthode

Destroys all widgets.
public DestroyAllWidgets ( ) : void
Résultat void

DestroyAllWidgetsInTray() public méthode

Destroys all widgets in a tray.
public DestroyAllWidgetsInTray ( TrayLocation trayLoc ) : void
trayLoc TrayLocation
Résultat void

DestroyWidget() public méthode

Destroys a widget.
public DestroyWidget ( String name ) : void
name String
Résultat void

DestroyWidget() public méthode

Destroys a widget.
public DestroyWidget ( TrayLocation trayLoc, String name ) : void
trayLoc TrayLocation
name String
Résultat void

DestroyWidget() public méthode

Destroys a widget.
public DestroyWidget ( TrayLocation trayLoc, int place ) : void
trayLoc TrayLocation
place int
Résultat void

DestroyWidget() public méthode

Destroys a widget.
public DestroyWidget ( Widget widget ) : void
widget Widget
Résultat void

Dispose() public méthode

Destroys background, cursor, widgets, and trays.
public Dispose ( ) : void
Résultat void

FrameRenderingQueued() public méthode

Process frame events. Updates frame statistics widget set and deletes all widgets queued for destruction.
public FrameRenderingQueued ( FrameEventArgs evt ) : bool
evt FrameEventArgs
Résultat bool

GetCursorRay() public méthode

Returns a 3D ray into the scene that is directly underneath the cursor.
public GetCursorRay ( Camera cam ) : Ray
cam Axiom.Core.Camera
Résultat Axiom.Math.Ray

GetWidget() public méthode

Gets a widget by name.
public GetWidget ( String name ) : Widget
name String
Résultat Widget

GetWidget() public méthode

Gets a widget from a tray by name.
public GetWidget ( TrayLocation trayLoc, String name ) : Widget
trayLoc TrayLocation
name String
Résultat Widget

GetWidget() public méthode

Gets a widget from a tray by place.
public GetWidget ( TrayLocation trayLoc, int place ) : Widget
trayLoc TrayLocation
place int
Résultat Widget

GetWidgetCount() public méthode

Gets the number of widgets in a tray.
public GetWidgetCount ( TrayLocation trayLoc ) : int
trayLoc TrayLocation
Résultat int

GetWidgetEnumerator() public méthode

Gets all the widgets of a specific tray.
public GetWidgetEnumerator ( TrayLocation trayLoc ) : IEnumerator
trayLoc TrayLocation
Résultat IEnumerator

HideAll() public méthode

public HideAll ( ) : void
Résultat void

HideBackdrop() public méthode

public HideBackdrop ( ) : void
Résultat void

HideCursor() public méthode

public HideCursor ( ) : void
Résultat void

HideFrameStats() public méthode

Hides frame statistics widget set.
public HideFrameStats ( ) : void
Résultat void

HideLoadingBar() public méthode

public HideLoadingBar ( ) : void
Résultat void

HideLogo() public méthode

public HideLogo ( ) : void
Résultat void

HideTrays() public méthode

public HideTrays ( ) : void
Résultat void

InjectMouseDown() public méthode

Processes mouse button down events. Returns true if the event was

consumed and should not be passed on to other handlers.
public InjectMouseDown ( SharpInputSystem evt, SharpInputSystem id ) : bool
evt SharpInputSystem
id SharpInputSystem
Résultat bool

InjectMouseMove() public méthode

Updates cursor position. Returns true if the event was

consumed and should not be passed on to other handlers.
public InjectMouseMove ( SharpInputSystem evt ) : bool
evt SharpInputSystem
Résultat bool

InjectMouseUp() public méthode

Processes mouse button up events. Returns true if the event was

consumed and should not be passed on to other handlers.
public InjectMouseUp ( SharpInputSystem evt, SharpInputSystem id ) : bool
evt SharpInputSystem
id SharpInputSystem
Résultat bool

ItemSelected() public méthode

public ItemSelected ( SelectMenu menu ) : void
menu SelectMenu
Résultat void

LabelHit() public méthode

Toggles visibility of advanced statistics.
public LabelHit ( Label label ) : void
label Label
Résultat void

LocateWidgetInTray() public méthode

Gets a widget's position in its tray.
public LocateWidgetInTray ( Widget widget ) : int
widget Widget
Résultat int

MoveWidgetToTray() public méthode

Adds a widget to a specified tray.
public MoveWidgetToTray ( String name, TrayLocation trayLoc ) : void
name String
trayLoc TrayLocation
Résultat void

MoveWidgetToTray() public méthode

Adds a widget to a specified tray.
public MoveWidgetToTray ( String name, TrayLocation trayLoc, int place ) : void
name String
trayLoc TrayLocation
place int
Résultat void

MoveWidgetToTray() public méthode

Adds a widget to a specified tray.
public MoveWidgetToTray ( TrayLocation currentTrayLoc, String name, TrayLocation targetTrayLoc ) : void
currentTrayLoc TrayLocation
name String
targetTrayLoc TrayLocation
Résultat void

MoveWidgetToTray() public méthode

Adds a widget to a specified tray.
public MoveWidgetToTray ( TrayLocation currentTrayLoc, String name, TrayLocation targetTrayLoc, int place ) : void
currentTrayLoc TrayLocation
name String
targetTrayLoc TrayLocation
place int
Résultat void

MoveWidgetToTray() public méthode

Adds a widget to a specified tray.
public MoveWidgetToTray ( TrayLocation currentTrayLoc, int currentPlace, TrayLocation targetTrayLoc ) : void
currentTrayLoc TrayLocation
currentPlace int
targetTrayLoc TrayLocation
Résultat void

MoveWidgetToTray() public méthode

Adds a widget to a specified tray.
public MoveWidgetToTray ( TrayLocation currentTrayLoc, int currentPlace, TrayLocation targetTrayLoc, int targetPlace ) : void
currentTrayLoc TrayLocation
currentPlace int
targetTrayLoc TrayLocation
targetPlace int
Résultat void

MoveWidgetToTray() public méthode

Adds a widget to a specified tray.
public MoveWidgetToTray ( Widget widget, TrayLocation trayLoc ) : void
widget Widget
trayLoc TrayLocation
Résultat void

MoveWidgetToTray() public méthode

Adds a widget to a specified tray.
public MoveWidgetToTray ( Widget widget, TrayLocation trayLoc, int place ) : void
widget Widget
trayLoc TrayLocation
place int
Résultat void

OkDialogClosed() public méthode

public OkDialogClosed ( string text ) : void
text string
Résultat void

OnButtonHit() public méthode

Destroys dialog widgets, notifies listener, and ends high priority session.
public OnButtonHit ( object sender, Axiom.Samples.Button button ) : void
sender object
button Axiom.Samples.Button
Résultat void

RefreshCursor() public méthode

Updates cursor position based on unbuffered mouse state. This is necessary because if the tray manager has been cut off from mouse events for a time, the cursor position will be out of date.
public RefreshCursor ( ) : void
Résultat void

RemoveWidgetFromTray() public méthode

Removes a widget from its tray. Same as moving it to the null tray.
public RemoveWidgetFromTray ( String name ) : void
name String
Résultat void

RemoveWidgetFromTray() public méthode

Removes a widget from its tray. Same as moving it to the null tray.
public RemoveWidgetFromTray ( TrayLocation trayLoc, String name ) : void
trayLoc TrayLocation
name String
Résultat void

RemoveWidgetFromTray() public méthode

Removes a widget from its tray. Same as moving it to the null tray.
public RemoveWidgetFromTray ( TrayLocation trayLoc, int place ) : void
trayLoc TrayLocation
place int
Résultat void

RemoveWidgetFromTray() public méthode

Removes a widget from its tray. Same as moving it to the null tray.
public RemoveWidgetFromTray ( Widget widget ) : void
widget Widget
Résultat void

ResourceGroupLoadEnded() public méthode

This event is fired when a resource group finished loading.
public ResourceGroupLoadEnded ( string groupName ) : void
groupName string
Résultat void

ResourceGroupLoadStarted() public méthode

This event is fired when a resource group begins loading.
public ResourceGroupLoadStarted ( string groupName, int resourceCount ) : void
groupName string The name of the group being loaded
resourceCount int /// The number of resources which will be loaded, /// including a number of stages required to load any linked world geometry ///
Résultat void

ResourceGroupPrepareEnded() public méthode

public ResourceGroupPrepareEnded ( string groupName ) : void
groupName string
Résultat void

ResourceGroupPrepareStarted() public méthode

public ResourceGroupPrepareStarted ( string groupName, int resourceCount ) : void
groupName string
resourceCount int
Résultat void

ResourceGroupScriptingEnded() public méthode

This event is fired when a resource group finished parsing scripts.
public ResourceGroupScriptingEnded ( string groupName ) : void
groupName string The name of the group
Résultat void

ResourceGroupScriptingStarted() public méthode

This event is fired when a resource group begins parsing scripts.
public ResourceGroupScriptingStarted ( string groupName, int scriptCount ) : void
groupName string The name of the group
scriptCount int The number of scripts which will be parsed
Résultat void

ResourceLoadEnded() public méthode

This event is fired when the resource has been loaded.
public ResourceLoadEnded ( ) : void
Résultat void

ResourceLoadStarted() public méthode

This event is fired when a declared resource is about to be loaded.
public ResourceLoadStarted ( Axiom.Core.Resource resource ) : void
resource Axiom.Core.Resource Weak reference to the resource loaded
Résultat void

ResourcePrepareEnded() public méthode

public ResourcePrepareEnded ( ) : void
Résultat void

ResourcePrepareStarted() public méthode

public ResourcePrepareStarted ( Axiom.Core.Resource resource ) : void
resource Axiom.Core.Resource
Résultat void

ScreenToScene() public static méthode

Converts a 2D screen coordinate (in pixels) to a 3D ray into the scene.
public static ScreenToScene ( Camera cam, Vector2 pt ) : Ray
cam Axiom.Core.Camera
pt Vector2
Résultat Axiom.Math.Ray

ScriptParseEnded() public méthode

This event is fired when the script has been fully parsed.
public ScriptParseEnded ( string scriptName, bool skipped ) : void
scriptName string
skipped bool
Résultat void

ScriptParseStarted() public méthode

This event is fired when a script is about to be parsed.
public ScriptParseStarted ( string scriptName, bool &skipThisScript ) : void
scriptName string Name of the to be parsed
skipThisScript bool
Résultat void

SdkTrayManager() public méthode

Creates backdrop, cursor, and trays.
public SdkTrayManager ( String name, Axiom.Graphics.RenderWindow window, SharpInputSystem mouse ) : System
name String
window Axiom.Graphics.RenderWindow
mouse SharpInputSystem
Résultat System

SdkTrayManager() public méthode

Creates backdrop, cursor, and trays.
public SdkTrayManager ( String name, Axiom.Graphics.RenderWindow window, SharpInputSystem mouse, ISdkTrayListener listener ) : System
name String
window Axiom.Graphics.RenderWindow
mouse SharpInputSystem
listener ISdkTrayListener
Résultat System

SetTrayWidgetAlignment() public méthode

Sets horizontal alignment of a tray's contents.
public SetTrayWidgetAlignment ( TrayLocation trayLoc, HorizontalAlignment gha ) : void
trayLoc TrayLocation
gha HorizontalAlignment
Résultat void

ShowAll() public méthode

public ShowAll ( ) : void
Résultat void

ShowBackdrop() public méthode

Displays specified material on backdrop, or the last material used if

none specified. Good for pause menus like in the browser.
public ShowBackdrop ( ) : void
Résultat void

ShowBackdrop() public méthode

Displays specified material on backdrop, or the last material used if

none specified. Good for pause menus like in the browser.
public ShowBackdrop ( String materialName ) : void
materialName String
Résultat void

ShowCursor() public méthode

Displays specified material on cursor, or the last material used if

none specified. Used to change cursor type.
public ShowCursor ( ) : void
Résultat void

ShowCursor() public méthode

Displays specified material on cursor, or the last material used if

none specified. Used to change cursor type.
public ShowCursor ( String materialName ) : void
materialName String
Résultat void

ShowFrameStats() public méthode

Shows frame statistics widget set in the specified location.
public ShowFrameStats ( TrayLocation trayLoc ) : void
trayLoc TrayLocation
Résultat void

ShowFrameStats() public méthode

Shows frame statistics widget set in the specified location.
public ShowFrameStats ( TrayLocation trayLoc, int place ) : void
trayLoc TrayLocation
place int
Résultat void

ShowLoadingBar() public méthode

Shows loading bar. Also takes job settings: the number of resource groups to be initialised, the number of resource groups to be loaded, and the proportion of the job that will be taken up by initialization. Usually, script parsing takes up most time, so the default value is 0.7.
public ShowLoadingBar ( ) : void
Résultat void

ShowLoadingBar() public méthode

Shows loading bar. Also takes job settings: the number of resource groups to be initialised, the number of resource groups to be loaded, and the proportion of the job that will be taken up by initialization. Usually, script parsing takes up most time, so the default value is 0.7.
public ShowLoadingBar ( int numGroupsInit, int numGroupsLoad ) : void
numGroupsInit int
numGroupsLoad int
Résultat void

ShowLoadingBar() public méthode

Shows loading bar. Also takes job settings: the number of resource groups to be initialised, the number of resource groups to be loaded, and the proportion of the job that will be taken up by initialization. Usually, script parsing takes up most time, so the default value is 0.7.
public ShowLoadingBar ( int numGroupsInit, int numGroupsLoad, Real initProportion ) : void
numGroupsInit int
numGroupsLoad int
initProportion Real
Résultat void

ShowLogo() public méthode

Shows logo in the specified location.
public ShowLogo ( TrayLocation trayLoc ) : void
trayLoc TrayLocation
Résultat void

ShowLogo() public méthode

Shows logo in the specified location.
public ShowLogo ( TrayLocation trayLoc, int place ) : void
trayLoc TrayLocation
place int
Résultat void

ShowOkDialog() public méthode

Pops up a message dialog with an OK button.
public ShowOkDialog ( System.String caption, System.String message ) : void
caption System.String
message System.String
Résultat void

ShowTrays() public méthode

public ShowTrays ( ) : void
Résultat void

ShowYesNoDialog() public méthode

Pops up a question dialog with Yes and No buttons.
public ShowYesNoDialog ( System.String caption, System.String question ) : void
caption System.String
question System.String
Résultat void

SliderMoved() public méthode

public SliderMoved ( Axiom.Samples.Slider slider ) : void
slider Axiom.Samples.Slider
Résultat void

ToggleAdvancedFrameStats() public méthode

Toggles visibility of advanced statistics.
public ToggleAdvancedFrameStats ( ) : void
Résultat void

WorldGeometryStageEnded() public méthode

This event is fired when a stage of loading linked world geometry has been completed. The number of stages required will have been included in the resourceCount passed in resourceGroupLoadStarted.
public WorldGeometryStageEnded ( ) : void
Résultat void

WorldGeometryStageStarted() public méthode

This event is fired when a stage of loading linked world geometry is about to start. The number of stages required will have been included in the resourceCount passed in resourceGroupLoadStarted.
public WorldGeometryStageStarted ( string description ) : void
description string Text description of what was just loaded
Résultat void

YesNoDialogClosed() public méthode

public YesNoDialogClosed ( string text, bool yesHit ) : void
text string
yesHit bool
Résultat void

createLongSelectMenu() public méthode

public createLongSelectMenu ( TrayLocation trayLoc, String name, System.String caption, Real boxWidth, int maxItemsShown ) : SelectMenu
trayLoc TrayLocation
name String
caption System.String
boxWidth Real
maxItemsShown int
Résultat SelectMenu

sceneToScreen() public static méthode

Converts a 3D scene position to a 2D screen coordinate (in pixels).
public static sceneToScreen ( Camera cam, Vector3 pt ) : Vector2
cam Axiom.Core.Camera
pt Vector3
Résultat Vector2

Property Details

CursorWasVisible protected_oe property

protected bool CursorWasVisible
Résultat bool

Dialog protected_oe property

protected TextBox,Axiom.Samples Dialog
Résultat TextBox

LoadBar protected_oe property

protected ProgressBar,Axiom.Samples LoadBar
Résultat Axiom.Samples.ProgressBar

Logo protected_oe property

protected DecorWidget,Axiom.Samples Logo
Résultat DecorWidget

Mouse protected_oe property

protected Mouse,SharpInputSystem Mouse
Résultat SharpInputSystem.Mouse

StatsPanel protected_oe property

protected ParamsPanel,Axiom.Samples StatsPanel
Résultat ParamsPanel

backdrop protected_oe property

protected OverlayElementContainer,Axiom.Overlays backdrop
Résultat Axiom.Overlays.OverlayElementContainer

backdropLayer protected_oe property

protected Overlay,Axiom.Overlays backdropLayer
Résultat Axiom.Overlays.Overlay

cursor protected_oe property

protected OverlayElementContainer,Axiom.Overlays cursor
Résultat Axiom.Overlays.OverlayElementContainer

cursorLayer protected_oe property

protected Overlay,Axiom.Overlays cursorLayer
Résultat Axiom.Overlays.Overlay

expandedMenu protected_oe property

protected SelectMenu,Axiom.Samples expandedMenu
Résultat SelectMenu

groupInitProportion protected_oe property

protected Real groupInitProportion
Résultat Real

groupLoadProportion protected_oe property

protected Real groupLoadProportion
Résultat Real

listener protected_oe property

protected ISdkTrayListener listener
Résultat ISdkTrayListener

loadInc protected_oe property

protected Real loadInc
Résultat Real

mDialogShade protected_oe property

protected OverlayElementContainer,Axiom.Overlays mDialogShade
Résultat Axiom.Overlays.OverlayElementContainer

mFpsLabel protected_oe property

protected Label,Axiom.Samples mFpsLabel
Résultat Label

mName protected_oe property

protected String mName
Résultat String

mNo protected_oe property

protected Button,Axiom.Samples mNo
Résultat Axiom.Samples.Button

mOk protected_oe property

protected Button,Axiom.Samples mOk
Résultat Axiom.Samples.Button

mPriorityLayer protected_oe property

protected Overlay,Axiom.Overlays mPriorityLayer
Résultat Axiom.Overlays.Overlay

mTrayDrag protected_oe property

protected bool mTrayDrag
Résultat bool

mTrayPadding protected_oe property

protected Real mTrayPadding
Résultat Real

mTrays protected_oe property

protected OverlayElementContainer[],Axiom.Overlays mTrays
Résultat Axiom.Overlays.OverlayElementContainer[]

mTraysLayer protected_oe property

protected Overlay,Axiom.Overlays mTraysLayer
Résultat Axiom.Overlays.Overlay

mWidgetDeathRow protected_oe property

protected System.Collections.Generic.List mWidgetDeathRow
Résultat System.Collections.Generic.List

mWidgetPadding protected_oe property

protected Real mWidgetPadding
Résultat Real

mWidgetSpacing protected_oe property

protected Real mWidgetSpacing
Résultat Real

mWidgets protected_oe property

protected WidgetList[] mWidgets
Résultat WidgetList[]

mWindow protected_oe property

protected RenderWindow,Axiom.Graphics mWindow
Résultat Axiom.Graphics.RenderWindow

mYes protected_oe property

protected Button,Axiom.Samples mYes
Résultat Axiom.Samples.Button

trayWidgetAlign protected_oe property

protected HorizontalAlignment[] trayWidgetAlign
Résultat HorizontalAlignment[]