40 yCError(FRAMEGRABBERCROPPER) <<
"The device is not valid";
46 poly->
view(iFrameGrabberControls);
47 poly->
view(iFrameGrabberControlsDC1394);
48 poly->
view(iRgbVisualParams);
49 poly->
view(iPreciselyTimed);
52 yCError(FRAMEGRABBERCROPPER) <<
"The device does not implement the required interfaces";
63 iFrameGrabberControls =
nullptr;
64 iFrameGrabberControlsDC1394 =
nullptr;
65 iRgbVisualParams =
nullptr;
66 iPreciselyTimed =
nullptr;
72 if (device2attach.
size() != 1) {
73 yCError(FRAMEGRABBERCROPPER,
"Expected only one device to be attached");
77 return attach(device2attach[0]->poly);
yarp::sig::VectorOf< std::pair< int, int > > vertices
yarp::dev::IFrameGrabberOf< yarp::sig::ImageOf< yarp::sig::PixelRgb > > * iFrameGrabberOf
bool parseParams(const yarp::os::Searchable &config) override
Parse the DeviceDriver parameters.
bool close() override
Close the DeviceDriver.
bool attachAll(const yarp::dev::PolyDriverList &device2attach) override
Attach to a list of objects.
bool detach() override
Detach the object (you must have first called attach).
bool open(yarp::os::Searchable &config) override
Open the DeviceDriver.
bool detachAll() override
Detach the object (you must have first called attach).
~FrameGrabberCropper() override
bool attach(yarp::dev::PolyDriver *poly) override
Attach to another object.
bool view(T *&x)
Get an interface to the device driver.
A container for a device driver.
bool isValid() const
Check if device is valid.
A base class for nested structures that can be searched.
#define yCError(component,...)
#define YARP_LOG_COMPONENT(name,...)