OGS
|
Class for calculating the index to given 3d position within the structured grid.
Definition at line 29 of file IndexCalculator.h.
#include <IndexCalculator.h>
Public Member Functions | |
IndexCalculator (std::size_t x_dim, std::size_t y_dim, std::size_t z_dim) | |
IndexCalculator ()=default | |
std::size_t | operator() (std::array< std::size_t, 3 > const &c) const |
std::size_t | getCellIdx (std::size_t u, std::size_t v, std::size_t w) const |
std::array< std::size_t, 3 > | getCoordsForID (std::size_t id) const |
Public Attributes | |
std::size_t | _x_dim {0} |
std::size_t | _y_dim {0} |
std::size_t | _z_dim {0} |
std::size_t | _n_nodes {0} |
std::size_t | _n_cells {0} |
|
inline |
|
default |
|
inline |
Definition at line 59 of file IndexCalculator.h.
References _x_dim, _y_dim, _z_dim, and ERR().
Referenced by FileIO::Gocad::GocadSGridReader::applySplitInformation(), FileIO::Gocad::GocadSGridReader::createElements(), FileIO::Gocad::GocadSGridReader::mapRegionFlagsToCellProperties(), and FileIO::Gocad::GocadSGridReader::parseFaceSet().
|
inline |
Definition at line 75 of file IndexCalculator.h.
References _x_dim, and _y_dim.
Referenced by FileIO::Gocad::GocadSGridReader::addFaceSetQuad(), FileIO::Gocad::GocadSGridReader::parseFaceSet(), and FileIO::Gocad::GocadSGridReader::readNodesBinary().
|
inline |
std::size_t FileIO::Gocad::IndexCalculator::_n_cells {0} |
Definition at line 87 of file IndexCalculator.h.
Referenced by FileIO::Gocad::GocadSGridReader::createElements(), FileIO::Gocad::GocadSGridReader::mapRegionFlagsToCellProperties(), FileIO::Gocad::GocadSGridReader::parseDims(), FileIO::Gocad::GocadSGridReader::parseFaceSet(), and FileIO::Gocad::GocadSGridReader::readElementPropertiesBinary().
std::size_t FileIO::Gocad::IndexCalculator::_n_nodes {0} |
Definition at line 86 of file IndexCalculator.h.
Referenced by operator()(), FileIO::Gocad::GocadSGridReader::parseDims(), FileIO::Gocad::GocadSGridReader::parseFaceSet(), FileIO::Gocad::GocadSGridReader::readNodesBinary(), and FileIO::Gocad::GocadSGridReader::readRegionFlagsBinary().
std::size_t FileIO::Gocad::IndexCalculator::_x_dim {0} |
Definition at line 83 of file IndexCalculator.h.
Referenced by FileIO::Gocad::GocadSGridReader::applySplitInformation(), FileIO::Gocad::GocadSGridReader::createElements(), getCellIdx(), getCoordsForID(), FileIO::Gocad::GocadSGridReader::mapRegionFlagsToCellProperties(), operator()(), and FileIO::Gocad::GocadSGridReader::parseFaceSet().
std::size_t FileIO::Gocad::IndexCalculator::_y_dim {0} |
Definition at line 84 of file IndexCalculator.h.
Referenced by FileIO::Gocad::GocadSGridReader::applySplitInformation(), FileIO::Gocad::GocadSGridReader::createElements(), getCellIdx(), getCoordsForID(), FileIO::Gocad::GocadSGridReader::mapRegionFlagsToCellProperties(), operator()(), and FileIO::Gocad::GocadSGridReader::parseFaceSet().
std::size_t FileIO::Gocad::IndexCalculator::_z_dim {0} |
Definition at line 85 of file IndexCalculator.h.
Referenced by FileIO::Gocad::GocadSGridReader::applySplitInformation(), FileIO::Gocad::GocadSGridReader::createElements(), getCellIdx(), FileIO::Gocad::GocadSGridReader::mapRegionFlagsToCellProperties(), and FileIO::Gocad::GocadSGridReader::parseFaceSet().