SampleConsumer.h

Go to the documentation of this file.
00001 /**<!-------------------------------------------------------------------->
00002    @class  SampleConsumer
00003    @author Travis Fischer (fisch0920@gmail.com)
00004    @author Matthew Jacobs (jacobs.mh@gmail.com)
00005    @date   Fall 2008
00006    
00007    @brief
00008       Threaded point sample evaluation (represents the 'consumer' in the 
00009    classic producer/consumer problem)
00010    
00011    @see also SampleGenerator
00012    <!-------------------------------------------------------------------->**/
00013 
00014 #ifndef SAMPLE_CONSUMER_H_
00015 #define SAMPLE_CONSUMER_H_
00016 
00017 #include <QThread>
00018 
00019 class PointSampleRenderer;
00020 
00021 class SampleConsumer : public QThread {
00022    public:
00023       inline SampleConsumer(PointSampleRenderer *renderer) 
00024          : m_renderer(renderer)
00025       { }
00026       
00027       virtual ~SampleConsumer()
00028       { }
00029       
00030       virtual void init();
00031       
00032       virtual void run();
00033       
00034    protected:
00035       PointSampleRenderer *m_renderer;
00036 };
00037 
00038 #endif // SAMPLE_CONSUMER_H_
00039 

Generated on 28 Feb 2009 for Milton by doxygen 1.5.6