rcrt::Object Class Reference

#include <Object.h>

Inheritance diagram for rcrt::Object:

Inheritance graph
[legend]
Collaboration diagram for rcrt::Object:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 Object (std::string n, Material *mat=0)
virtual ~Object ()
virtual const
std::string & 
getName () const
MaterialgetMaterial ()
void setMaterial (Material *m)

Protected Attributes

std::string name
Materialmaterial


Detailed Description

An abstract base class for objects with materials.

Definition at line 16 of file Object.h.


Constructor & Destructor Documentation

rcrt::Object::Object ( std::string  n,
Material mat = 0 
)

Definition at line 9 of file Object.cpp.

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

Definition at line 13 of file Object.cpp.


Member Function Documentation

const string & rcrt::Object::getName (  )  const [virtual]

Definition at line 17 of file Object.cpp.

References name.

Material * rcrt::Object::getMaterial (  ) 

Definition at line 22 of file Object.cpp.

References material.

Referenced by rcrt::SimpleTracer::directLight(), rcrt::PhotonTracer::directLight(), rcrt::Primitive::getMaterial(), rcrt::SimpleTracer::trace(), rcrt::RayCaster::trace(), and rcrt::PhotonTracer::trace().

void rcrt::Object::setMaterial ( Material m  ) 

Definition at line 27 of file Object.cpp.

References material.

Referenced by testDispl1().


Member Data Documentation

std::string rcrt::Object::name [protected]

Definition at line 19 of file Object.h.

Referenced by getName(), and rcrt::AffineObject::setPrimitives().

Material* rcrt::Object::material [protected]

Definition at line 20 of file Object.h.

Referenced by getMaterial(), and setMaterial().


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