rcrt::PKDNode Class Reference

#include <PKDNode.h>

Collaboration diagram for rcrt::PKDNode:

Collaboration graph
[legend]

List of all members.

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

PKDNodechildren [2]
Photonphoton
Axis splitAxis


Detailed Description

Definition at line 30 of file PKDNode.h.


Constructor & Destructor Documentation

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 (  ) 

Definition at line 125 of file PKDNode.cpp.

References children.


Member Function Documentation

bool rcrt::PKDNode::isLeaf (  )  const

Definition at line 131 of file PKDNode.cpp.

References children.

Referenced by getKNearest().

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().


Member Data Documentation

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]

Definition at line 34 of file PKDNode.h.

Referenced by getKNearest(), and PKDNode().

Axis rcrt::PKDNode::splitAxis [private]

Definition at line 35 of file PKDNode.h.

Referenced by getKNearest(), and PKDNode().


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