CCCoreLib 31 May 2022
CloudCompare Core algorithms
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
CCCoreLib::DgmOctree::IndexAndCode Struct Reference

Association between an index and the code of an octree cell. More...

#include <DgmOctree.h>

Public Member Functions

 IndexAndCode ()
 Default constructor.
 
 IndexAndCode (unsigned index, CellCode code)
 Constructor from an index and a code.
 
 IndexAndCode (const IndexAndCode &ic)
 Copy constructor.
 
bool operator< (const IndexAndCode &iac) const
 Code-based 'less than' comparison operator.
 
bool operator> (const IndexAndCode &iac) const
 Code-based 'greater than' comparison operator.
 

Static Public Member Functions

static bool codeComp (const IndexAndCode &a, const IndexAndCode &b) throw ()
 Compares two IndexAndCode instances based on their code. More...
 
static bool indexComp (const IndexAndCode &a, const IndexAndCode &b) throw ()
 Compares two IndexAndCode instances based on their index. More...
 

Public Attributes

unsigned theIndex
 index
 
CellCode theCode
 cell code
 

Detailed Description

Association between an index and the code of an octree cell.

Index could be the index of a point, in which case the code would correspond to the octree cell where the point lies.

Member Function Documentation

◆ codeComp()

static bool CCCoreLib::DgmOctree::IndexAndCode::codeComp ( const IndexAndCode a,
const IndexAndCode b 
)
throw (
)
inlinestatic

Compares two IndexAndCode instances based on their code.

Parameters
afirst IndexAndCode structure
bsecond IndexAndCode structure
Returns
whether the code of 'a' is smaller than the code of 'b'

◆ indexComp()

static bool CCCoreLib::DgmOctree::IndexAndCode::indexComp ( const IndexAndCode a,
const IndexAndCode b 
)
throw (
)
inlinestatic

Compares two IndexAndCode instances based on their index.

Parameters
afirst IndexAndCode structure
bsecond IndexAndCode structure
Returns
whether the index of 'a' is smaller than the index of 'b'

The documentation for this struct was generated from the following file: