|
ESyS-Particle
2.3.4
|
#include <GridIterator.h>

Public Member Functions | |
| GridIterator () | |
| GridIterator (int numPtsX, int numPtsY, int numPtsZ, double sphereRadius) | |
| GridIterator (const BoundingBox &particleBBox, double sphereRadius, bool hard_limit=false) | |
| ~GridIterator () | |
| const BoundingBox & | getBoundingBox () const |
| BoundingBox | getSphereBBox () const |
| bool | hasNext () const |
| bool | is2d () const |
| Vec3 | getPoint () const |
| void | increment () |
| Vec3 | next () |
Private Attributes | |
| double | m_sphereRadius |
| int | m_minI |
| int | m_minJ |
| int | m_minK |
| int | m_maxI |
| int | m_maxJ |
| int | m_maxK |
| int | m_i |
| int | m_j |
| index in x-direction More... | |
| int | m_k |
| index in y-direction More... | |
| BoundingBox | m_centrePtBBox |
| index in z-direction More... | |
Class for iterating over the centre-points of spheres arranged in a regular lattice within a specified bounding box.
|
inline |
|
inline |
References m_centrePtBBox, m_maxJ, and m_minJ.
|
inline |
setup GridIterator from bounding box and sphere radius
References esys::lsm::BoundingBox::getMaxPt(), esys::lsm::BoundingBox::getMinPt(), esys::lsm::BoundingBox::getSizes(), m_centrePtBBox, m_i, m_j, m_k, m_maxI, m_maxJ, m_maxK, m_minI, m_minJ, m_minK, Vec3::X(), Vec3::Y(), and Vec3::Z().

|
inline |
|
inline |
References m_centrePtBBox.
|
inline |
References esys::lsm::BoundingBox::getMinPt(), is2d(), m_centrePtBBox, m_i, m_j, m_k, m_sphereRadius, Vec3::X(), Vec3::Y(), and Vec3::Z().
Referenced by next().


|
inline |
References esys::lsm::BoundingBox::getMaxPt(), esys::lsm::BoundingBox::getMinPt(), is2d(), m_centrePtBBox, and m_sphereRadius.
Referenced by esys::lsm::GougeBlockPrms::cutFromCentre(), esys::lsm::GougeConfigPrms< TmplParticleGrainGen >::cutFromCentre(), esys::lsm::GougeBlockPrms::GougeBlockPrms(), and esys::lsm::GougeConfigPrms< TmplParticleGrainGen >::GougeConfigPrms().


|
inline |
Returns whether there are any points remaining in the iteration.
Referenced by esys::lsm::CubicBoxPacker< TmplParticleGenerator, TmplBoxPackerBase >::generateCubicPacking(), esys::lsm::GrainRandomBoxPacker< TmplParticleGrainGen, TmplGrainCollection, TmplRndBoxPackerWrap >::generateCubicPackingGrains(), esys::lsm::RandomSpherePacker< TmplParticleGenerator, TmplCubicBoxPackerWrap >::generateCubicPackingInSphere(), esys::lsm::BlockGenerator::generateSeedParticles(), and esys::lsm::SphereBlockGenerator::generateSeedParticles().

|
inline |
|
inline |
References m_maxJ, and m_minJ.
Referenced by getPoint(), and getSphereBBox().

|
inline |
Returns the next regular-grid-point in the iteration.
References getPoint(), and increment().
Referenced by esys::lsm::CubicBoxPacker< TmplParticleGenerator, TmplBoxPackerBase >::generateCubicPacking(), esys::lsm::GrainRandomBoxPacker< TmplParticleGrainGen, TmplGrainCollection, TmplRndBoxPackerWrap >::generateCubicPackingGrains(), esys::lsm::RandomSpherePacker< TmplParticleGenerator, TmplCubicBoxPackerWrap >::generateCubicPackingInSphere(), esys::lsm::BlockGenerator::generateSeedParticles(), and esys::lsm::SphereBlockGenerator::generateSeedParticles().


|
private |
index in z-direction
Referenced by getBoundingBox(), getPoint(), getSphereBBox(), and GridIterator().
|
private |
Referenced by getPoint(), GridIterator(), hasNext(), and increment().
|
private |
index in x-direction
Referenced by getPoint(), GridIterator(), and increment().
|
private |
index in y-direction
Referenced by getPoint(), GridIterator(), and increment().
|
private |
Referenced by GridIterator(), and hasNext().
|
private |
Referenced by GridIterator(), increment(), and is2d().
|
private |
Referenced by GridIterator(), and increment().
|
private |
Referenced by GridIterator().
|
private |
Referenced by GridIterator(), increment(), and is2d().
|
private |
Referenced by GridIterator(), and increment().
|
private |
Referenced by getPoint(), and getSphereBBox().