Unit CastleViewport

Description

Viewport to display scenes (TCastleViewport).

Source: src/scene/castleviewport.pas (line 17).

Uses

Overview

Classes, Interfaces, Objects and Records

Name Description
Class TCastleViewport Viewport displays a tree of scenes and transformations (TCastleTransform and descendants of it, like TCastleScene).
Class TCastleViewportList  
Class TCastleAutoNavigationViewport Automatically create and switch between various navigation classes on a viewport.
Class TCastleSceneManager Deprecated way to manage transformations and scenes.
Class TCastleTouchNavigation Show draggable controls in the corner, to navigate in the viewport comfortably on touch devices.
Class TCastleComponentFactoryHelper Helper methods extending TCastleComponentFactory.

Types

TProjectionEvent = procedure (var Parameters: TProjection) of object;
TInternalDesignNavigationType = (...);
TNavigationType = (...);
TTouchInterface = (...);

Variables

Input_Interact: TInputShortcut;

Description

Types

TProjectionEvent = procedure (var Parameters: TProjection) of object;

Event for TCastleViewport.OnProjection.

TInternalDesignNavigationType = (...);

This item has no description.

Values
  • dnFly
  • dnExamine
  • dn2D

Source: src/scene/castleviewport.pas (line 42).

TNavigationType = (...);

Navigation type that determines various navigation properties, used by TCastleAutoNavigationViewport.NavigationType.

Values

Source: src/scene/castleviewport_autonavigation.inc (line 22).

TTouchInterface = (...);

Value for TCastleTouchNavigation.TouchInterface.

Values
  • tiNone
  • tiWalk
  • tiWalkRotate
  • tiFlyWalk
  • tiPan

Source: src/scene/castleviewport_touchnavigation.inc (line 21).

Variables

Input_Interact: TInputShortcut;

Key/mouse combination to interact with clickable things in TCastleViewport.Items. More precisely, this input will activate pointing device sensors in X3D, which are used to touch (click) or drag things. By default this is left mouse button click.

You can change it to any other mouse button or even to key combination. Simply change properties like TInputShortcut.Key1 or TInputShortcut.MouseButtonUse.

Source: src/scene/castleviewport.pas (line 1404).


Generated by PasDoc 0.17.0.snapshot.