FilterBankEvent.hGo 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
00008
00009 class FilterBankEvent : public EventBase {
00010 public:
00011
00012 FilterBankEvent(FilterBankGenerator* creator,EventBase::EventGeneratorID_t gid,unsigned int sid,EventBase::EventTypeID_t tid)
00013 : EventBase(gid,sid,tid,0,creator->getName()), src(creator)
00014 {}
00015
00016
00017 FilterBankEvent(const FilterBankEvent& fbk) : EventBase(fbk), src(fbk.src) {}
00018
00019
00020 const FilterBankEvent& operator=(const FilterBankEvent& fbk) { EventBase::operator=(fbk); src=fbk.src; return *this; }
00021
00022 virtual EventBase* clone() const { return new FilterBankEvent(*this); }
00023
00024
00025
00026
00027
00028 inline FilterBankGenerator* getSource() const { return src; }
00029
00030
00031 inline unsigned int getNumLayers() const { return src->getNumLayers(); }
00032
00033
00034 inline unsigned int getNumChannels() const { return src->getNumChannels(); }
00035
00036
00037
00038 inline unsigned char * getImage(unsigned int layer, unsigned int channel) const { return src->getImage(layer,channel); }
00039
00040
00041 inline unsigned int getWidth(unsigned int layer) const { return src->getWidth(layer); }
00042
00043 inline unsigned int getHeight(unsigned int layer) const { return src->getHeight(layer); }
00044
00045 inline unsigned int getSkip(unsigned int layer) const { return src->getSkip(layer); }
00046
00047
00048 inline unsigned int getStride(unsigned int layer) const { return src->getStride(layer); }
00049
00050 inline unsigned int getIncrement(unsigned int layer) const { return src->getIncrement(layer); }
00051
00052
00053 inline unsigned int getFrameNumber() const { return src->getFrameNumber(); }
00054
00055 inline unsigned int getFramesProcessed() const { return src->getFramesProcessed(); }
00056
00057 protected:
00058
00059
00060 FilterBankGenerator* src;
00061
00062 private:
00063 };
00064
00065
00066
00067
00068
00069
00070
00071
00072
00073
00074
00075
00076 #endif
|