#include <USBCameraAcquire.h>
Public Member Functions | |
virtual RTC::ReturnCode_t | onActivated (RTC::UniqueId ec_id) |
Callback function to activate. | |
virtual RTC::ReturnCode_t | onDeactivated (RTC::UniqueId ec_id) |
Callback function to deactivate. | |
virtual RTC::ReturnCode_t | onExecute (RTC::UniqueId ec_id) |
Callback function to execute periodically. | |
virtual RTC::ReturnCode_t | onFinalize () |
Callback function to finalize. | |
USBCameraAcquire (RTC::Manager *manager) | |
~USBCameraAcquire () | |
Protected Attributes | |
TimedOctetSeq | m_out |
OutPort< TimedOctetSeq > | m_outOut |
Private Attributes | |
int | dummy |
CvCapture * | m_capture |
Definition at line 36 of file USBCameraAcquire.h.
USBCameraAcquire::USBCameraAcquire | ( | RTC::Manager * | manager | ) |
Definition at line 32 of file USBCameraAcquire.cpp.
Definition at line 57 of file USBCameraAcquire.cpp.
RTC::ReturnCode_t USBCameraAcquire::onActivated | ( | RTC::UniqueId | exec_handle | ) | [virtual] |
Callback function to activate.
This is a callback function that is executed when ComponentAction::on_activated was invoked.
As for actual activation of each component, since this function is dummy-implemented to return RTC::RTC_OK unconditionally, you need to implement this function by overriding it.
exec_handle | ID of the participant ExecutionContext |
Reimplemented from RTC::RTObject_impl.
Definition at line 87 of file USBCameraAcquire.cpp.
RTC::ReturnCode_t USBCameraAcquire::onDeactivated | ( | RTC::UniqueId | exec_handle | ) | [virtual] |
Callback function to deactivate.
This is a callback function that is executed when ComponentAction::on_deactivated was invoked.
As for actual deactivation of each component, since this function is dummy-implemented to return RTC::RTC_OK unconditionally, you need to implement this function by overriding it.
exec_handle | ID of the participant ExecutionContext |
Reimplemented from RTC::RTObject_impl.
Definition at line 99 of file USBCameraAcquire.cpp.
RTC::ReturnCode_t USBCameraAcquire::onExecute | ( | RTC::UniqueId | exec_handle | ) | [virtual] |
Callback function to execute periodically.
This is a callback function that is executed when DataFlowComponentAction::on_execute is invoked.
As for actual periodic execution of each component, since this function is dummy-implemented to return RTC::RTC_OK unconditionally, you need to implement this function by overriding it. This function is invoked periodically as the first execution pass of Two-Pass Execution in Periodic Sampled Data Processing.
exec_handle | ID of the participant ExecutionContext |
Reimplemented from RTC::RTObject_impl.
Definition at line 108 of file USBCameraAcquire.cpp.
RTC::ReturnCode_t USBCameraAcquire::onFinalize | ( | void | ) | [virtual] |
Callback function to finalize.
This is a callback function that is executed when ComponentAction::on_finalize was invoked.
As for actual finalization of each component, since this function is dummy-implemented to return RTC::RTC_OK unconditionally, you need to implement this function by overriding it.
Reimplemented from RTC::RTObject_impl.
Definition at line 68 of file USBCameraAcquire.cpp.
int USBCameraAcquire::dummy [private] |
Definition at line 125 of file USBCameraAcquire.h.
CvCapture* USBCameraAcquire::m_capture [private] |
Definition at line 127 of file USBCameraAcquire.h.
TimedOctetSeq USBCameraAcquire::m_out [protected] |
Definition at line 101 of file USBCameraAcquire.h.
OutPort<TimedOctetSeq> USBCameraAcquire::m_outOut [protected] |
Definition at line 102 of file USBCameraAcquire.h.