NAP
Public Member Functions | Public Attributes | List of all members
CameraController Class Reference

#include <cameracontroller.h>

Public Member Functions

virtual void getDependentComponents (std::vector< rtti::TypeInfo > &components) const override
 
- Public Member Functions inherited from Component
virtual const rtti::TypeInfo getInstanceType () const =0
 
- Public Member Functions inherited from Resource
 Resource ()
 
- Public Member Functions inherited from Object
 Object ()
 
virtual ~Object ()
 
virtual bool init (utility::ErrorState &errorState)
 
virtual void onDestroy ()
 
 Object (Object &)=delete
 
Objectoperator= (const Object &)=delete
 
 Object (Object &&)=delete
 
Objectoperator= (Object &&)=delete
 

Public Attributes

nap::EntityPtr mLookAtTarget
 Property: 'LookAtTarget' Object to look at, used by the orbit and ortho controller. More...
 
- Public Attributes inherited from Object
std::string mID
 Property: 'mID' unique name of the object. Used as an identifier by the system. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from Object
static bool isIDProperty (rtti::Instance &object, const rtti::Property &property)
 

Description

Resource 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 CameraController:
[legend]
Collaboration diagram for CameraController:
[legend]

Member Function Documentation

◆ getDependentComponents()

virtual void getDependentComponents ( std::vector< rtti::TypeInfo > &  components) const
overridevirtual

Returns the controllers this component depends upon.

Parameters
componentsthe various controllers this component depends upon.

Reimplemented from Component.

Member Data Documentation

◆ mLookAtTarget

nap::EntityPtr mLookAtTarget

Property: 'LookAtTarget' Object to look at, used by the orbit and ortho controller.