RenderOutput.cpp

Go to the documentation of this file.
00001 /**<!-------------------------------------------------------------------->
00002    @file   RenderOutput.cpp
00003    @author Travis Fischer (fisch0920@gmail.com)
00004    @author Matthew Jacobs (jacobs.mh@gmail.com)
00005    @date   Fall 2008
00006    
00007    @brief
00008       Records point samples from a renderer which may be used to construct 
00009    an output image on a local or distributed machine
00010    <!-------------------------------------------------------------------->**/
00011 
00012 #include "RenderOutput.h"
00013 #include "PointSample.h"
00014 
00015 #include <QMutexLocker>
00016 #include <QtCore>
00017 
00018 void RenderOutput::init() {
00019    const unsigned width  = getValue<unsigned>("width",  480u);
00020    const unsigned height = getValue<unsigned>("height", 480u);
00021    
00022    m_viewport.setSize(width, height);
00023 }
00024 
00025 void RenderOutput::finalize()
00026 { } // purposefully empty
00027 
00028 void RenderOutput::addSample(const PointSample &sample) {
00029    QMutexLocker lock(&m_mutex);
00030    
00031    _addSample(sample);
00032 }
00033 
00034 void RenderOutput::_addSample(const PointSample &sample)
00035 { } // purposefully empty
00036 

Generated on 28 Feb 2009 for Milton by doxygen 1.5.6