|
| Photon () |
| Dummy constructor. More...
|
|
| Photon (const Point &pos, const Normal &normal, const Vector &dir, const Spectrum &power, uint16_t depth) |
| Construct from a photon interaction. More...
|
|
| Photon (Stream *stream) |
| Unserialize from a binary data stream. More...
|
|
int | getDepth () const |
| Return the depth (in # of interactions) More...
|
|
Vector | getDirection () const |
|
Normal | getNormal () const |
|
Spectrum | getPower () const |
| Convert the photon power from RGBE to floating point. More...
|
|
void | serialize (Stream *stream) const |
| Serialize to a binary data stream. More...
|
|
std::string | toString () const |
| Return a string representation (for debugging) More...
|
|
| SimpleKDNode () |
| Initialize a KD-tree node. More...
|
|
| SimpleKDNode (const DataRecord &data) |
| Initialize a KD-tree node with the given data record. More...
|
|
IndexType | getRightIndex (IndexType self) const |
| Given the current node's index, return the index of the right child. More...
|
|
void | setRightIndex (IndexType self, IndexType value) |
| Given the current node's index, set the right child index. More...
|
|
IndexType | getLeftIndex (IndexType self) const |
| Given the current node's index, return the index of the left child. More...
|
|
void | setLeftIndex (IndexType self, IndexType value) |
| Given the current node's index, set the left child index. More...
|
|
bool | isLeaf () const |
| Check whether this is a leaf node. More...
|
|
void | setLeaf (bool value) |
| Specify whether this is a leaf node. More...
|
|
uint16_t | getAxis () const |
| Return the split axis associated with this node. More...
|
|
void | setAxis (uint8_t axis) |
| Set the split flags associated with this node. More...
|
|
const PointType & | getPosition () const |
| Return the position associated with this node. More...
|
|
void | setPosition (const PointType &value) |
| Set the position associated with this node. More...
|
|
DataRecord & | getData () |
| Return the data record associated with this node. More...
|
|
const DataRecord & | getData () const |
| Return the data record associated with this node (const version) More...
|
|
void | setData (const DataRecord &val) |
| Set the data record associated with this node. More...
|
|
Memory-efficient photon representation for use with PointKDTree.
- See Also
- PhotonMap