TriangleExt Struct Reference

Extension to Triangle to carry per-vertex colors. More...

#include <TriangleSetExt.h>

Inheritance diagram for TriangleExt:

Inheritance graph
[legend]
Collaboration diagram for TriangleExt:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 TriangleExt (const Triangle &t)
 backward compatibility with Triangle structure.

Static Public Member Functions

static Vertex centerOf (const Triangle &t)
 Compute center of triangle.

Public Attributes

Color vertexColor [3]
 per-vertex colors
Color vertexColorRaw [3]
 per-vertex colors after
Vertex vertex [3]
 Array of vertexes.
Color emission
 Triangle's own emission (for light sources).
Color reflectivity
 Triangle's reflectivity (material property).
Color radiosity
 Triangle's computed radiosity.
Color radiosityLast
 Working variable of RadiosityRenderer.

Detailed Description

Extension to Triangle to carry per-vertex colors.

Definition at line 18 of file TriangleSetExt.h.


Constructor & Destructor Documentation

TriangleExt::TriangleExt ( const Triangle t  )  [inline]

backward compatibility with Triangle structure.

Parameters:
t Reference to Triangle object to construct from.

Definition at line 26 of file TriangleSetExt.h.

References Triangle::radiosity, vertexColor, and vertexColorRaw.


Member Function Documentation

static Vertex Triangle::centerOf ( const Triangle t  )  [inline, static, inherited]

Compute center of triangle.

Returns:
Return triangle's center as Vertex object

Definition at line 208 of file Triangle.h.

References Triangle::vertex, Vertex::x, Vertex::y, and Vertex::z.


Member Data Documentation

Color TriangleExt::vertexColor[3]

per-vertex colors

Definition at line 19 of file TriangleSetExt.h.

Referenced by TriangleExt().

Color TriangleExt::vertexColorRaw[3]

per-vertex colors after

Definition at line 20 of file TriangleSetExt.h.

Referenced by TriangleExt().

Vertex Triangle::vertex[3] [inherited]

Array of vertexes.

Definition at line 198 of file Triangle.h.

Referenced by Triangle::centerOf(), and operator<<().

Color Triangle::emission [inherited]

Triangle's own emission (for light sources).

Definition at line 199 of file Triangle.h.

Referenced by operator<<().

Color Triangle::reflectivity [inherited]

Triangle's reflectivity (material property).

Definition at line 200 of file Triangle.h.

Referenced by operator<<().

Color Triangle::radiosity [inherited]

Triangle's computed radiosity.

Definition at line 201 of file Triangle.h.

Referenced by operator<<(), and TriangleExt().

Color Triangle::radiosityLast [inherited]

Working variable of RadiosityRenderer.

Definition at line 202 of file Triangle.h.


The documentation for this struct was generated from the following file:
Generated on Thu Dec 6 19:33:12 2007 for Radiosity Renderer and Visualizer by  doxygen 1.5.2