automotive-message-broker  0.14.803
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
Classes | Public Types | Public Slots | Public Member Functions | Public Attributes | List of all members
OpenCvLuxPlugin Class Reference
Inheritance diagram for OpenCvLuxPlugin:
AmbPluginImpl

Classes

struct  Shared
 

Public Types

typedef BasicPropertyType< bool > DriverDrowsinessType
 

Public Slots

void imgProcResult ()
 

Public Member Functions

 OpenCvLuxPlugin (AbstractRoutingEngine *re, map< string, string > config, AbstractSource &parent)
 
const string uuid () const
 
void getPropertyAsync (AsyncPropertyReply *reply)
 getPropertyAsync is called when a sink requests the value for given property. This is only called if the source supports the Get operation.
 
void getRangePropertyAsync (AsyncRangePropertyReply *reply)
 getRangePropertyAsync is called when a sink requests a series of values for a given property within a specified time or sequencial range. This will only be called if the source support the Ranged Operation.
 
AsyncPropertyReplysetProperty (AsyncSetPropertyRequest request)
 
void subscribeToPropertyChanges (VehicleProperty::Property property)
 
void unsubscribeToPropertyChanges (VehicleProperty::Property property)
 
void propertyChanged (AbstractPropertyType *value)
 
void supportedChanged (const PropertyList &)
 
void updateProperty (uint16_t lux)
 
void writeVideoFrame (cv::UMat frame)
 
void detectEyes (cv::UMat frame)
 
void init ()
 
- Public Member Functions inherited from AmbPluginImpl
 AmbPluginImpl (AbstractRoutingEngine *re, const map< string, string > &config, AbstractSource &parent)
 
virtual AsyncPropertyReplysetProperty (const AsyncSetPropertyRequest &request)
 setProperty is called when a sink requests to set a value for a given property. This is only called if the source supports the Set Operation.
 
virtual void subscribeToPropertyChanges (const VehicleProperty::Property &property)
 subscribeToPropertyChanges is called when a sink requests a subscription. Source plugins can keep track of subscriptions and may wish to sleep if there are no subscriptions.
 
virtual void unsubscribeToPropertyChanges (const VehicleProperty::Property &property)
 unsubscribeToPropertyChanges is called when a sink requests to unsubscribe from a given property's changes.
 
virtual PropertyList supported () const
 supported is called by the routingEngine to understand what properties this source supports.
 
virtual int supportedOperations () const
 supportedOperations
 
virtual PropertyInfo getPropertyInfo (const VehicleProperty::Property &property)
 getPropertyInfo used to return specific information about a property. The source should override this otherwise a PropertyInfo::invalid() will be returned for the property
 
template<typename T >
void setValue (std::shared_ptr< AbstractPropertyType > property, T value)
 setValue of a property
 

Public Attributes

std::shared_ptr
< AbstractPropertyType
videoLogging
 

Additional Inherited Members

- Protected Types inherited from AmbPluginImpl
typedef std::map< Zone::Type,
std::shared_ptr
< AbstractPropertyType > > 
ZonePropertyType
 
- Protected Member Functions inherited from AmbPluginImpl
virtual AbstractPropertyTypefindPropertyType (const VehicleProperty::Property &propertyName, const Zone::Type &zone=Zone::None)
 
std::shared_ptr
< AbstractPropertyType
addPropertySupport (Zone::Type zone, std::function< AbstractPropertyType *(void)> typeFactory, std::string sourceUuid="")
 
template<class T >
std::shared_ptr
< AbstractPropertyType
addPropertySupport (Zone::Type zone)
 
- Protected Attributes inherited from AmbPluginImpl
AbstractSourcesource
 
AbstractRoutingEngineroutingEngine
 
std::map
< VehicleProperty::Property,
ZonePropertyType
properties
 
std::map< std::string,
std::string > 
configuration
 

Member Function Documentation

void OpenCvLuxPlugin::getPropertyAsync ( AsyncPropertyReply reply)
virtual

getPropertyAsync is called when a sink requests the value for given property. This is only called if the source supports the Get operation.

Parameters
replythe reply variable.

Reimplemented from AmbPluginImpl.

void OpenCvLuxPlugin::getRangePropertyAsync ( AsyncRangePropertyReply reply)
virtual

getRangePropertyAsync is called when a sink requests a series of values for a given property within a specified time or sequencial range. This will only be called if the source support the Ranged Operation.

Parameters
replyis the reply variable.

Reimplemented from AmbPluginImpl.

void OpenCvLuxPlugin::init ( )
virtual

Second phase of the plugin initialization.

Reimplemented from AmbPluginImpl.

void OpenCvLuxPlugin::propertyChanged ( AbstractPropertyType value)
virtual

propertyChanged is called when a subscribed to property changes.

Parameters
valuevalue of the property that changed. this is a temporary pointer that will be destroyed. Do not destroy it. If you need to store the value use value.anyValue(), value.value<T>() or value->copy() to copy.

Reimplemented from AmbPluginImpl.

void OpenCvLuxPlugin::supportedChanged ( const PropertyList &  supportedProperties)
virtual

supportedChanged() is called when the supported properties changes

  \param supportedProperties the new list of supported properties.

Reimplemented from AmbPluginImpl.

const string OpenCvLuxPlugin::uuid ( ) const
virtual

uuid() is a unique identifier

Returns
a guid-style unique identifier

Implements AmbPluginImpl.


The documentation for this class was generated from the following file: