Vision Subscription
Overview
The VisionSubscription class maintains a list of computer vision services whose data and methods you want access to. If no VisionSubscription has asked for service X, its results will not be computed. This optimization allows us to employ computationally intensive vision algorithms without worrying about them being run if their values are not needed.
List of Methods
VisionSubscription
subscribe
unsubscribe
unsubscribeAll
disable
enable
isEnabled
Method Details
VisionSubscription::VisionSubscription ()
A constructor for a new VisionSubscription object. Use one of these to manage your service subscriptions. On destruction, all subscriptions are cancelled.
VisionService* VisionSubscription::subscribe(int serviceID)
Add the service with the specified ID to your subscription. Returns a pointer to the service.
void VisionSubscription::unsubscribe(int serviceID)
Remove the service with the specified ID to your subscription.
void VisionSubscription::unsubscribeAll()
Unsubscribe and remove all services from this subscription.
void VisionSubscription::disable()
Temporarily unsubscribe from all services that are part of this subscription, but remember the list of them.
void VisionSubscription::enable()
Re-subscribe to all services in this subscription if disabled.
bool VisionSubscription::isEnabled()
Returns true if this subscription is enabled (the default).
