rcrt::Vertex Class Reference

#include <Vertex.h>

Collaboration diagram for rcrt::Vertex:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 Vertex ()
 Vertex (const Point3D &pos)
 Vertex (const Point3D &pos, const Vec3D no)
 Vertex (const Point3D &pos, const Vec3D no, const Point2D te)
virtual ~Vertex ()
void setPos (const Point3D &pos)
void setNormal (const Vec3D no)
void setUV (const Point2D te)
const Point3Dpos ()
const Vec3Dnormal ()
const Point2Duv ()

Private Attributes

Point3D p
Vec3D n
Point2D tex


Detailed Description

A Vertex contains a point, a normal and optional UVs.

Definition at line 12 of file Vertex.h.


Constructor & Destructor Documentation

rcrt::Vertex::Vertex (  ) 

Definition at line 7 of file Vertex.cpp.

rcrt::Vertex::Vertex ( const Point3D pos  ) 

Definition at line 12 of file Vertex.cpp.

rcrt::Vertex::Vertex ( const Point3D pos,
const Vec3D  no 
)

Definition at line 17 of file Vertex.cpp.

rcrt::Vertex::Vertex ( const Point3D pos,
const Vec3D  no,
const Point2D  te 
)

Definition at line 22 of file Vertex.cpp.

rcrt::Vertex::~Vertex (  )  [virtual]

Definition at line 27 of file Vertex.cpp.


Member Function Documentation

void rcrt::Vertex::setPos ( const Point3D pos  ) 

Definition at line 32 of file Vertex.cpp.

References p.

void rcrt::Vertex::setNormal ( const Vec3D  no  ) 

Definition at line 38 of file Vertex.cpp.

References n.

void rcrt::Vertex::setUV ( const Point2D  te  ) 

Definition at line 44 of file Vertex.cpp.

References tex.

const Point3D & rcrt::Vertex::pos (  ) 

Definition at line 50 of file Vertex.cpp.

References p.

Referenced by rcrt::DisplacedTriangle::baseIntersect(), rcrt::Triangle::clipPlane(), rcrt::DisplacedTriangle::DisplacedTriangle(), rcrt::Triangle::getPoint(), rcrt::Triangle::intersect(), rcrt::DisplacedTriangle::intersect(), rcrt::Triangle::Triangle(), and rcrt::Triangle::updateBox().

const Vec3D & rcrt::Vertex::normal (  ) 

Definition at line 56 of file Vertex.cpp.

References n.

Referenced by rcrt::DisplacedTriangle::DisplacedTriangle(), and rcrt::Triangle::getSNormal().

const Point2D & rcrt::Vertex::uv (  ) 

Definition at line 62 of file Vertex.cpp.

References tex.

Referenced by rcrt::Triangle::getUV(), and rcrt::Triangle::Triangle().


Member Data Documentation

Point3D rcrt::Vertex::p [private]

Definition at line 15 of file Vertex.h.

Referenced by pos(), and setPos().

Vec3D rcrt::Vertex::n [private]

Definition at line 16 of file Vertex.h.

Referenced by normal(), and setNormal().

Point2D rcrt::Vertex::tex [private]

Definition at line 17 of file Vertex.h.

Referenced by setUV(), and uv().


The documentation for this class was generated from the following files:
Generated on Thu Jan 31 19:33:13 2008 for RenderingCompetitionRayTracer by  doxygen 1.5.3