Workspace 6.21.5
Public Types | Public Member Functions | List of all members
LinearSpatialPartitioningTree::Cell Class Reference

Describes an octree cell's location and physical geometry.

#include <Rendering/SceneComponents/linearspatialpartitioningtree.h>

Public Types

enum  VisitAction { ContinueVisit , TerminateVisit }
 

Public Member Functions

 Cell (const LinearSpatialPartitioningTree::iterator &begin, const LinearSpatialPartitioningTree::iterator &end, const Mesh::Vector3d &min, const Mesh::Vector3d &max, quint32 depth)
 
void addPointsToMesh (Mesh::HierarchicalReferenceMeshModelInterface &mesh, quint8 maxDepthToProcess, bool forceAddAll=false) const
 
LinearSpatialPartitioningTree::iterator begin ()
 
LinearSpatialPartitioningTree::const_iterator begin () const
 
LinearSpatialPartitioningTree::iterator center ()
 
LinearSpatialPartitioningTree::const_iterator center () const
 
quint8 depth () const
 
LinearSpatialPartitioningTree::iterator end ()
 
LinearSpatialPartitioningTree::const_iterator end () const
 
bool isEmpty () const
 
bool isLeaf (quint8 maxAllowedDepth) const
 
LocationDescriptor locationDescriptor () const
 
QString locationDescriptorString () const
 
const Mesh::Vector3dmax () const
 
const Mesh::Vector3dmid () const
 
const Mesh::Vector3dmin () const
 
LinearSpatialPartitioningTree::difference_type numPoints () const
 
const LinearSpatialPartitioningTreetree () const
 

Member Enumeration Documentation

◆ VisitAction

Enumerator
ContinueVisit 
TerminateVisit 

Constructor & Destructor Documentation

◆ Cell()

Cell ( const LinearSpatialPartitioningTree::iterator &  begin,
const LinearSpatialPartitioningTree::iterator &  end,
const Mesh::Vector3d min,
const Mesh::Vector3d max,
quint32  depth 
)
Parameters
begin
end
min
max
depth

Member Function Documentation

◆ addPointsToMesh()

void addPointsToMesh ( Mesh::HierarchicalReferenceMeshModelInterface mesh,
quint8  maxDepthToProcess,
bool  forceAddAll = false 
) const
Parameters
meshThe patch mesh to add the points of this cell to
maxDepthToProcessThe maximum depth of processing.
forceAddAllForces all points in the cell to be added to the mesh, regardless of whether or not the cell is a leaf cell.

Adds the nodes associated with each point in the cell to the specified patch mesh. Note that a patch should contain all of the points in the entire subtree underneath it.

◆ begin() [1/2]

LinearSpatialPartitioningTree::iterator begin ( )
inline

◆ begin() [2/2]

LinearSpatialPartitioningTree::const_iterator begin ( ) const
inline

◆ center() [1/2]

LinearSpatialPartitioningTree::iterator center ( )
inline

◆ center() [2/2]

LinearSpatialPartitioningTree::const_iterator center ( ) const
inline

◆ depth()

quint8 depth ( ) const
inline

◆ end() [1/2]

LinearSpatialPartitioningTree::iterator end ( )
inline

◆ end() [2/2]

LinearSpatialPartitioningTree::const_iterator end ( ) const
inline

◆ isEmpty()

bool isEmpty ( ) const
inline

◆ isLeaf()

bool isLeaf ( quint8  maxAllowedDepth) const
Parameters
maxAllowedDepthThe depth to search to

◆ locationDescriptor()

LocationDescriptor locationDescriptor ( ) const
inline

◆ locationDescriptorString()

QString locationDescriptorString ( ) const
inline

◆ max()

const Mesh::Vector3d & max ( ) const
inline

◆ mid()

const Mesh::Vector3d & mid ( ) const
inline

◆ min()

const Mesh::Vector3d & min ( ) const
inline

◆ numPoints()

◆ tree()

const LinearSpatialPartitioningTree & tree ( ) const
inline