raytrace_defs.h File Reference

#include <Magick++.h>
#include <ncurses.h>
#include <time.h>
#include <syslog.h>
#include "point3d.h"
#include "scene.h"

Include dependency graph for raytrace_defs.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  raytrace_info
 This struct contains information about the rendering process. More...

Defines

#define log_alert(fmt,...)   syslog(LOG_ALERT, fmt,##__VA_ARGS__)
 Macro to log with the alert severity.
#define log_crit(fmt,...)   syslog(LOG_CRIT, fmt,##__VA_ARGS__)
 Macro to log with the crit severity.
#define log_debug(fmt,...)   syslog(LOG_DEBUG, fmt,##__VA_ARGS__)
 Macro to log with the debug severity.
#define log_emerg(fmt,...)   syslog(LOG_EMERG, fmt,##__VA_ARGS__)
 Macro to log with the emerg severity.
#define log_err(fmt,...)   syslog(LOG_ERR, fmt,##__VA_ARGS__)
 Macro to log with the err severity.
#define log_info(fmt,...)   syslog(LOG_INFO, fmt,##__VA_ARGS__)
 Macro to log with the info severity.
#define log_notice(fmt,...)   syslog(LOG_NOTICE, fmt,##__VA_ARGS__)
 Macro to log with the notice severity.
#define log_warn(fmt,...)   syslog(LOG_WARNING, fmt,##__VA_ARGS__)
 Macro to log with the warning severity.

Typedefs

typedef unsigned char uchar
 Typical uchar typedef.

Enumerations

enum  { RED = 0, GREEN, BLUE }
 The fields in this enum describe the sequence of color bytes in a color row. More...

Functions

void exit_mbrt (int code)
 Provide a way to cleanly shutdown ncurses and exit the application.
double jitter (double limit)
 Generate a jitter within the range [-limit, limit).

Variables

static const int HEIGHT = 512
 The default height in pixels for the image.
const double INF = 1000000000.0
 Inifinity for our purposes.
const double OPAQUE = 0.0
 Defines a completely opaque substance.
const int PPM_MAX_VAL = 255
 The max value for a color triplet in the ppm output file.
const int REPORT_FACTOR = 5000
 This determines how many iterations pass before reporting progress.
const int SUBPIXEL_SQRT = 2
 This is the square root for the the default number of subpixels.
const double TRANSPARENT = 1.0
 Defines a completely transparent substance.
static const int WIDTH = 512
 The default width in pixels for the image.


Define Documentation

