C# Class Axiom.Samples.MousePicking.MousePickingSample

Sample of selecting objects with a mouse
Inheritance: SdkSample
Mostra file Open project: WolfgangSt/axiom Class Usage Examples

Protected Properties

Property Type Description
MouseLocationLabel Label

Public Methods

Method Description
KeyPressed ( SharpInputSystem evt ) : bool

key pressed selection event to have the ability to keep the current selection, sets the MouseSelector.KeepPreviousSelection if the right or left control key is pressed

KeyReleased ( SharpInputSystem evt ) : bool

key pressed selection event to have the ability to keep the current selection, sets the MouseSelector.KeepPreviousSelection if the right or left control key is pressed

MouseMoved ( SharpInputSystem evt ) : bool

mouse moved event override from SdkSample, calls the MouseSelector's MouseMoved event for SelectionBox

MousePickingSample ( ) : Axiom.Animating

Sample initialization

MousePressed ( SharpInputSystem evt, SharpInputSystem id ) : bool

mouse pressed event override from SdkSample, calls MouseSelector's MousePressed method to start selection

MouseReleased ( SharpInputSystem evt, SharpInputSystem id ) : bool

mouse released event override from SdkSample, calls MouseSelector's MouseReleased method to end selection

Protected Methods

Method Description
SetupContent ( ) : void

Sets up the samples content

SetupGUI ( ) : void

Creates and initializes all the scene's GUI elements not defined in SdkSample

Private Methods

Method Description
selectionModeMenu_SelectedIndexChanged ( object sender, System e ) : void

Event for when the menu changes, sets the MouseSelectors SelectionMode

Method Details

KeyPressed() public method

key pressed selection event to have the ability to keep the current selection, sets the MouseSelector.KeepPreviousSelection if the right or left control key is pressed
public KeyPressed ( SharpInputSystem evt ) : bool
evt SharpInputSystem KeyEventArgs
return bool

KeyReleased() public method

key pressed selection event to have the ability to keep the current selection, sets the MouseSelector.KeepPreviousSelection if the right or left control key is pressed
public KeyReleased ( SharpInputSystem evt ) : bool
evt SharpInputSystem KeyEventArgs
return bool

MouseMoved() public method

mouse moved event override from SdkSample, calls the MouseSelector's MouseMoved event for SelectionBox
public MouseMoved ( SharpInputSystem evt ) : bool
evt SharpInputSystem MouseEventArgs
return bool

MousePickingSample() public method

Sample initialization
public MousePickingSample ( ) : Axiom.Animating
return Axiom.Animating

MousePressed() public method

mouse pressed event override from SdkSample, calls MouseSelector's MousePressed method to start selection
public MousePressed ( SharpInputSystem evt, SharpInputSystem id ) : bool
evt SharpInputSystem MouseEventArgs
id SharpInputSystem MouseButtonID
return bool

MouseReleased() public method

mouse released event override from SdkSample, calls MouseSelector's MouseReleased method to end selection
public MouseReleased ( SharpInputSystem evt, SharpInputSystem id ) : bool
evt SharpInputSystem MouseEventArgs
id SharpInputSystem MouseButtonID
return bool

SetupContent() protected method

Sets up the samples content
protected SetupContent ( ) : void
return void

SetupGUI() protected method

Creates and initializes all the scene's GUI elements not defined in SdkSample
protected SetupGUI ( ) : void
return void

Property Details

MouseLocationLabel protected_oe property

sample label for displaying mouse coordinates
protected Label MouseLocationLabel
return Label