Public Member Functions | Public Attributes | List of all members
OrthoController Class Reference

#include <orthocontroller.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

float mZoomSpeed = 0.5f
 Property: "ZoomSpeed" The speed with which to move. More...
ComponentPtr< OrthoCameraComponentmOrthoCameraComponent
 Property: "OrthoCameraComponent" Camera that we're controlling. 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)


Resource part of the orthographic controller. Adds Orthographic camera control to the entity it is attached to. It uses the TransformComponent to move the entity and the InputComponent to receive input. These components are required to be present on the same entity. Hold left mouse button to pan, right mouse button to zoom.

Inheritance diagram for OrthoController:
Collaboration diagram for OrthoController:

Member Function Documentation

◆ getDependentComponents()

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

Get the types of components on which this component depends

Reimplemented from Component.

Member Data Documentation

◆ mOrthoCameraComponent

ComponentPtr<OrthoCameraComponent> mOrthoCameraComponent

Property: "OrthoCameraComponent" Camera that we're controlling.

◆ mZoomSpeed

float mZoomSpeed = 0.5f

Property: "ZoomSpeed" The speed with which to move.