#include <PKDNode.h>
Public Member Functions | |
PKDNode (std::list< PKDSplitPlane * > *splits, const float &maxRadius, const AABB &bbox) | |
~PKDNode () | |
bool | isLeaf () const |
void | getKNearest (std::vector< PKDSearchP > *result, const unsigned int &k, const Point3D &pos, const Vec3D &normal, const float &maxRadius, const float &flat) const |
Private Attributes | |
PKDNode * | children [2] |
Photon * | photon |
Axis | splitAxis |
Definition at line 30 of file PKDNode.h.
rcrt::PKDNode::PKDNode | ( | std::list< PKDSplitPlane * > * | splits, | |
const float & | maxRadius, | |||
const AABB & | bbox | |||
) |
Definition at line 7 of file PKDNode.cpp.
References rcrt::PKDSplitPlane::axis, children, rcrt::AABB::extend(), rcrt::AABB::getMaxP(), rcrt::AABB::getMinP(), rcrt::Photon::getPos(), rcrt::PKDSplitPlane::p, photon, and splitAxis.
rcrt::PKDNode::~PKDNode | ( | ) |
bool rcrt::PKDNode::isLeaf | ( | ) | const |
void rcrt::PKDNode::getKNearest | ( | std::vector< PKDSearchP > * | result, | |
const unsigned int & | k, | |||
const Point3D & | pos, | |||
const Vec3D & | normal, | |||
const float & | maxRadius, | |||
const float & | flat | |||
) | const |
Definition at line 136 of file PKDNode.cpp.
References children, getKNearest(), rcrt::Photon::getPos(), isLeaf(), photon, and splitAxis.
Referenced by getKNearest(), and rcrt::PhotonKDTree::getKNearest().
PKDNode* rcrt::PKDNode::children[2] [private] |
Definition at line 33 of file PKDNode.h.
Referenced by getKNearest(), isLeaf(), PKDNode(), and ~PKDNode().
Photon* rcrt::PKDNode::photon [private] |
Axis rcrt::PKDNode::splitAxis [private] |