Level H Engine
Public Member Functions | Private Attributes | List of all members
CameraControlComponent Class Reference

Creates a Camera Control component. More...

#include <CameraControlComponent.h>

Inheritance diagram for CameraControlComponent:
Inheritance graph
Collaboration diagram for CameraControlComponent:
Collaboration graph

Public Member Functions

virtual ~CameraControlComponent ()
 A virtual destructor. More...
 
virtual void onAwake ()
 A virtual function for the componets awake. More...
 
virtual void onDestroy ()
 A virtual function for the componets destroy. More...
 
void handleInput ()
 A function to handle the input for the camera. More...
 
void updateCamera (float dt)
 A function to update the camera. More...
 
void setSpeed (float inSpeed)
 A function to set the speed of the camera. More...
 
void setRotateSpeed (float inRotateSpeed)
 A function to set the rotation speed of the camera. More...
 
void disableMoveXControl ()
 A function to disable movement along the x axis. More...
 
void disableMoveYControl ()
 A function to disable movement along the y axis. More...
 
void disableMoveZControl ()
 A function to disable movement along the z axis. More...
 
void disableRotateXControl ()
 A function to disable rotation along the x axis. More...
 
void disableRotateYControl ()
 A function to disable rotation along the y axis. More...
 
void disableRotateZControl ()
 A function to disable rotation along the z axis. More...
 
- Public Member Functions inherited from Component
virtual ~Component ()
 A virtual destructor. More...
 
std::weak_ptr< GameObjectgetGameObject ()
 A function to get the game object linked with the component. More...
 
virtual void onUpdate ()
 A virtual function for the componets update. More...
 
virtual void onRender ()
 A virtual function for the componets render. More...
 
void setDestroyed (bool inDestroyed)
 A function to set the componets destroyed boolean. More...
 
bool getDestroyed ()
 A function to get the componets destroyed boolean. More...
 
std::string getID ()
 A function to set the components type ID. More...
 

Private Attributes

float speed
 The movment speed. More...
 
float rotateSpeed
 The rotation speed. More...
 
Vec3 movementVel
 The velocities for the movment of the camera. More...
 
Vec3 rotationVel
 
bool moveX
 control booleans More...
 
bool moveY
 
bool moveZ
 
bool rotX
 
bool rotY
 
bool rotZ
 

Additional Inherited Members

- Protected Attributes inherited from Component
std::string id
 The ID of the component type. More...
 

Detailed Description

Creates a Camera Control component.

Constructor & Destructor Documentation

◆ ~CameraControlComponent()

CameraControlComponent::~CameraControlComponent ( )
virtual

A virtual destructor.

Member Function Documentation

◆ disableMoveXControl()

void CameraControlComponent::disableMoveXControl ( )
inline

A function to disable movement along the x axis.

Here is the caller graph for this function:

◆ disableMoveYControl()

void CameraControlComponent::disableMoveYControl ( )
inline

A function to disable movement along the y axis.

Here is the caller graph for this function:

◆ disableMoveZControl()

void CameraControlComponent::disableMoveZControl ( )
inline

A function to disable movement along the z axis.

Here is the caller graph for this function:

◆ disableRotateXControl()

void CameraControlComponent::disableRotateXControl ( )
inline

A function to disable rotation along the x axis.

Here is the caller graph for this function:

◆ disableRotateYControl()

void CameraControlComponent::disableRotateYControl ( )
inline

A function to disable rotation along the y axis.

◆ disableRotateZControl()

void CameraControlComponent::disableRotateZControl ( )
inline

A function to disable rotation along the z axis.

Here is the caller graph for this function:

◆ handleInput()

void CameraControlComponent::handleInput ( )

A function to handle the input for the camera.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ onAwake()

void CameraControlComponent::onAwake ( )
virtual

A virtual function for the componets awake.

Reimplemented from Component.

◆ onDestroy()

void CameraControlComponent::onDestroy ( )
virtual

A virtual function for the componets destroy.

Reimplemented from Component.

◆ setRotateSpeed()

void CameraControlComponent::setRotateSpeed ( float  inRotateSpeed)

A function to set the rotation speed of the camera.

◆ setSpeed()

void CameraControlComponent::setSpeed ( float  inSpeed)

A function to set the speed of the camera.

◆ updateCamera()

void CameraControlComponent::updateCamera ( float  dt)

A function to update the camera.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ movementVel

Vec3 CameraControlComponent::movementVel
private

The velocities for the movment of the camera.

◆ moveX

bool CameraControlComponent::moveX
private

control booleans

◆ moveY

bool CameraControlComponent::moveY
private

◆ moveZ

bool CameraControlComponent::moveZ
private

◆ rotateSpeed

float CameraControlComponent::rotateSpeed
private

The rotation speed.

◆ rotationVel

Vec3 CameraControlComponent::rotationVel
private

◆ rotX

bool CameraControlComponent::rotX
private

◆ rotY

bool CameraControlComponent::rotY
private

◆ rotZ

bool CameraControlComponent::rotZ
private

◆ speed

float CameraControlComponent::speed
private

The movment speed.


The documentation for this class was generated from the following files: