TINMAN 3D / REALTIME TERRAIN
Software Development Kit - User Manual

interface ICameraControl in Tinman.AddOns.Components

Base interface for classes that control a camera, based on interactive user input.

interface ICameraControl extends IInputConsumerEx
  IUpdateableFrameTime
  base of CameraControlBase

Attributes

Anchor

Returns current world-space anchor point.

property Anchor { get }
type Vec3D
value The current anchor point or Undefined is this camera control is not active.

Remarks:

This property is purely informational and has no functional relevance.

MouseCursor

The mouse cursor that is most appropriate for the current state of this camera control.

property MouseCursor { get }
type MouseCursor
value The mouse cursor.

Remarks:

This property is purely informational and has no functional relevance.

ShouldCaptureMouse

Should the mouse be captured, because this input consumer only processes relative input?

property ShouldCaptureMouse { get }
type bool
value true if the mouse should be captured, false if not.
inherited IInputConsumerEx.ShouldCaptureMouse

See also:

IApplicationWindow.MouseCaptured

View

The ICameraViewport object that provides the view into the world.

property View { get set }
type ICameraViewport
value The viewport object. If null, the camera control will be disabled.

World

The ICameraWorld object that provides the world.

property World { get set }
type ICameraWorld
value The world object. If null, the camera control will be disabled.

Methods

Cancel

Stops the current camera control gesture.

method Cancel ()

ConsumeInput

Consumes the given user input event.

method ConsumeInput (InputEvent inputEvent)
type bool
params inputEvent The user input event.
returns true if the input event has been consumed, false if not.
inherited IInputConsumer.ConsumeInput

Remarks:

Input events are provided to an IInputConsumer object only if it has the input focus (see FocusGained and FocusLost). Mouse events are provided when the mouse cursor is inside of the input bounds (MouseEnter and MouseLeave). The Closing event can be provided at any time.

  1. FocusGained: gained input focus
  2. Keyboard events:
  3. Mouse events:
    1. MouseEnter
    2. Mouse events:
    3. MouseLeave
  4. FocusLost: lost input focus
  5. Closing: user request to shut down

InputAttach

Attaches this input consumer to the given input state object.

method InputAttach (IInputState input)
params input [not-null] The input state object.
inherited IInputConsumerEx.InputAttach

Remarks:

The input state object provides a snapshot of the input keys and buttons. It should not be used to detect up/down/click events.

InputDetach

Detached this input consumer from its input state object.

method InputDetach ()
inherited IInputConsumerEx.InputDetach

UpdateFrameTime

This method is called once per application frame.

method UpdateFrameTime (float32 time)
type bool
params time [>0] The amount of time that has elapsed since the last frame, in seconds.
returns true if the object needs to be presented again, false if the current presentation is still valid.
inherited IUpdateableFrameTime.UpdateFrameTime