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

Object to assist in selecting and manipulating in game objects
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
KeepPreviousSelection bool
Selection List
SelectionMode SelectionModeType
VerboseLogging bool

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

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

public method to clear and reset the MouseSelector object

DeselectObjects ( ) : void

Public Method for deselecting all objects previously selected. once they are selected they stay selected till the object is cleared or another selection begins.

MouseMoved ( SharpInputSystem evt ) : void

public method to call when the mouse is moved

MousePressed ( SharpInputSystem evt, SharpInputSystem id ) : void

public method to call when the mouse is pressed

MouseReleased ( SharpInputSystem evt, SharpInputSystem id ) : void

public method to call when the mouse button is released

MouseSelector ( Camera camera, Axiom.Graphics.RenderWindow window ) : System

This is the Constructor for the MouseSelection object, scene must be fully initialized and valid camera and window must be passed in, generic name will be created

MouseSelector ( string name, Camera camera, Axiom.Graphics.RenderWindow window ) : System

This is the Constructor for the MouseSelection object, scene must be fully initialized and valid camera and window must be passed in, name must be passed

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

Метод Описание
Log ( string message ) : void

Logging via the LogManager

PerformSelectionWithMouseClick ( ) : void

private method for selection object that creates a box from a single mouse click

PerformSelectionWithSelectionBox ( Math first, Math second ) : void

private method for selection object that creates a box from the SelectionRectangle, stop variable is passed in

SelectObject ( Axiom.Core.MovableObject obj ) : void

Private method that adds any object not currently selected into the selection list

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

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

public method to clear and reset the MouseSelector object
public Clear ( ) : void
Результат void

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

Public Method for deselecting all objects previously selected. once they are selected they stay selected till the object is cleared or another selection begins.
public DeselectObjects ( ) : void
Результат void

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

public method to call when the mouse is moved
public MouseMoved ( SharpInputSystem evt ) : void
evt SharpInputSystem
Результат void

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

public method to call when the mouse is pressed
public MousePressed ( SharpInputSystem evt, SharpInputSystem id ) : void
evt SharpInputSystem MouseEventArgs
id SharpInputSystem MouseButtonID
Результат void

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

public method to call when the mouse button is released
public MouseReleased ( SharpInputSystem evt, SharpInputSystem id ) : void
evt SharpInputSystem
id SharpInputSystem
Результат void

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

This is the Constructor for the MouseSelection object, scene must be fully initialized and valid camera and window must be passed in, generic name will be created
public MouseSelector ( Camera camera, Axiom.Graphics.RenderWindow window ) : System
camera Axiom.Core.Camera Camera
window Axiom.Graphics.RenderWindow RenderWindow
Результат System

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

This is the Constructor for the MouseSelection object, scene must be fully initialized and valid camera and window must be passed in, name must be passed
public MouseSelector ( string name, Camera camera, Axiom.Graphics.RenderWindow window ) : System
name string string
camera Axiom.Core.Camera Camera
window Axiom.Graphics.RenderWindow RenderWindow
Результат System

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

KeepPreviousSelection публичное свойство

Keep previous selection
public bool KeepPreviousSelection
Результат bool

Selection публичное свойство

Selected Objects
public List Selection
Результат List

SelectionMode публичное свойство

Selection mode type property
public SelectionModeType SelectionMode
Результат SelectionModeType

VerboseLogging публичное свойство

Toggles logging to standard axiom log file
public bool VerboseLogging
Результат bool