C# Класс Axiom.Samples.MousePicking.MousePickingSample

Sample of selecting objects with a mouse
Наследование: SdkSample
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
MouseLocationLabel Label

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
SetupContent ( ) : void

Sets up the samples content

SetupGUI ( ) : void

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

Приватные методы

Метод Описание
selectionModeMenu_SelectedIndexChanged ( object sender, System e ) : void

Event for when the menu changes, sets the MouseSelectors SelectionMode

Описание методов

KeyPressed() публичный Метод

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
Результат bool

KeyReleased() публичный Метод

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
Результат bool

MouseMoved() публичный Метод

mouse moved event override from SdkSample, calls the MouseSelector's MouseMoved event for SelectionBox
public MouseMoved ( SharpInputSystem evt ) : bool
evt SharpInputSystem MouseEventArgs
Результат bool

MousePickingSample() публичный Метод

Sample initialization
public MousePickingSample ( ) : Axiom.Animating
Результат Axiom.Animating

MousePressed() публичный Метод

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
Результат bool

MouseReleased() публичный Метод

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
Результат bool

SetupContent() защищенный Метод

Sets up the samples content
protected SetupContent ( ) : void
Результат void

SetupGUI() защищенный Метод

Creates and initializes all the scene's GUI elements not defined in SdkSample
protected SetupGUI ( ) : void
Результат void

Описание свойств

MouseLocationLabel защищенное свойство

sample label for displaying mouse coordinates
protected Label MouseLocationLabel
Результат Label