Skip to content

Kuesa::Serenity::CameraController

Module: Kuesa Serenity API

A CameraController providing zooming, panning and orbiting motions to a Serenity Camera. More...

#include <Kuesa/Serenity/api/cameracontroller.h>

Inherits from KDFoundation::Object

Public Functions

Name
CameraController()
~CameraController()

Protected Functions

Name
void event(KDFoundation::EventReceiver * target, KDFoundation::Event * e) override

Public Attributes

Name
KDBindings::Property< KDGui::Window * > window
KDBindings::Property<::Serenity::AbstractCamera * > camera
KDBindings::Property< bool > running
KDBindings::Property< float > moveSpeed
KDBindings::Property< float > lookSpeed
KDBindings::Property< float > zoomSpeed
KDBindings::Property< glm::vec3 > viewCenter
KDBindings::Property< glm::vec3 > cameraPosition
KDBindings::Property< glm::vec3 > viewVector
KDBindings::Property< glm::vec3 > upVector

Friends

Name
class Kuesa::Serenity::Window

Detailed Description

1
class Kuesa::Serenity::CameraController;

A CameraController providing zooming, panning and orbiting motions to a Serenity Camera.

Since: Kuesa 2.0

Public Functions Documentation

function CameraController

1
CameraController()

function ~CameraController

1
~CameraController()

Protected Functions Documentation

function event

1
2
3
4
void event(
    KDFoundation::EventReceiver * target,
    KDFoundation::Event * e
) override

Public Attributes Documentation

variable window

1
KDBindings::Property< KDGui::Window * > window { nullptr };

variable camera

1
KDBindings::Property<::Serenity::AbstractCamera * > camera { nullptr };

variable running

1
KDBindings::Property< bool > running { true };

variable moveSpeed

1
KDBindings::Property< float > moveSpeed { 1.0f };

variable lookSpeed

1
KDBindings::Property< float > lookSpeed { float(M_PI) * 0.25f };

variable zoomSpeed

1
KDBindings::Property< float > zoomSpeed { 10.0f };

variable viewCenter

1
KDBindings::Property< glm::vec3 > viewCenter { glm::vec3(0.0f, 0.0f, 0.0f) };

variable cameraPosition

1
KDBindings::Property< glm::vec3 > cameraPosition;

variable viewVector

1
KDBindings::Property< glm::vec3 > viewVector;

variable upVector

1
KDBindings::Property< glm::vec3 > upVector;

Friends

friend Kuesa::Serenity::Window

1
2
3
friend class Kuesa::Serenity::Window(
    Kuesa::Serenity::Window 
);

Updated on 2023-07-03 at 11:02:08 +0000