Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

main.cpp File Reference

#include "clparser.h"
#include "common/math/mt19937rng.h"
#include "common/math/real.h"
#include "common/misc/consoleprogressmonitor.h"
#include "common/misc/minmax.h"
#include "common/misc/stringutils.h"
#include "renderer/causticsphotontracer.h"
#include "renderer/context.h"
#include "renderer/framebuffer.h"
#include "renderer/globalphotontracer.h"
#include "renderer/globals.h"
#include "renderer/icamera.h"
#include "renderer/photonmap.h"
#include "renderer/renderer.h"
#include "renderer/scene.h"
#include "renderer/settings.h"
#include "renderer/statistics.h"
#include "renderer/utilities.h"
#include "driversettings.h"
#include "driversettingswrapper.h"
#include "error.h"
#include "helpers.h"
#include "scenebuilder.h"
#include "scenesettingswrapper.h"
#include "version.h"
#include <IL/il.h>
#include <IL/ilu.h>
#include <cassert>
#include <cstdio>
#include <cstdlib>
#include <iostream>
#include <sstream>
#include <string>

Go to the source code of this file.

Functions

void print_disclaimer ()
string get_home_path ()
void load_settings (DriverSettingsWrapper *driver_settings, SceneSettingsWrapper *scene_settings, const string &home_path)
void print_statistics (const Statistics &statistics)
int main (int argc, char *argv[])


Function Documentation

string get_home_path  )  [static]
 

Definition at line 92 of file toxic/src/driver/main.cpp.

References toxic::Error(), sheep::GetApplicationPath(), and toxic::Warning().

Referenced by main().

void load_settings DriverSettingsWrapper driver_settings,
SceneSettingsWrapper scene_settings,
const string &  home_path
[static]
 

Definition at line 121 of file toxic/src/driver/main.cpp.

References toxic::SceneSettingsWrapper::Load(), toxic::DriverSettingsWrapper::Load(), toxic::DriverSettings::SettingsFiles::m_driver_settings_file, toxic::DriverSettings::SettingsFiles::m_scene_settings_file, and toxic::DriverSettings::m_settings_files.

Referenced by main().

int main int  argc,
char *  argv[]
 

Definition at line 306 of file toxic/src/driver/main.cpp.

References toxic::PhotonMap::Balance(), BUILD_NUMBER, toxic::SceneSettingsWrapper::CheckConsistency(), toxic::DriverSettingsWrapper::CheckConsistency(), toxic::Framebuffer::Clear(), toxic::ConvertNumberToString(), toxic::ConvertSizeToString(), toxic::Framebuffer::CorrectGamma(), toxic::PhotonMap::CreateFromFile(), sheep::ProgressMonitor::Done(), toxic::Error(), get_home_path(), toxic::SceneBuilder::GetCamera(), toxic::Scene::GetLightCount(), toxic::IObject::GetObjectCount(), toxic::PhotonMap::GetPhotonCount(), toxic::Renderer::GetProgress(), toxic::Scene::GetRootObject(), toxic::SceneBuilder::GetScene(), toxic::PhotonMap::GetSizeInMemory(), toxic::Framebuffer::GetSizeInMemory(), toxic::Renderer::IsRenderComplete(), load_settings(), toxic::Settings::Rendering::Components::m_caustics, toxic::DriverSettings::m_caustics_photon_map, toxic::Settings::Rendering::m_components, toxic::Statistics::m_cpm_photons, toxic::Settings::Output::GammaCorrection::m_enabled, toxic::Settings::Rendering::Components::IndirectLighting::RadiancePrecomp::m_enabled, toxic::Settings::Output::RenderArea::m_enabled, toxic::DriverSettings::PrimaryOutput::m_enabled, toxic::Settings::Rendering::Components::Caustics::m_enabled, toxic::Settings::Rendering::Components::IndirectLighting::m_enabled, toxic::DriverSettings::PrimaryOutput::m_file, toxic::DriverSettings::CausticsPhotonMap::m_file, toxic::DriverSettings::GlobalPhotonMap::m_file, toxic::Settings::Output::m_gamma_correction, toxic::DriverSettings::m_global_photon_map, toxic::Statistics::m_gpm_photons, toxic::DriverSettings::PrimaryOutput::m_height, toxic::Settings::Rendering::Components::m_indirect_lighting, toxic::DriverSettings::m_input_files, toxic::Settings::RadianceEstimateSettings::m_max_distance, toxic::Settings::RadianceEstimateSettings::m_max_photons, toxic::DriverSettings::CausticsPhotonMap::m_op, toxic::DriverSettings::GlobalPhotonMap::m_op, toxic::Settings::m_output, toxic::Settings::Rendering::Components::Caustics::m_photon_tracing, toxic::Settings::Rendering::Components::IndirectLighting::m_photon_tracing, toxic::Settings::Rendering::Components::Caustics::PhotonTracing::m_photons, toxic::Settings::Rendering::Components::IndirectLighting::PhotonTracing::m_photons, toxic::DriverSettings::m_primary_output, toxic::Settings::Rendering::Components::IndirectLighting::m_radiance_est, toxic::Settings::Rendering::Components::IndirectLighting::m_radiance_precomp, toxic::Settings::Output::m_render_area, toxic::Settings::m_rendering, toxic::DriverSettings::InputFiles::m_scene_file, toxic::Settings::Rendering::Components::IndirectLighting::RadiancePrecomp::m_spacing, toxic::Settings::Output::GammaCorrection::m_target_gamma, toxic::DriverSettings::PrimaryOutput::m_width, toxic::Settings::Output::RenderArea::m_x0, toxic::Settings::Output::RenderArea::m_x1, toxic::Settings::Output::RenderArea::m_y0, toxic::Settings::Output::RenderArea::m_y1, toxic::Percentage(), toxic::PhotonMap::PrecomputeRadiances(), toxic::SceneSettingsWrapper::Print(), toxic::DriverSettingsWrapper::Print(), print_disclaimer(), print_statistics(), toxic::Renderer::RenderNextPixel(), sheep::ConsoleProgressMonitor::Reset(), toxic::Renderer::Restart(), toxic::Renderer::SetCamera(), toxic::Renderer::SetCausticsPhotonMap(), toxic::Renderer::SetFramebuffer(), toxic::Renderer::SetGlobalPhotonMap(), sheep::ProgressMonitor::SetJobProgress(), toxic::Renderer::SetRenderArea(), toxic::Renderer::SetScene(), sheep::ProgressMonitor::StartJob(), toxic::VERSION, toxic::Framebuffer::WriteToDisk(), and toxic::PhotonMap::WriteToFile().

void print_disclaimer  )  [static]
 

Definition at line 85 of file toxic/src/driver/main.cpp.

Referenced by main().

void print_statistics const Statistics statistics  )  [static]
 

Definition at line 145 of file toxic/src/driver/main.cpp.

References toxic::Statistics::ComputeTotalRays(), toxic::ConvertNumberToString(), toxic::Indenter::Indent(), toxic::Statistics::m_cpm_photons, toxic::Statistics::m_gpm_photons, toxic::Statistics::m_intersections_found, toxic::Statistics::m_primary_final_gathering_rays, toxic::Statistics::m_primary_rays, toxic::Statistics::m_secondary_final_gathering_rays, toxic::Statistics::m_secondary_rays, toxic::Statistics::m_shadow_rays, toxic::Statistics::m_tested_intersections, toxic::Statistics::m_total_pixels, toxic::Percentage(), and toxic::Ratio().

Referenced by main().


Generated on Tue May 11 01:31:53 2004 for toxic by doxygen 1.3.6