#include <progressreporter.h>
Public Member Functions | |
| ProgressReporter (int totalWork, const string &title, int barLength=-1) | |
| ~ProgressReporter () | |
| void | Update (int num=1) |
| void | Done () |
Private Attributes | |
| const int | totalWork |
| int | workDone |
| int | plussesPrinted |
| int | totalPlusses |
| Timer * | timer |
| FILE * | outFile |
| char * | buf |
| char * | curSpace |
| Mutex * | mutex |
Definition at line 35 of file progressreporter.h.
| ProgressReporter::ProgressReporter | ( | int | totalWork, | |
| const string & | title, | |||
| int | barLength = -1 | |||
| ) |
Definition at line 39 of file progressreporter.cpp.
References buf, Mutex::Create(), curSpace, mutex, outFile, PbrtOptions, plussesPrinted, Options::quiet, Timer::Start(), TerminalWidth(), timer, totalPlusses, and workDone.
| ProgressReporter::~ProgressReporter | ( | ) |
Definition at line 68 of file progressreporter.cpp.
References buf, Mutex::Destroy(), mutex, and timer.
| void ProgressReporter::Done | ( | ) |
Definition at line 98 of file progressreporter.cpp.
References buf, curSpace, mutex, outFile, PbrtOptions, plussesPrinted, Options::quiet, Timer::Time(), timer, and totalPlusses.
Referenced by PhotonIntegrator::Preprocess(), IrradianceCacheIntegrator::Preprocess(), SurfacePointsRenderer::Render(), SamplerRenderer::Render(), MetropolisRenderer::Render(), CreateRadianceProbes::Render(), and AggregateTest::Render().
| void ProgressReporter::Update | ( | int | num = 1 |
) |
Definition at line 75 of file progressreporter.cpp.
References buf, curSpace, mutex, outFile, PbrtOptions, plussesPrinted, Options::quiet, Round2Int(), Timer::Time(), timer, totalPlusses, totalWork, and workDone.
Referenced by AggregateTest::Render(), SurfacePointTask::Run(), SamplerRendererTask::Run(), ComputeRadianceTask::Run(), PhotonShootingTask::Run(), MLTTask::Run(), IrradiancePrimeTask::Run(), and CreateRadProbeTask::Run().
char* ProgressReporter::buf [private] |
Definition at line 49 of file progressreporter.h.
Referenced by Done(), ProgressReporter(), Update(), and ~ProgressReporter().
char * ProgressReporter::curSpace [private] |
Definition at line 49 of file progressreporter.h.
Referenced by Done(), ProgressReporter(), and Update().
Mutex* ProgressReporter::mutex [private] |
Definition at line 50 of file progressreporter.h.
Referenced by Done(), ProgressReporter(), Update(), and ~ProgressReporter().
FILE* ProgressReporter::outFile [private] |
Definition at line 48 of file progressreporter.h.
Referenced by Done(), ProgressReporter(), and Update().
int ProgressReporter::plussesPrinted [private] |
Definition at line 46 of file progressreporter.h.
Referenced by Done(), ProgressReporter(), and Update().
Timer* ProgressReporter::timer [private] |
Definition at line 47 of file progressreporter.h.
Referenced by Done(), ProgressReporter(), Update(), and ~ProgressReporter().
int ProgressReporter::totalPlusses [private] |
Definition at line 46 of file progressreporter.h.
Referenced by Done(), ProgressReporter(), and Update().
const int ProgressReporter::totalWork [private] |
Definition at line 45 of file progressreporter.h.
Referenced by Update().
int ProgressReporter::workDone [private] |
Definition at line 46 of file progressreporter.h.
Referenced by ProgressReporter(), and Update().
1.6.3