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