Definition at line 40 of file RectangularArray.H.
Public Member Functions | |
RectangularArray (const std::array< std::size_t, 2 > &gridDims, const std::array< double, 2 > &deltaGrid, const std::array< double, 3 > ¢er={0, 0, 0}) | |
const std::size_t & | getPattern (std::size_t x, std::size_t y) const |
void | setPattern (std::size_t x, std::size_t y, std::size_t patternKey) |
The shape at [x, y] will be translated by [(x - (getGridDims()[0] - 1) / 2) * getGridDistance()[0], (y - (getGridDims()[1]. More... | |
const std::array< std::size_t, 2 > & | getGridDims () const |
const std::array< double, 2 > & | getGridDistance () const |
void | setGridDistance (const std::array< double, 2 > &gridDistance) |
std::size_t | getNumPatternShapes () const |
const ShapeBase * | getPatternShape (std::size_t idx) const |
void | setPatternShape (std::size_t idx, const std::shared_ptr< ShapeBase > &shape) |
template<typename Shape > | |
void | insertPatternShape (std::size_t idx, Shape &&shape) |
template<typename Shape , typename... Args> | |
void | makePatternShape (std::size_t idx, Args &&...args) |
void | fillPattern (std::size_t idx) |
const std::array< double, 3 > & | getCenter () const |
void | setCenter (const std::array< double, 3 > ¢er) |
Static Public Member Functions | |
static std::array< double, 3 > | getRotatedPoint (const std::array< double, 3 > ¢er, const std::array< double, 2 > &rotation) |
Protected Member Functions | |
NEM::GEO::GeoManager | createGeo () const override |
Construct a NEM::GEO::GeoManager . More... | |
std::size_t | getPatternSize () const |
const std::size_t & | getPattern (std::size_t idx) const |
void | setPattern (std::size_t idx, std::size_t patternKey) |
template<typename Modifier > | |
NEM::GEO::GeoManager | createGeoImpl (Modifier &&modifier) const |
Static Protected Member Functions | |
static NEM::GEO::GeoManager | basicTransformation (const gp_Trsf &transformation, NEM::GEO::GeoManager &&geoMetadata) |
static void | mergeGeo (NEM::GEO::GeoManager &keepGeo, NEM::GEO::GeoManager &&removeGeo) |
Merge two 2d NEM::GEO::GeoManager objects by cutting shapes in removeGeo from shapes in keepGeo and sewing the resulting faces. More... | |
Private Attributes | |
std::array< std::size_t, 2 > | dims_ |
std::array< double, 2 > | delta_ |
Inherits NEM::NUCMESH::ShapesArray.
NEM::NUCMESH::RectangularArray::RectangularArray | ( | const std::array< std::size_t, 2 > & | gridDims, |
const std::array< double, 2 > & | deltaGrid, | ||
const std::array< double, 3 > & | center = {0, 0, 0} |
||
) |
Definition at line 37 of file RectangularArray.C.
|
staticprotectedinherited |
Definition at line 81 of file ShapesArray.C.
References NEM::GEO::GeoManager::buildCompound(), NEM::GEO::GeoManager::insert(), and NEM::DRV::JSON::shapeType.
Referenced by NEM::NUCMESH::HexagonalArray::createGeo(), createGeo(), and NEM::NUCMESH::PolarArray::createGeo().
|
overrideprotectedvirtual |
NEM::GEO::GeoManager
object representing the shape described by this object Implements NEM::NUCMESH::ShapeBase.
Definition at line 54 of file RectangularArray.C.
References NEM::NUCMESH::ShapesArray::basicTransformation(), NEM::NUCMESH::ShapesArray::createGeoImpl(), delta_, dims_, and NEM::NUCMESH::ShapeBase::getCenter().
|
inlineprotectedinherited |
Definition at line 87 of file ShapesArray.H.
References NEM::NUCMESH::ShapeBase::mergeGeo().
Referenced by NEM::NUCMESH::HexagonalArray::createGeo(), createGeo(), and NEM::NUCMESH::PolarArray::createGeo().
|
inherited |
Definition at line 65 of file ShapesArray.C.
References NEM::NUCMESH::ShapesArray::pattern_.
|
inherited |
Definition at line 50 of file ShapeBase.C.
References NEM::NUCMESH::ShapeBase::center_.
Referenced by NEM::NUCMESH::HexagonalArray::createGeo(), createGeo(), NEM::NUCMESH::CirclesAndPolys::createGeo(), NEM::NUCMESH::PolarArray::createGeo(), and NEM::NUCMESH::Circles::createGeo().
|
inline |
Definition at line 54 of file RectangularArray.H.
Referenced by NEM::DRV::JSON::modify_helper().
|
inline |
Definition at line 55 of file RectangularArray.H.
|
inherited |
Definition at line 45 of file ShapesArray.C.
References NEM::NUCMESH::ShapesArray::patternShapes_.
Referenced by NEM::DRV::JSON::modify_helper().
const std::size_t & NEM::NUCMESH::RectangularArray::getPattern | ( | std::size_t | x, |
std::size_t | y | ||
) | const |
Definition at line 44 of file RectangularArray.C.
References dims_, and NEM::NUCMESH::ShapesArray::getPattern().
|
protectedinherited |
Definition at line 73 of file ShapesArray.C.
References NEM::NUCMESH::ShapesArray::pattern_.
Referenced by getPattern(), and NEM::NUCMESH::HexagonalArray::getPatternCoordCenter().
|
inherited |
Definition at line 49 of file ShapesArray.C.
References NEM::NUCMESH::ShapesArray::patternShapes_.
|
protectedinherited |
Definition at line 71 of file ShapesArray.C.
References NEM::NUCMESH::ShapesArray::pattern_.
|
staticinherited |
center | Center of circle |
rotation | {Radius, angle in degrees} |
center
and normal [0, 0, 1], radius rotation
[0] and angle (in degrees) rotation
[1] Definition at line 58 of file ShapeBase.C.
Referenced by NEM::NUCMESH::PolarArray::createGeo(), and NEM::DRV::JSON::modify_helper().
|
inlineinherited |
Definition at line 62 of file ShapesArray.H.
|
inlineinherited |
Definition at line 69 of file ShapesArray.H.
|
staticprotectedinherited |
[in,out] | keepGeo | Merge geometry from removeGeo into this object |
[in] | removeGeo | Move geometry and data from this object into keepGeo |
Definition at line 66 of file ShapeBase.C.
References NEM::GEO::GeoManager::buildCompound(), NEM::GEO::GeoManager::deleteShapes(), NEM::GEO::GeoManager::getDim(), NEM::GEO::GeoManager::insert(), NEM::GEO::GeoManager::modify(), NEM::GEO::GeoManager::setDim(), and NEM::DRV::JSON::shapeType.
Referenced by NEM::NUCMESH::ShapesArray::createGeoImpl(), and NEM::SRV::NucMeshSrv::FillOutputPortInformation().
|
inherited |
Definition at line 52 of file ShapeBase.C.
References NEM::NUCMESH::ShapeBase::center_.
Referenced by NEM::DRV::JSON::modify_helper().
|
inline |
Definition at line 56 of file RectangularArray.H.
Referenced by NEM::DRV::JSON::modify_helper().
void NEM::NUCMESH::RectangularArray::setPattern | ( | std::size_t | x, |
std::size_t | y, | ||
std::size_t | patternKey | ||
) |
Definition at line 49 of file RectangularArray.C.
References dims_, and NEM::NUCMESH::ShapesArray::setPattern().
Referenced by NEM::DRV::JSON::modify_helper().
|
protectedinherited |
Definition at line 77 of file ShapesArray.C.
References NEM::NUCMESH::ShapesArray::pattern_.
Referenced by NEM::DRV::JSON::modify_helper(), setPattern(), and NEM::NUCMESH::HexagonalArray::setPatternCoordCenter().
|
inherited |
Definition at line 57 of file ShapesArray.C.
References NEM::NUCMESH::ShapesArray::patternShapes_.
Referenced by NEM::DRV::JSON::modify_helper().
|
private |
Definition at line 65 of file RectangularArray.H.
Referenced by createGeo().
|
private |
Definition at line 64 of file RectangularArray.H.
Referenced by createGeo(), getPattern(), and setPattern().