NAP
Public Member Functions | List of all members
CameraControllerInstance Class Reference

#include <cameracontroller.h>

Public Member Functions

 CameraControllerInstance (EntityInstance &entity, Component &resource)
 
virtual bool init (utility::ErrorState &errorState) override
 
CameraComponentInstancegetCameraComponent ()
 
- Public Member Functions inherited from ComponentInstance
 ComponentInstance (EntityInstance &entity, Component &resource)
 
virtual void update (double deltaTime)
 
nap::EntityInstancegetEntityInstance () const
 
nap::ComponentgetComponent () const
 
template<typename T >
T * getComponent () const
 
virtual bool init (utility::ErrorState &errorState)
 
- Public Member Functions inherited from Object
 Object ()
 
virtual ~Object ()
 
virtual void onDestroy ()
 
 Object (Object &)=delete
 
Objectoperator= (const Object &)=delete
 
 Object (Object &&)=delete
 
Objectoperator= (Object &&)=delete
 

Additional Inherited Members

- Static Public Member Functions inherited from Object
static bool isIDProperty (rtti::Instance &object, const rtti::Property &property)
 
- Public Attributes inherited from Object
std::string mID
 Property: 'mID' unique name of the object. Used as an identifier by the system. More...
 

Description

Instance part of the camera controller. The camera controller allows for switching between various controllers, ie: the nap::FirstPersonController, nap::OrbitController, and nap::OrthoController. It holds a pointer to an entity to look at when the orbit or ortho controller is selected.

Inheritance diagram for CameraControllerInstance:
[legend]
Collaboration diagram for CameraControllerInstance:
[legend]

Constructor & Destructor Documentation

◆ CameraControllerInstance()

CameraControllerInstance ( EntityInstance entity,
Component resource 
)

Member Function Documentation

◆ getCameraComponent()

CameraComponentInstance& getCameraComponent ( )
Returns
either a perspective camera component or an orthographic camera component, depending on which one is currently active.

◆ init()

virtual bool init ( utility::ErrorState errorState)
overridevirtual

Initialize this ComponentInstance

Reimplemented from ComponentInstance.