GemaPCR
The GeMA PCR (Partition-Color-Renumber) Plugin
Loading...
Searching...
No Matches
GmpMortonNodeRenumbering< IntVector > Class Template Reference

Implements the renumbering agorithm based on the Morton space-filling curve, a.k.a Z-curve. See https://en.wikipedia.org/wiki/Z-order_curve. More...

#include <gmpMortonNodeRenumbering.h>

Inheritance diagram for GmpMortonNodeRenumbering< IntVector >:
Collaboration diagram for GmpMortonNodeRenumbering< IntVector >:

Public Member Functions

virtual bool checkOptions (const GmLogCategory &logger)
 Virtual method responsible for validating the parameters supplied on the class constructor. Can be used to parse the options. Should returns false and emit an error message in case of errors.
 
virtual void printParameters (const GmLogCategory &logger) const
 Virtual method responsible for printing the renumbering method description.
 
virtual bool renumber (GmValueAccessor *ac, IntVector &sortedToOriginal, const GmLogCategory &logger) const
 The node renumbering function. It gets as input parameter an accessor to the mesh coordinates. It should fill the sortedToOriginal vector with the reordering mapping. On input, the output vector is initially filled with the identity mapping (with size equal to ac->size()). The given logger can be used to log error messages if necessary.
 
 GmpNodeRenumberingMethod (const QVariantMap &options)
 
- Public Member Functions inherited from GmpNodeRenumberingMethod< IntVector >
 GmpNodeRenumberingMethod (const QVariantMap &options)
 

Additional Inherited Members

- Protected Attributes inherited from GmpNodeRenumberingMethod< IntVector >
const QVariantMap & _options
 The user provided options.
 

Detailed Description

template<class IntVector>
class GmpMortonNodeRenumbering< IntVector >

Implements the renumbering agorithm based on the Morton space-filling curve, a.k.a Z-curve. See https://en.wikipedia.org/wiki/Z-order_curve.

Member Function Documentation

◆ checkOptions()

template<class IntVector >
bool GmpMortonNodeRenumbering< IntVector >::checkOptions ( const GmLogCategory & logger)
virtual

Virtual method responsible for validating the parameters supplied on the class constructor. Can be used to parse the options. Should returns false and emit an error message in case of errors.

Implements GmpNodeRenumberingMethod< IntVector >.

◆ printParameters()

template<class IntVector >
void GmpMortonNodeRenumbering< IntVector >::printParameters ( const GmLogCategory & logger) const
virtual

Virtual method responsible for printing the renumbering method description.

Implements GmpNodeRenumberingMethod< IntVector >.

◆ renumber()

template<class IntVector >
bool GmpMortonNodeRenumbering< IntVector >::renumber ( GmValueAccessor * ac,
IntVector & sortedToOriginal,
const GmLogCategory & logger ) const
virtual

The node renumbering function. It gets as input parameter an accessor to the mesh coordinates. It should fill the sortedToOriginal vector with the reordering mapping. On input, the output vector is initially filled with the identity mapping (with size equal to ac->size()). The given logger can be used to log error messages if necessary.

Implements GmpNodeRenumberingMethod< IntVector >.


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