C# Class Axiom.Samples.SdkSample

Base SDK sample class. Includes default player camera and SDK trays.
Inheritance: Sample
Afficher le fichier Open project: WolfgangSt/axiom

Protected Properties

Свойство Type Description
Camera Axiom.Core.Camera
CameraManager SdkCameraManager
CursorWasVisible bool
DetailsPanel ParamsPanel
TrayManager SdkTrayManager
Viewport Axiom.Core.Viewport

Méthodes publiques

Méthode Description
FrameRenderingQueued ( FrameEventArgs evt ) : bool

KeyPressed ( SharpInputSystem evt ) : bool

KeyReleased ( SharpInputSystem evt ) : bool

MouseMoved ( SharpInputSystem evt ) : bool

IMPORTANT: When overriding this handler, remember to allow the tray manager to filter out any interface-related mouse events before processing them in your scene. If the tray manager handler returns true, the event was meant for the trays, not you.

MousePressed ( SharpInputSystem evt, SharpInputSystem id ) : bool

IMPORTANT: When overriding this handler, remember to allow the tray manager to filter out any interface-related mouse events before processing them in your scene. If the tray manager handler returns true, the event was meant for the trays, not you.

MouseReleased ( SharpInputSystem evt, SharpInputSystem id ) : bool

IMPORTANT: When overriding this handler, remember to allow the tray manager to filter out any interface-related mouse events before processing them in your scene. If the tray manager handler returns true, the event was meant for the trays, not you.

RestoreState ( NameValuePairList state ) : void

Automatically restores position and orientation for free-look cameras.

SaveState ( NameValuePairList state ) : void

Automatically saves position and orientation for free-look cameras.

SdkSample ( ) : System
Shutdown ( ) : void

Unpaused ( ) : void

Manually update the cursor position after being unpaused.

WindowResized ( Axiom.Graphics.RenderWindow rw ) : void

Méthodes protégées

Méthode Description
Setup ( Axiom.Graphics.RenderWindow window, SharpInputSystem keyboard, SharpInputSystem mouse ) : void

Extendeded to setup a default tray interface and camera controller.

SetupView ( ) : void

Method Details

FrameRenderingQueued() public méthode

public FrameRenderingQueued ( FrameEventArgs evt ) : bool
evt FrameEventArgs
Résultat bool

KeyPressed() public méthode

public KeyPressed ( SharpInputSystem evt ) : bool
evt SharpInputSystem
Résultat bool

KeyReleased() public méthode

public KeyReleased ( SharpInputSystem evt ) : bool
evt SharpInputSystem
Résultat bool

MouseMoved() public méthode

IMPORTANT: When overriding this handler, remember to allow the tray manager to filter out any interface-related mouse events before processing them in your scene. If the tray manager handler returns true, the event was meant for the trays, not you.
public MouseMoved ( SharpInputSystem evt ) : bool
evt SharpInputSystem
Résultat bool

MousePressed() public méthode

IMPORTANT: When overriding this handler, remember to allow the tray manager to filter out any interface-related mouse events before processing them in your scene. If the tray manager handler returns true, the event was meant for the trays, not you.
public MousePressed ( SharpInputSystem evt, SharpInputSystem id ) : bool
evt SharpInputSystem
id SharpInputSystem
Résultat bool

MouseReleased() public méthode

IMPORTANT: When overriding this handler, remember to allow the tray manager to filter out any interface-related mouse events before processing them in your scene. If the tray manager handler returns true, the event was meant for the trays, not you.
public MouseReleased ( SharpInputSystem evt, SharpInputSystem id ) : bool
evt SharpInputSystem
id SharpInputSystem
Résultat bool

RestoreState() public méthode

Automatically restores position and orientation for free-look cameras.
public RestoreState ( NameValuePairList state ) : void
state NameValuePairList
Résultat void

SaveState() public méthode

Automatically saves position and orientation for free-look cameras.
public SaveState ( NameValuePairList state ) : void
state NameValuePairList
Résultat void

SdkSample() public méthode

public SdkSample ( ) : System
Résultat System

Setup() protected méthode

Extendeded to setup a default tray interface and camera controller.
protected Setup ( Axiom.Graphics.RenderWindow window, SharpInputSystem keyboard, SharpInputSystem mouse ) : void
window Axiom.Graphics.RenderWindow
keyboard SharpInputSystem
mouse SharpInputSystem
Résultat void

SetupView() protected méthode

protected SetupView ( ) : void
Résultat void

Shutdown() public méthode

public Shutdown ( ) : void
Résultat void

Unpaused() public méthode

Manually update the cursor position after being unpaused.
public Unpaused ( ) : void
Résultat void

WindowResized() public méthode

public WindowResized ( Axiom.Graphics.RenderWindow rw ) : void
rw Axiom.Graphics.RenderWindow
Résultat void

Property Details

Camera protected_oe property

Main Camera
protected Camera,Axiom.Core Camera
Résultat Axiom.Core.Camera

CameraManager protected_oe property

Basic Camera Manager
protected SdkCameraManager,Axiom.Samples CameraManager
Résultat SdkCameraManager

CursorWasVisible protected_oe property

Was the cursor visible before dialog appeared
protected bool CursorWasVisible
Résultat bool

DetailsPanel protected_oe property

Simple Details Panel
protected ParamsPanel,Axiom.Samples DetailsPanel
Résultat ParamsPanel

TrayManager protected_oe property

Tray Interface Manager
protected SdkTrayManager,Axiom.Samples TrayManager
Résultat SdkTrayManager

Viewport protected_oe property

Main Viewport
protected Viewport,Axiom.Core Viewport
Résultat Axiom.Core.Viewport