FilterBankEvent.h
Go to the documentation of this file.00001
00002 #ifndef INCLUDED_FilterBankEvent_h_
00003 #define INCLUDED_FilterBankEvent_h_
00004
00005 #include "Events/EventBase.h"
00006 #include "Vision/FilterBankGenerator.h"
00007 #include "Shared/Factories.h"
00008
00009
00010 class FilterBankEvent : public EventBase {
00011 public:
00012
00013 FilterBankEvent(FilterBankGenerator* creator,EventBase::EventGeneratorID_t gid,size_t sid,EventBase::EventTypeID_t tid)
00014 : EventBase(gid,sid,tid,0,creator->getName()), src(creator)
00015 {}
00016
00017
00018 FilterBankEvent(const FilterBankEvent& fbk) : EventBase(fbk), src(fbk.src) {}
00019
00020
00021 const FilterBankEvent& operator=(const FilterBankEvent& fbk) { EventBase::operator=(fbk); src=fbk.src; return *this; }
00022
00023 virtual EventBase* clone() const { return new FilterBankEvent(*this); }
00024
00025
00026
00027
00028
00029 inline FilterBankGenerator* getSource() const { return src; }
00030
00031
00032 inline unsigned int getNumLayers() const { return src->getNumLayers(); }
00033
00034
00035 inline unsigned int getNumChannels() const { return src->getNumChannels(); }
00036
00037
00038
00039 inline unsigned char * getImage(unsigned int layer, unsigned int channel) const { return src->getImage(layer,channel); }
00040
00041
00042 virtual size_t getImageSize(unsigned int layer, unsigned int chan) const { return src->getImageSize(layer,chan); }
00043
00044
00045 inline unsigned int getWidth(unsigned int layer) const { return src->getWidth(layer); }
00046
00047 inline unsigned int getHeight(unsigned int layer) const { return src->getHeight(layer); }
00048
00049 inline unsigned int getSkip(unsigned int layer) const { return src->getSkip(layer); }
00050
00051
00052 inline unsigned int getStride(unsigned int layer) const { return src->getStride(layer); }
00053
00054 inline unsigned int getIncrement(unsigned int layer) const { return src->getIncrement(layer); }
00055
00056
00057 inline unsigned int getFrameNumber() const { return src->getFrameNumber(); }
00058
00059 inline unsigned int getFramesProcessed() const { return src->getFramesProcessed(); }
00060
00061 virtual classTypeID_t getClassTypeID() const { return autoRegisterFilterBankEvent; }
00062
00063 protected:
00064
00065
00066 FilterBankGenerator* src;
00067
00068
00069
00070 static const EventBase::classTypeID_t autoRegisterFilterBankEvent;
00071
00072
00073 FilterBankEvent() : EventBase(), src(NULL) {}
00074 friend struct Factory0Arg<EventBase>::Factory<FilterBankEvent>;
00075 };
00076
00077
00078
00079
00080
00081
00082 #endif