#define log_alert ( fmt,
...   )     syslog(LOG_ALERT, fmt,##__VA_ARGS__)

Macro to log with the alert severity.

Definition at line 67 of file raytrace_defs.h.

#define log_crit ( fmt,
...   )     syslog(LOG_CRIT, fmt,##__VA_ARGS__)

Macro to log with the crit severity.

Definition at line 64 of file raytrace_defs.h.

Referenced by load_plugins(), and SceneParser::parse_materials().

#define log_debug ( fmt,
...   )     syslog(LOG_DEBUG, fmt,##__VA_ARGS__)

Macro to log with the debug severity.

Definition at line 52 of file raytrace_defs.h.

Referenced by PluginFactory< _ParentType, _SigType, _SlotType >::get_instance(), Renderable::initialize(), new_immagemap_material(), new_plane(), new_polygon(), new_solid_material(), new_sphere(), SceneParser::parse(), SceneParser::parse_bumpmaps(), SceneParser::parse_camera(), SceneParser::parse_light_sources(), SceneParser::parse_meta(), SceneParser::parse_objects(), parse_vertex(), PluginFactory< _ParentType, _SigType, _SlotType >::registerPlugin(), Sphere::Sphere(), Sphere::StaticInit::StaticInit(), and Plane::StaticInit::StaticInit().

#define log_emerg ( fmt,
...   )     syslog(LOG_EMERG, fmt,##__VA_ARGS__)

Macro to log with the emerg severity.

Definition at line 70 of file raytrace_defs.h.

#define log_err ( fmt,
...   )     syslog(LOG_ERR, fmt,##__VA_ARGS__)

Macro to log with the err severity.

Definition at line 61 of file raytrace_defs.h.

Referenced by Renderable::initialize(), new_plane(), new_polygon(), new_sphere(), and SceneParser::parse().

#define log_info ( fmt,
...   )     syslog(LOG_INFO, fmt,##__VA_ARGS__)

Macro to log with the info severity.

Definition at line 49 of file raytrace_defs.h.

Referenced by exit_mbrt(), load_plugins(), main(), SceneParser::parse(), NoiseMaterial::StaticInit::StaticInit(), MarbleMaterial::StaticInit::StaticInit(), and ImageMap::StaticInit::StaticInit().

#define log_notice ( fmt,
...   )     syslog(LOG_NOTICE, fmt,##__VA_ARGS__)

Macro to log with the notice severity.

Definition at line 55 of file raytrace_defs.h.

#define log_warn ( fmt,
...   )     syslog(LOG_WARNING, fmt,##__VA_ARGS__)

Macro to log with the warning severity.

Definition at line 58 of file raytrace_defs.h.

Referenced by Polygon::add_vertex(), PluginFactory< _ParentType, _SigType, _SlotType >::create(), Renderable::get_color_contribution(), SceneParser::parse(), SceneParser::parse_bumpmaps(), SceneParser::parse_light_sources(), SceneParser::parse_objects(), and PluginFactory< _ParentType, _SigType, _SlotType >::registerPlugin().


Typedef Documentation

typedef unsigned char uchar

Typical uchar typedef.

Definition at line 14 of file raytrace_defs.h.


Enumeration Type Documentation

anonymous enum

The fields in this enum describe the sequence of color bytes in a color row.

Enumerator:
RED 
GREEN 
BLUE 

Definition at line 42 of file raytrace_defs.h.


Function Documentation

void exit_mbrt ( int  code  )  [inline]

Provide a way to cleanly shutdown ncurses and exit the application.

Definition at line 114 of file raytrace_defs.h.

References log_info.

Referenced by load_plugins(), SceneParser::parse_materials(), and register_signal_handlers().

Here is the caller graph for this function:

double jitter ( double  limit  )  [inline]

Generate a jitter within the range [-limit, limit).

Definition at line 105 of file raytrace_defs.h.

Referenced by trace_rays().

Here is the caller graph for this function:


Variable Documentation

const int HEIGHT = 512 [static]

The default height in pixels for the image.

Definition at line 17 of file raytrace_defs.h.

const double INF = 1000000000.0

Inifinity for our purposes.

Definition at line 23 of file raytrace_defs.h.

Referenced by Renderable::is_in_shadow(), and trace_ray().

const double OPAQUE = 0.0

Defines a completely opaque substance.

Definition at line 36 of file raytrace_defs.h.

Referenced by new_immagemap_material(), new_solid_material(), ImageMap::normalize_opacity(), SolidMaterial::normalize_opacity(), and trace_ray().

const int PPM_MAX_VAL = 255

The max value for a color triplet in the ppm output file.

Definition at line 33 of file raytrace_defs.h.

const int REPORT_FACTOR = 5000

This determines how many iterations pass before reporting progress.

Definition at line 26 of file raytrace_defs.h.

Referenced by print_stats(), and trace_ray().

const int SUBPIXEL_SQRT = 2

This is the square root for the the default number of subpixels.

Definition at line 30 of file raytrace_defs.h.

const double TRANSPARENT = 1.0

Defines a completely transparent substance.

Definition at line 39 of file raytrace_defs.h.

Referenced by ImageMap::normalize_opacity(), and SolidMaterial::normalize_opacity().

const int WIDTH = 512 [static]

The default width in pixels for the image.

Definition at line 20 of file raytrace_defs.h.


Generated on Tue Oct 30 22:12:16 2007 for mbrt by  doxygen 1.5.2