#include <Object.h>
Public Member Functions | |
Object (std::string n, Material *mat=0) | |
virtual | ~Object () |
virtual const std::string & | getName () const |
Material * | getMaterial () |
void | setMaterial (Material *m) |
Protected Attributes | |
std::string | name |
Material * | material |
Definition at line 16 of file Object.h.
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.
const string & rcrt::Object::getName | ( | ) | const [virtual] |
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 | ) |
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] |