Blue Brain BioExplorer
core::VectorOctreeNode Class Reference

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

#include <VectorOctreeNode.h>

Public Member Functions

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

Detailed Description

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

Definition at line 35 of file VectorOctreeNode.h.

Constructor & Destructor Documentation

◆ VectorOctreeNode()

core::VectorOctreeNode::VectorOctreeNode ( 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 VectorOctreeNode.cpp.

Member Function Documentation

◆ addValue()

void core::VectorOctreeNode::addValue ( const Vector3d vector)

Add a value to the node.

Parameters
Thevalue of the node

Definition at line 39 of file VectorOctreeNode.cpp.

◆ getCenter()

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

Get the center of the node.

Returns
The center of the node

Definition at line 44 of file VectorOctreeNode.cpp.

◆ getChildren()

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

Get the node children.

Returns
A vector of nodes

Definition at line 54 of file VectorOctreeNode.cpp.

◆ getValue()

const core::Vector3d & core::VectorOctreeNode::getValue ( ) const

Get the value of the node.

Returns
The value of the node

Definition at line 49 of file VectorOctreeNode.cpp.

◆ setChild()

void core::VectorOctreeNode::setChild ( VectorOctreeNode child)

Add a Child to the node.

Parameters
Thenode child

Definition at line 34 of file VectorOctreeNode.cpp.


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