CSGCell creates an internal representation of a Constructive Solid Geometry (CSG) cell, which represents a region of space filled by a material or void. More...
#include <CSGCell.h>
Public Member Functions | |
| CSGCell (const std::string &name, const CSGRegion ®ion) | |
| Constructor for void cell. More... | |
| CSGCell (const std::string &name, const std::string &mat_name, const CSGRegion ®ion) | |
| Constructor for Material Cell. More... | |
| CSGCell (const std::string &name, const CSGUniverse *univ, const CSGRegion ®ion) | |
| Constructor for Universe Cell. More... | |
| virtual | ~CSGCell ()=default |
| Destructor. More... | |
| const std::string | getFillType () const |
| Get the type of fill for the cell. More... | |
| const CSGUniverse & | getFillUniverse () const |
| Get the cell fill if fill type is UNIVERSE. More... | |
| const std::string & | getFillMaterial () const |
| Get the cell fill material name if fill fype is CSG_MATERIAL. More... | |
| const std::string & | getFillName () const |
| Get the name of the fill, regardless of its type. More... | |
| const std::string & | getName () const |
| Get the cell name. More... | |
| const CSGRegion & | getRegion () const |
| Get the cell region. More... | |
| const std::string & | getRegionAsString () const |
| Get the string representation of the cell region. More... | |
| bool | operator== (const CSGCell &other) const |
| Operator overload for checking if two CSGCell objects are equal. More... | |
| bool | operator!= (const CSGCell &other) const |
| Operator overload for checking if two CSGCell objects are not equal. More... | |
Protected Member Functions | |
| void | setName (const std::string &name) |
| void | updateRegion (const CSGRegion ®ion) |
| FRIEND_TEST (CSGCellTest, testSetName) | |
| Friends for unit testing. More... | |
| FRIEND_TEST (CSGCellTest, testUpdateRegion) | |
Protected Attributes | |
| std::string | _name |
| Name of surface. More... | |
| MooseEnum | _fill_type {"VOID CSG_MATERIAL UNIVERSE"} |
| An enum for type of fill for cell region. More... | |
| std::string | _fill_name |
| name of the fill object More... | |
| CSGRegion | _region |
| Cell region, represented as a CSGRegion object. More... | |
| const CSGUniverse * | _fill_universe |
| Fill object if fill is CSGUniverse. More... | |
Friends | |
| class | CSGCellList |
| class | CSGBase |
CSGCell creates an internal representation of a Constructive Solid Geometry (CSG) cell, which represents a region of space filled by a material or void.
| CSG::CSGCell::CSGCell | ( | const std::string & | name, |
| const CSGRegion & | region | ||
| ) |
Constructor for void cell.
| name | name of cell |
| region | cell region |
Definition at line 16 of file CSGCell.C.
| CSG::CSGCell::CSGCell | ( | const std::string & | name, |
| const std::string & | mat_name, | ||
| const CSGRegion & | region | ||
| ) |
Constructor for Material Cell.
| name | name of cell |
| mat_name | name of the CSG material (not a MOOSE material) to use as the cell fill |
| region | cell region |
Definition at line 21 of file CSGCell.C.
| CSG::CSGCell::CSGCell | ( | const std::string & | name, |
| const CSGUniverse * | univ, | ||
| const CSGRegion & | region | ||
| ) |
Constructor for Universe Cell.
| name | name of cell |
| univ | universe to be the fill |
| region | cell region |
Definition at line 27 of file CSGCell.C.
|
virtualdefault |
Destructor.
|
protected |
Friends for unit testing.
|
protected |
| const std::string & CSG::CSGCell::getFillMaterial | ( | ) | const |
Get the cell fill material name if fill fype is CSG_MATERIAL.
Definition at line 43 of file CSGCell.C.
Referenced by operator==().
|
inline |
Get the name of the fill, regardless of its type.
Definition at line 87 of file CSGCell.h.
Referenced by operator==().
|
inline |
Get the type of fill for the cell.
Definition at line 66 of file CSGCell.h.
Referenced by getFillMaterial(), getFillUniverse(), and operator==().
| const CSGUniverse & CSG::CSGCell::getFillUniverse | ( | ) | const |
Get the cell fill if fill type is UNIVERSE.
Definition at line 34 of file CSGCell.C.
Referenced by operator==().
|
inline |
Get the cell name.
Definition at line 94 of file CSGCell.h.
Referenced by CSG::CSGUniverse::addCell(), CSG::CSGBase::addCellToUniverse(), CSG::CSGBase::checkCellInBase(), getFillMaterial(), getFillUniverse(), operator==(), CSG::CSGBase::removeCellFromUniverse(), CSG::CSGCellList::renameCell(), and CSG::CSGBase::updateCellRegion().
|
inline |
Get the cell region.
Definition at line 101 of file CSGCell.h.
Referenced by operator==().
|
inline |
Get the string representation of the cell region.
Definition at line 108 of file CSGCell.h.
| bool CSG::CSGCell::operator!= | ( | const CSGCell & | other | ) | const |
| bool CSG::CSGCell::operator== | ( | const CSGCell & | other | ) | const |
Operator overload for checking if two CSGCell objects are equal.
Definition at line 52 of file CSGCell.C.
|
inlineprotected |
Definition at line 123 of file CSGCell.h.
Referenced by CSG::CSGBase::updateCellRegion().
|
friend |
|
protected |
name of the fill object
Definition at line 133 of file CSGCell.h.
Referenced by getFillMaterial(), and getFillName().
|
protected |
An enum for type of fill for cell region.
Definition at line 130 of file CSGCell.h.
Referenced by CSGCell(), and getFillType().
|
protected |
Fill object if fill is CSGUniverse.
Definition at line 139 of file CSGCell.h.
Referenced by getFillUniverse().
|
protected |
|
protected |
Cell region, represented as a CSGRegion object.
Definition at line 136 of file CSGCell.h.
Referenced by getRegion(), getRegionAsString(), and updateRegion().
1.8.14