Falcon
Public Member Functions | Static Public Member Functions | Friends | List of all members
Rendering::OctreeNode Class Reference

#include <Octree.h>

Public Member Functions

 OctreeNode (glm::vec3 nearTopLeft, glm::vec3 farBottomRight)
 
 ~OctreeNode ()
 

Static Public Member Functions

static unsigned int GetCount ()
 

Friends

class Octree
 
bool CheckEntityPosInNode (OctreeNode *node, Entity *entity)
 
bool CheckBounds (OctreeNode *node, glm::vec3 NTL, glm::vec3 FBR)
 

Detailed Description

Data structure to hold all data and implementations related to a single node inside our dynamic Octree

Constructor & Destructor Documentation

◆ OctreeNode()

Rendering::OctreeNode::OctreeNode ( glm::vec3  nearTopLeft,
glm::vec3  farBottomRight 
)

Octree Node Constructor function

Parameters
[in]thecorner point of one of the cuboidal space covered in the scene by the octreenode.
[in]thediagonally opposite corner of the octreenode.

◆ ~OctreeNode()

Rendering::OctreeNode::~OctreeNode ( )

Octree Node Destructor

Member Function Documentation

◆ GetCount()

static unsigned int Rendering::OctreeNode::GetCount ( )
inlinestatic

Friends And Related Function Documentation

◆ CheckBounds

bool CheckBounds ( OctreeNode node,
glm::vec3  NTL,
glm::vec3  FBR 
)
friend

Non-Member Function that checks if the diagonally opposite corners of a bounding box are within the bounds of the provided octreenode.

Parameters
[in]Pointerto the Octreenode used as reference.
[in]Thecorner point of the bounding box.
[in]Thediagonally opposite corner point of the bounding box.
[out]booleanvalue indicating if the test was positive or negative (false if outside, true if inside).

◆ CheckEntityPosInNode

bool CheckEntityPosInNode ( OctreeNode node,
Entity entity 
)
friend

Non-member Function that checks if the provided entity

Parameters
[in]Pointerto the OctreeNode.
[in]Pointerto the enitity.
[out]booleanvalue indicating if the test was positive or negative (false if outside, true if inside).

◆ Octree

friend class Octree
friend

The documentation for this class was generated from the following files: