Blue Brain BioExplorer
core::PointOctreeNode Class Reference

The PointOctreeNode class implement a spherical node of the Octree acceleration structure used by the Fields renderer. More...

#include <PointOctreeNode.h>

Public Member Functions

 PointOctreeNode (const Vector3f &center, const double size)
 Construct a new Octree Node object. More...
 
void addValue (const double value)
 Add a value to the node. More...
 
void setChild (PointOctreeNode *child)
 Add a Child to the node. More...
 
const std::vector< PointOctreeNode * > & getChildren () const
 Get the node children. More...
 
const Vector3fgetCenter () const
 Get the center of the node. More...
 
double getValue () const
 Get the value of the node. More...
 

Detailed Description

The PointOctreeNode class implement a spherical node of the Octree acceleration structure used by the Fields renderer.

Definition at line 35 of file PointOctreeNode.h.

Constructor & Destructor Documentation

◆ PointOctreeNode()

core::PointOctreeNode::PointOctreeNode ( const Vector3f center,
const double  size 
)

Construct a new Octree Node object.

Parameters
Thecenter of the node
Thenode size

Definition at line 28 of file PointOctreeNode.cpp.

Member Function Documentation

◆ addValue()

void core::PointOctreeNode::addValue ( const double  value)

Add a value to the node.

Parameters
Thevalue of the node

Definition at line 39 of file PointOctreeNode.cpp.

◆ getCenter()

const Vector3f & core::PointOctreeNode::getCenter ( ) const

Get the center of the node.

Returns
The center of the node

Definition at line 45 of file PointOctreeNode.cpp.

◆ getChildren()

const std::vector< PointOctreeNode * > & core::PointOctreeNode::getChildren ( ) const

Get the node children.

Returns
A vector of nodes

Definition at line 55 of file PointOctreeNode.cpp.

◆ getValue()

double core::PointOctreeNode::getValue ( ) const

Get the value of the node.

Returns
The value of the node

Definition at line 50 of file PointOctreeNode.cpp.

◆ setChild()

void core::PointOctreeNode::setChild ( PointOctreeNode child)

Add a Child to the node.

Parameters
Thenode child

Definition at line 34 of file PointOctreeNode.cpp.


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