#include "stdafx.h"
#include "progressreporter.h"
#include <stdarg.h>
Go to the source code of this file.
Defines | |
#define | PBRT_ERROR_IGNORE 0 |
#define | PBRT_ERROR_CONTINUE 1 |
#define | PBRT_ERROR_ABORT 2 |
Functions | |
const char * | findWordEnd (const char *buf) |
static void | processError (const char *format, va_list args, const char *message, int disposition) |
void | Info (const char *format,...) |
void | Warning (const char *format,...) |
void | Error (const char *format,...) |
void | Severe (const char *format,...) |
#define PBRT_ERROR_ABORT 2 |
Definition at line 35 of file error.cpp.
Referenced by processError(), and Severe().
#define PBRT_ERROR_CONTINUE 1 |
#define PBRT_ERROR_IGNORE 0 |
Definition at line 33 of file error.cpp.
Referenced by processError().
void Error | ( | const char * | format, | |
... | ||||
) |
Definition at line 122 of file error.cpp.
References PBRT_ERROR_CONTINUE, and processError().
Referenced by CreateBilerpFloatTexture(), CreateBilerpSpectrumTexture(), CreateCheckerboardFloatTexture(), CreateCheckerboardSpectrumTexture(), CreateDotsFloatTexture(), CreateDotsSpectrumTexture(), CreateGridVolumeRegion(), CreateImageFloatTexture(), CreateImageSpectrumTexture(), CreateTriangleMeshShape(), CreateUVSpectrumTexture(), TextureParams::GetFloatTexture(), TextureParams::GetSpectrumTexture(), ImageFilm::ImageFilm(), Inverse(), main(), MakeMaterial(), MeasuredMaterial::MeasuredMaterial(), NumSystemCores(), pbrtAttributeEnd(), pbrtCleanup(), pbrtInit(), pbrtLightSource(), pbrtMakeNamedMaterial(), pbrtObjectBegin(), pbrtObjectEnd(), pbrtObjectInstance(), pbrtTexture(), pbrtTransformEnd(), DipoleSubsurfaceIntegrator::Preprocess(), ReadFloatFile(), ReadImage(), ReadImagePFM(), ReadImageTGA(), SamplerRendererTask::Run(), PhotonShootingTask::Run(), UseRadianceProbes::UseRadianceProbes(), WriteImage(), WriteImagePFM(), and WriteImageTGA().
const char* findWordEnd | ( | const char * | buf | ) |
Definition at line 37 of file error.cpp.
Referenced by processError().
void Info | ( | const char * | format, | |
... | ||||
) |
Definition at line 104 of file error.cpp.
References PBRT_ERROR_CONTINUE, PbrtOptions, processError(), Options::quiet, and Options::verbose.
Referenced by BVHAccel::BVHAccel(), pbrtTexture(), ReadImageTGA(), and MetropolisRenderer::Render().
static void processError | ( | const char * | format, | |
va_list | args, | |||
const char * | message, | |||
int | disposition | |||
) | [static] |
Definition at line 44 of file error.cpp.
References findWordEnd(), PBRT_ERROR_ABORT, PBRT_ERROR_IGNORE, and TerminalWidth().
void Severe | ( | const char * | format, | |
... | ||||
) |
Definition at line 130 of file error.cpp.
References PBRT_ERROR_ABORT, and processError().
Referenced by Shape::Area(), ConditionVariable::ConditionVariable(), GraphicsState::CreateMaterial(), RWMutexLock::DowngradeToRead(), Aggregate::GetAreaLight(), Aggregate::GetBSDF(), Aggregate::GetBSSRDF(), InterpolateSpectrumSamples(), Shape::Intersect(), Shape::IntersectP(), ConditionVariable::Lock(), RenderOptions::MakeCamera(), RenderOptions::MakeRenderer(), RenderOptions::MakeScene(), Mutex::Mutex(), MutexLock::MutexLock(), SDFace::otherVert(), pbrtObjectInstance(), Semaphore::Post(), Shape::Refine(), Primitive::Refine(), SurfacePointsRenderer::Render(), CreateRadianceProbes::Render(), RWMutex::RWMutex(), Shape::Sample(), Semaphore::Semaphore(), SHEvaluate(), ConditionVariable::Signal(), TasksCleanup(), TasksInit(), ConditionVariable::Unlock(), RWMutexLock::UpgradeToWrite(), UseRadianceProbes::UseRadianceProbes(), SDFace::vnum(), ConditionVariable::Wait(), Semaphore::Wait(), Mutex::~Mutex(), MutexLock::~MutexLock(), RWMutex::~RWMutex(), RWMutexLock::~RWMutexLock(), and Semaphore::~Semaphore().
void Warning | ( | const char * | format, | |
... | ||||
) |
Definition at line 113 of file error.cpp.
References PBRT_ERROR_CONTINUE, PbrtOptions, processError(), and Options::quiet.
Referenced by AdaptiveSampler::AdaptiveSampler(), ParamSet::AddSampledSpectrumFiles(), BVHAccel::BVHAccel(), Camera::Camera(), Checkerboard2DTexture< T >::Checkerboard2DTexture(), CreateDirectLightingIntegrator(), CreateRadianceProbesRenderer(), CreateSubsurfaceMaterial(), CreateTriangleMeshShape(), ImageFilm::ImageFilm(), LDSampler::LDSampler(), Light::Light(), MakeAccelerator(), MakeAreaLight(), MakeCamera(), MakeFilm(), MakeFilter(), MakeFloatTexture(), MakeLight(), MakeMaterial(), RenderOptions::MakeRenderer(), MakeSampler(), MakeShape(), MakeSpectrumTexture(), MakeSurfaceIntegrator(), MakeVolumeIntegrator(), MakeVolumeRegion(), MetropolisRenderer::MetropolisRenderer(), pbrtCoordSysTransform(), pbrtLookAt(), pbrtShape(), pbrtWorldEnd(), ReadFloatFile(), AggregateTest::Render(), SurfacePointTask::Run(), ShapeSet::ShapeSet(), and ImageFilm::Splat().