cpe Namespace Reference

Namespace for CPE classes. More...

Classes

class  exception_cpe
 General exception class. More...
class  camera
 Storage of a camera and screen parameters. More...
struct  light
 Container of a light. More...
struct  material
 material associated to a given object (color+shading data) More...
class  scene3d
 Container of object3d+material and light to define a 3D scene. More...
class  exception_scene3d
 Special exception class for v3. More...
struct  shading
 Container for shading parameters (ambiant,diffuse,specular) More...
class  v3
 Vectors/Points 3D. More...
class  exception_v3
 Special exception class for v3. More...
struct  vertex
 Container for a vertex (position+normal+color) More...
class  vertex_shader
 Helper class that compute the color of a vertex given a normal, shading and light parameters. More...
class  color
 Container class for (r,g,b) color. Each component is an integer (in [0,255]) More...
class  exception_color
 Exception class for color. More...
class  image
 Container for picture data. Data are stored as unsigned char [0,255]. More...
class  exception_image
 Special exception class for image. More...
class  image_io
 Helper class for I/O. More...
class  p2d
 Container for 2D integer positions (pixel position) More...
class  exception_p2d
 Exception class for p2d. More...
class  object3d
 Generic container of a shape with intersect method. More...
class  plane
 Object3d of type (infinite) Plane (position+normal). Analytically compute intersection with a ray. More...
class  sphere
 Object3d of type Sphere (center+radius). Analytically compute intersection with a ray. More...
struct  intersection_data
 container for intersection data (position, normal, and relative position with respect to the ray) More...
struct  intersection_object
 container class to store intersection + associated material of the current object More...
class  ray
 Straight ray (initial position + direction) used for ray-tracing algorithm. More...
class  ray_tracer
 Helper class for running ray-tracing algorithm. More...
struct  render_parameters

Functions

v3 operator+ (const v3 &p1, const v3 &p2)
v3 operator+ (const double &s, const v3 &p)
v3 operator+ (const v3 &p, const double &s)
v3 operator- (const v3 &p1, const v3 &p2)
v3 operator- (const double &s, const v3 &p)
v3 operator- (const v3 &p, const double &s)
v3 operator* (const double &s, const v3 &p)
v3 operator* (const v3 &p, const double &s)
v3 operator/ (const v3 &p, const double &s)
std::ostream & operator<< (std::ostream &stream, const v3 &p)
std::ostream & operator<< (std::ostream &stream, const color &c)
color operator+ (const color &c0, const color &c1)
color operator* (const double &alpha, const color &c)
color operator* (const color &c, const double &alpha)
std::ostream & operator<< (std::ostream &stream, const p2d &u)
p2d operator+ (const p2d &u1, const p2d &u2)
p2d operator- (const p2d &u1, const p2d &u2)

Detailed Description

Namespace for CPE classes.


Function Documentation

color cpe::operator* ( const double &  alpha,
const color &  c 
)
color cpe::operator* ( const color &  c,
const double &  alpha 
)
v3 cpe::operator* ( const double &  s,
const v3 &  p 
)

References cpe::v3::x(), cpe::v3::y(), and cpe::v3::z().

+ Here is the call graph for this function:

v3 cpe::operator* ( const v3 &  p,
const double &  s 
)
p2d cpe::operator+ ( const p2d &  u1,
const p2d &  u2 
)

References cpe::p2d::x(), and cpe::p2d::y().

+ Here is the call graph for this function:

v3 cpe::operator+ ( const v3 &  p1,
const v3 &  p2 
)

References cpe::v3::x(), cpe::v3::y(), and cpe::v3::z().

+ Here is the call graph for this function:

v3 cpe::operator+ ( const double &  s,
const v3 &  p 
)

References cpe::v3::x(), cpe::v3::y(), and cpe::v3::z().

+ Here is the call graph for this function:

color cpe::operator+ ( const color &  c0,
const color &  c1 
)
v3 cpe::operator+ ( const v3 &  p,
const double &  s 
)
p2d cpe::operator- ( const p2d &  u1,
const p2d &  u2 
)

References cpe::p2d::x(), and cpe::p2d::y().

+ Here is the call graph for this function:

v3 cpe::operator- ( const v3 &  p1,
const v3 &  p2 
)

References cpe::v3::x(), cpe::v3::y(), and cpe::v3::z().

+ Here is the call graph for this function:

v3 cpe::operator- ( const double &  s,
const v3 &  p 
)

References cpe::v3::x(), cpe::v3::y(), and cpe::v3::z().

+ Here is the call graph for this function:

v3 cpe::operator- ( const v3 &  p,
const double &  s 
)

References cpe::v3::x(), cpe::v3::y(), and cpe::v3::z().

+ Here is the call graph for this function:

v3 cpe::operator/ ( const v3 &  p,
const double &  s 
)

References cpe::v3::x(), cpe::v3::y(), and cpe::v3::z().

+ Here is the call graph for this function:

std::ostream& cpe::operator<< ( std::ostream &  stream,
const p2d &  u 
)

References cpe::p2d::x(), and cpe::p2d::y().

+ Here is the call graph for this function:

std::ostream& cpe::operator<< ( std::ostream &  stream,
const color &  c 
)

References cpe::color::b(), cpe::color::g(), and cpe::color::r().

+ Here is the call graph for this function:

std::ostream& cpe::operator<< ( std::ostream &  stream,
const v3 &  p 
)

References cpe::v3::to_string().

+ Here is the call graph for this function: