ACT-CV - Machine Vision for Cognitive Modeling
|
#include <FrameObserver.h>
Public Member Functions | |
void | AddObserver (const GCPointer< FrameObs > &obs) |
void | RemoveObserver (const GCPointer< FrameObs > &obs) |
remove obs from the list of observers More... | |
GCPointer< FrameObs > | FindObserver (const std::string &s) const |
Protected Member Functions | |
void | FireFrameNotification (IplImage *img, int frameNr) const |
void | FireRegionNotification (const std::vector< RegionInfo > ®ions) const |
Private Types | |
typedef std::map< std::string, GCPointer< FrameObs > >::const_iterator | obs_iter |
Private Attributes | |
std::map< std::string, GCPointer< FrameObs > > | observers |
support for FrameObs
Definition at line 86 of file FrameObserver.h.
|
private |
Definition at line 88 of file FrameObserver.h.
two observers with the same name are not allowed
Definition at line 102 of file FrameObserver.h.
References FrameObs::GetName(), and observers.
Referenced by main(), tests::FrameObsTestDifferent::Run(), and tests::FrameObsTestEqualNames::Run().
don't call this too often. String matching is expensive
Definition at line 121 of file FrameObserver.h.
References observers.
|
protected |
Definition at line 90 of file FrameObserver.h.
References observers.
Referenced by tests::DummyFrameSource::FireNotification(), StillImage::FireNotification(), FrameLoopImpl::Loop(), FrameLoopImpl::LoopNFrames(), FrameLoopImpl::LoopUntilKeyPress(), and FrameLoopImpl::SingleFrame().
|
protected |
Definition at line 95 of file FrameObserver.h.
References observers.
Referenced by FrameLoopImpl::LoopUntilKeyPress(), and FrameLoopImpl::SingleFrame().
remove obs from the list of observers
Definition at line 112 of file FrameObserver.h.
References FrameObs::GetName(), and observers.
Referenced by tests::FrameObsTestDifferent::Run(), and tests::FrameObsTestEqualNames::Run().
Definition at line 87 of file FrameObserver.h.
Referenced by AddObserver(), FindObserver(), FireFrameNotification(), FireRegionNotification(), and RemoveObserver().