CameraManager Class Reference
#include <CameraManager.hh>
Detailed Description
Class to manage all the cameras in the world.
Public Member Functions | |
~CameraManager () | |
Destructor. | |
void | AddCamera (CameraSensor *camera) |
Add camera to the manager. | |
void | Clear () |
Del all the cameras. | |
unsigned int | GetNumCameras () const |
Return the number of cameras. | |
CameraSensor * | GetCamera (int index) |
Get a camera. | |
void | SetActiveCamera (unsigned int index) |
Set a camera to be active. | |
CameraSensor * | GetActiveCamera () |
Return the active camera. | |
void | IncActiveCamera () |
Set the next camera in the queue to be active. | |
void | DecActiveCamera () |
Set the prev camera in the queue to be active. | |
Static Public Member Functions | |
static CameraManager * | Instance () |
Get instance of the camera manager. |
Member Function Documentation
CameraSensor* GetCamera | ( | int | index | ) |
Get a camera.
- Parameters:
-
index Index of the camera to get
- Returns:
- Pointer to the camera
CameraSensor* GetActiveCamera | ( | ) |
Return the active camera.
- Returns:
- Pointer to the active camera
The documentation for this class was generated from the following file: