cpe Namespace Reference

Namespace for CPE classes. More...

Classes

class  algorithm
 Helper class to perform Bresenham and Scanline algorithm. More...
struct  pixel_interp
 Container for pixel absolute & relative position within a segment. More...
struct  scanline_data
 Container for scanline algorithm (triangle filling). 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  exception_cpe
 General exception class. 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_drawable
 Specialized class of image where user can draw lines, triangles, ... More...
class  image_drawable_zbuffer
 Extension class from image_drawable in adding Z-buffer. More...
class  mesh
 Container class for a generic mesh with normal, color, ... More...
class  exception_mesh
 Special exception class for image. More...
class  p2d
 Container for 2D integer positions (pixel position). More...
class  exception_p2d
 Exception class for p2d. More...
class  render_engine
 Helper class to render 3D models. More...
struct  triangle_shaded
 container for triangle with shading (normal+color) information More...
class  v3
 Vectors/Points 3D. More...
class  exception_v3
 Special exception class for v3. More...
class  v3_shaded
 Extension of v3 class to compute vertices with shading. More...
struct  shading_parameters
 Container for shading parameters (ambiant, diffuse, specular values ...). More...
struct  light_parameters
 Container for lighting parameters (light position, ...). More...

Functions

std::ostream & operator<< (std::ostream &stream, const color &c)
mesh operator+ (const v3 &x, const mesh &m)
mesh operator+ (const mesh &m, const v3 &x)
mesh operator- (const mesh &m, const v3 &x)
mesh operator* (const double &s, const mesh &m)
mesh operator* (const mesh &m, const double &s)
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)
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)

Detailed Description

Namespace for CPE classes.


Function Documentation

v3 cpe::operator* ( const v3 &  p,
const double &  s 
)
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:

mesh cpe::operator* ( const mesh &  m,
const double &  s 
)
mesh cpe::operator* ( const double &  s,
const mesh &  m 
)
v3 cpe::operator+ ( const v3 &  p,
const double &  s 
)
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 &  p1,
const v3 &  p2 
)

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

Here is the call graph for this function:

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:

mesh cpe::operator+ ( const mesh &  m,
const v3 &  x 
)
mesh cpe::operator+ ( const v3 &  x,
const mesh &  m 
)
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 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 &  p1,
const v3 &  p2 
)

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

Here is the call graph for this function:

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:

mesh cpe::operator- ( const mesh &  m,
const v3 &  x 
)
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 v3 &  p 
)

References cpe::v3::to_string().

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:

Generated on Mon Apr 18 20:43:33 2011 by  doxygen 1.6.3