5 #ifndef __RD_IMAGE_MANAGER_HPP__
6 #define __RD_IMAGE_MANAGER_HPP__
12 #include <yarp/sig/Image.h>
14 #include "ImageEventListener.hpp"
18 typedef yarp::sig::ImageOf<yarp::sig::PixelRgb> Image;
20 class ImageEventListener;
69 virtual bool start() = 0;
72 virtual bool stop() = 0;
92 virtual bool configure(
const std::string & parameter,
const std::string & value);
120 #endif //-- __RD_IMAGE_MANAGER_HPP__
virtual bool stop()=0
Stop capturing images.
virtual bool setEnabled(bool enabled)=0
Enables/disables notifications to listeners.
static ImageManager * imageManagerInstance
Stores the unique instance of the InputManager.
Definition: ImageManager.hpp:107
Interface for objects that can be notified of events related to images.
Definition: ImageEventListener.hpp:21
static std::map< std::string, ImageManager * > imageManagerRegistry
Stores all the ImageManager that have been registered.
Definition: ImageManager.hpp:113
The main, catch-all namespace for Robot Devastation.
Definition: groups.dox:4
std::vector< ImageEventListener * > listeners
Observers registered to be notified of image events.
Definition: ImageManager.hpp:103
virtual bool isStopped() const =0
True if the manager is not active.
static ImageManager * getImageManager()
Get a reference to the ImageManager.
Definition: ImageManager.cpp:16
static bool destroyImageManager()
Deallocate all the registered ImageManager.
Definition: ImageManager.cpp:53
static bool Register(ImageManager *manager, const std::string &id)
This function allows subclasses to install their unique instances in the singleton register to be sel...
Definition: ImageManager.cpp:113
bool addImageEventListener(ImageEventListener *listener)
Adds a ImageEventListener to the list of observers to be notified of events.
Definition: ImageManager.cpp:96
static std::string currentId
Stores the id of the current unique instance used.
Definition: ImageManager.hpp:110
virtual bool configure(const std::string ¶meter, const std::string &value)
Configures a parameter with a value.
Definition: ImageManager.cpp:108
bool removeImageEventListeners()
Unregisters all the ImageEventListener stored.
Definition: ImageManager.cpp:102
virtual bool start()=0
Start to capture images.
Generic image input manager.
Definition: ImageManager.hpp:39
virtual Image getImage() const =0
Return the last received image.