Class TCastleExamineNavigation
Unit
Declaration
type TCastleExamineNavigation = class(TCastleNavigation)
Description
Navigate the 3D model in examine mode, like you would hold a box with the model inside.
Hierarchy
- TObject
- TPersistent
- TComponent
- TCastleComponent
- TInputListener
- TCastleUserInterface
- TCastleNavigation
- TCastleExamineNavigation
Overview
Fields
![]() |
nested const DefaultRotationAccelerationSpeed = 5.0; |
![]() |
nested const DefaultRotationSpeed = 2.0; |
Methods
![]() |
constructor Create(AOwner: TComponent); override; |
![]() |
destructor Destroy; override; |
![]() |
function PropertySection(const PropertyName: String): TPropertySection; override; |
![]() |
procedure Update(const SecondsPassed: Single; var HandleInput: boolean); override; |
![]() |
function AllowSuspendForInput: boolean; override; |
![]() |
function Press(const Event: TInputPressRelease): boolean; override; |
![]() |
function Release(const Event: TInputPressRelease): boolean; override; |
![]() |
function Motion(const Event: TInputMotion): boolean; override; |
![]() |
function SensorTranslation(const X, Y, Z, Length: Double; const SecondsPassed: Single): boolean; override; |
![]() |
function SensorRotation(const X, Y, Z, Angle: Double; const SecondsPassed: Single): boolean; override; |
![]() |
procedure Init(const AModelBox: TBox3D; const ARadius: Single); deprecated 'use Viewport.Camera.Init, and set ModelBox, Radius manually'; |
![]() |
function StopRotating: boolean; |
![]() |
procedure Move(coord: integer; const MoveDistance: Single); deprecated 'set Translation instead of using this method'; |
![]() |
function GetNavigationType: TNavigationType; override; |
Properties
![]() |
property MouseButtonRotate: TCastleMouseButton
read FMouseButtonRotate write FMouseButtonRotate default buttonLeft; |
![]() |
property MouseButtonMove: TCastleMouseButton
read FMouseButtonMove write FMouseButtonMove default buttonMiddle; |
![]() |
property MouseButtonZoom: TCastleMouseButton
read FMouseButtonZoom write FMouseButtonZoom default buttonRight; |
![]() |
property Rotations: TQuaternion read GetRotations write SetRotations; |
![]() |
property RotationsAnim: TVector3 read FRotationsAnim write SetRotationsAnim; |
![]() |
property DragMoveSpeed: Single read FDragMoveSpeed write FDragMoveSpeed default 1.0; |
![]() |
property KeysMoveSpeed: Single read FKeysMoveSpeed write FKeysMoveSpeed default 1.0; |
![]() |
property MoveAmount: TVector3 read GetTranslation write SetTranslation; deprecated 'use Translation'; |
![]() |
property Translation: TVector3 read GetTranslation write SetTranslation; |
![]() |
property Turntable: boolean
read FTurntable write FTurntable default false; |
![]() |
property ScaleFactor: Single
read GetScaleFactor write SetScaleFactor default 1; deprecated 'use Camera.Orthographic.Scale'; |
![]() |
property ScaleFactorMin: Single
read FScaleFactorMin write SetScaleFactorMin default 0.01; |
![]() |
property ScaleFactorMax: Single
read FScaleFactorMax write SetScaleFactorMax default 100.0; |
![]() |
property Inputs_Move: T3BoolInputs read FInputs_Move; |
![]() |
property Inputs_Rotate: T3BoolInputs read FInputs_Rotate; |
![]() |
property Input_MoveXInc: TInputShortcut read GetInput_MoveXInc; |
![]() |
property Input_MoveXDec: TInputShortcut read GetInput_MoveXDec; |
![]() |
property Input_MoveYInc: TInputShortcut read GetInput_MoveYInc; |
![]() |
property Input_MoveYDec: TInputShortcut read GetInput_MoveYDec; |
![]() |
property Input_MoveZInc: TInputShortcut read GetInput_MoveZInc; |
![]() |
property Input_MoveZDec: TInputShortcut read GetInput_MoveZDec; |
![]() |
property Input_RotateXInc: TInputShortcut read GetInput_RotateXInc; |
![]() |
property Input_RotateXDec: TInputShortcut read GetInput_RotateXDec; |
![]() |
property Input_RotateYInc: TInputShortcut read GetInput_RotateYInc; |
![]() |
property Input_RotateYDec: TInputShortcut read GetInput_RotateYDec; |
![]() |
property Input_RotateZInc: TInputShortcut read GetInput_RotateZInc; |
![]() |
property Input_RotateZDec: TInputShortcut read GetInput_RotateZDec; |
![]() |
property Input_ScaleLarger: TInputShortcut read FInput_ScaleLarger; |
![]() |
property Input_ScaleSmaller: TInputShortcut read FInput_ScaleSmaller; |
![]() |
property Input_Home: TInputShortcut read FInput_Home; |
![]() |
property Input_StopRotating: TInputShortcut read FInput_StopRotating; |
![]() |
property MouseNavigation: boolean
read GetMouseNavigation write SetMouseNavigation default true; deprecated; |
![]() |
property RotationAccelerationSpeed: Single
read FRotationAccelerationSpeed
write FRotationAccelerationSpeed
default DefaultRotationAccelerationSpeed; |
![]() |
property RotationSpeed: Single
read FRotationSpeed
write FRotationSpeed
default DefaultRotationSpeed; |
![]() |
property RotationEnabled: Boolean read FRotationEnabled write FRotationEnabled default true; |
![]() |
property MoveEnabled: Boolean read FMoveEnabled write FMoveEnabled default true; |
![]() |
property ZoomEnabled: Boolean read FZoomEnabled write FZoomEnabled default true; |
![]() |
property RotationAccelerate: boolean
read FRotationAccelerate write SetRotationAccelerate default true; |
Description
Fields
![]() |
nested const DefaultRotationAccelerationSpeed = 5.0; |
![]() |
nested const DefaultRotationSpeed = 2.0; |
Methods
![]() |
constructor Create(AOwner: TComponent); override; |
![]() |
destructor Destroy; override; |
![]() |
function PropertySection(const PropertyName: String): TPropertySection; override; |
![]() |
procedure Update(const SecondsPassed: Single; var HandleInput: boolean); override; |
![]() |
function AllowSuspendForInput: boolean; override; |
![]() |
function Press(const Event: TInputPressRelease): boolean; override; |
![]() |
function Release(const Event: TInputPressRelease): boolean; override; |
![]() |
function Motion(const Event: TInputMotion): boolean; override; |
![]() |
function SensorTranslation(const X, Y, Z, Length: Double; const SecondsPassed: Single): boolean; override; |
![]() |
function SensorRotation(const X, Y, Z, Angle: Double; const SecondsPassed: Single): boolean; override; |
![]() |
procedure Init(const AModelBox: TBox3D; const ARadius: Single); deprecated 'use Viewport.Camera.Init, and set ModelBox, Radius manually'; |
|
Warning: this symbol is deprecated: use Viewport.Camera.Init, and set ModelBox, Radius manually Initialize most important properties of this class: sets ModelBox and goes to a nice view over the entire scene. In other words, this is just a shortcut to setting ModelBox, setting suitable initial view by SetInitialView, and then going to initial view by GoToInitial. | |
![]() |
function StopRotating: boolean; |
|
Sets RotationsAnim to zero, stopping the rotation of the model. | |
![]() |
procedure Move(coord: integer; const MoveDistance: Single); deprecated 'set Translation instead of using this method'; |
|
Warning: this symbol is deprecated: set Translation instead of using this method | |
![]() |
function GetNavigationType: TNavigationType; override; |
Properties
![]() |
property MouseButtonRotate: TCastleMouseButton
read FMouseButtonRotate write FMouseButtonRotate default buttonLeft; |
|
Drag with this mouse button to rotate the model. The default values for Also note that for this navigation:
| |
![]() |
property MouseButtonMove: TCastleMouseButton
read FMouseButtonMove write FMouseButtonMove default buttonMiddle; |
|
Drag with this mouse button to move the model. | |
![]() |
property MouseButtonZoom: TCastleMouseButton
read FMouseButtonZoom write FMouseButtonZoom default buttonRight; |
|
Drag with this mouse button to zoom the model (look closer / further). | |
![]() |
property Rotations: TQuaternion read GetRotations write SetRotations; |
|
Current rotation of the model. Rotation is done around ModelBox middle (with Translation added). | |
![]() |
property RotationsAnim: TVector3 read FRotationsAnim write SetRotationsAnim; |
|
Continuous rotation animation, applied each Update to Rotations. | |
![]() |
property DragMoveSpeed: Single read FDragMoveSpeed write FDragMoveSpeed default 1.0; |
|
How fast user moves the scene by mouse/touch dragging. | |
![]() |
property KeysMoveSpeed: Single read FKeysMoveSpeed write FKeysMoveSpeed default 1.0; |
|
How fast user moves the scene by pressing keys. | |
![]() |
property MoveAmount: TVector3 read GetTranslation write SetTranslation; deprecated 'use Translation'; |
|
Warning: this symbol is deprecated: use Translation | |
![]() |
property Translation: TVector3 read GetTranslation write SetTranslation; |
|
How much to move the model. By default, zero. | |
![]() |
property Turntable: boolean
read FTurntable write FTurntable default false; |
|
| |
![]() |
property ScaleFactorMin: Single
read FScaleFactorMin write SetScaleFactorMin default 0.01; |
![]() |
property ScaleFactorMax: Single
read FScaleFactorMax write SetScaleFactorMax default 100.0; |
![]() |
property Inputs_Move: T3BoolInputs read FInputs_Move; |
|
Alternative ways to access Input_Move/Rotate(X|Y|Z)(Inc|Dec). Index the array (2nd index true means increase) instead of having to use the full identifier. | |
![]() |
property Inputs_Rotate: T3BoolInputs read FInputs_Rotate; |
![]() |
property Input_MoveXInc: TInputShortcut read GetInput_MoveXInc; |
![]() |
property Input_MoveXDec: TInputShortcut read GetInput_MoveXDec; |
![]() |
property Input_MoveYInc: TInputShortcut read GetInput_MoveYInc; |
![]() |
property Input_MoveYDec: TInputShortcut read GetInput_MoveYDec; |
![]() |
property Input_MoveZInc: TInputShortcut read GetInput_MoveZInc; |
![]() |
property Input_MoveZDec: TInputShortcut read GetInput_MoveZDec; |
![]() |
property Input_RotateXInc: TInputShortcut read GetInput_RotateXInc; |
![]() |
property Input_RotateXDec: TInputShortcut read GetInput_RotateXDec; |
![]() |
property Input_RotateYInc: TInputShortcut read GetInput_RotateYInc; |
![]() |
property Input_RotateYDec: TInputShortcut read GetInput_RotateYDec; |
![]() |
property Input_RotateZInc: TInputShortcut read GetInput_RotateZInc; |
![]() |
property Input_RotateZDec: TInputShortcut read GetInput_RotateZDec; |
![]() |
property Input_ScaleLarger: TInputShortcut read FInput_ScaleLarger; |
![]() |
property Input_ScaleSmaller: TInputShortcut read FInput_ScaleSmaller; |
![]() |
property Input_Home: TInputShortcut read FInput_Home; |
![]() |
property Input_StopRotating: TInputShortcut read FInput_StopRotating; |
![]() |
property MouseNavigation: boolean
read GetMouseNavigation write SetMouseNavigation default true; deprecated; |
|
Warning: this symbol is deprecated. Include/exclude niMouseDragging from Input instead. | |
![]() |
property RotationAccelerationSpeed: Single
read FRotationAccelerationSpeed
write FRotationAccelerationSpeed
default DefaultRotationAccelerationSpeed; |
|
Speed to change the rotation acceleration, used when RotationAccelerate = | |
![]() |
property RotationSpeed: Single
read FRotationSpeed
write FRotationSpeed
default DefaultRotationSpeed; |
|
Speed to change the rotation, used when RotationAccelerate = | |
![]() |
property RotationEnabled: Boolean read FRotationEnabled write FRotationEnabled default true; |
|
Enable rotating the camera around the model by user input. When Note that this doesn't prevent from rotating by code, e.g. by setting Rotations property or calling SetView. | |
![]() |
property MoveEnabled: Boolean read FMoveEnabled write FMoveEnabled default true; |
|
Enable moving the camera by user input. When Note that this doesn't prevent from moving by code, e.g. by setting Translation property or calling SetView. | |
![]() |
property ZoomEnabled: Boolean read FZoomEnabled write FZoomEnabled default true; |
|
Enable zooming the camera on the model by user input. Depending on the projection, zooming either moves camera or scales the projection size. When Note that this doesn't prevent from zooming by code, e.g. by setting ScaleFactor property (to scale the projection size) or calling SetView (to move closer to the model). | |
Generated by PasDoc 0.16.0.

