![]() |
KurusView
1.0
|
MHexahedron object - inherits from MCell. More...
#include <MHexahedron.h>
Public Member Functions | |
MHexahedron (const std::vector< std::shared_ptr< MVector >> &vertices, const std::shared_ptr< MMaterial > &material, long int id) | |
MHexahedron constructor. More... | |
MHexahedron ()=delete | |
deleted default constructor. See MCell default ctor for reference. | |
~MHexahedron ()=default | |
default destructor - wraps MCell destructor (decrements Instance Count) | |
![]() | |
double | getVolume () const |
get MCellVolume (accessor) More... | |
double | getWeight () const |
get MCellWeight (accessor) More... | |
double | getID () const |
get MCellID (accessor) More... | |
std::vector< std::string > | getType () const |
get MCellType (accessor) More... | |
std::shared_ptr< MVector > | getCentreOfGrav () const |
get MCellCOG (accessor) More... | |
std::shared_ptr< MMaterial > | getMaterial () const |
get MCellMaterial (accessor) More... | |
std::vector< std::shared_ptr< MVector > > | getVertices () const |
get MCellVertices (accessor) More... | |
const std::vector< unsigned int > & | getVertexIndices () |
getVertexIndices (accessor) More... | |
void | setMaterial (std::shared_ptr< MMaterial > material) |
set MCellMaterial accesor More... | |
void | setVertices (std::vector< std::shared_ptr< MVector >> vertices) |
set MCellMaterial accesor More... | |
Additional Inherited Members | |
![]() | |
static double | getCount () |
get MCellInstanceCount (accessor) More... | |
![]() | |
enum | MCellType_TypeDef { NONE, TETRAHEDRON, HEXAHEDRON, PYRAMID } |
![]() | |
MCell (std::vector< std::shared_ptr< MVector >> vertices, std::shared_ptr< MMaterial > material, long int id) | |
MCell constructor. More... | |
MCell ()=delete | |
default constructor - deleted More... | |
~MCell () | |
destructor - decrements InstanceCount | |
![]() | |
double | MCellVolume {} |
MCellVolume - stores the volume of the cell, can not be set by accessors. More... | |
double | MCellWeight {} |
MCellWeight - stores the weight of the cell, can not be set by accessors. | |
const long int | MCellID |
MCellDensity - stores the density of the cell, , can not be set by accessors. | |
std::vector< std::shared_ptr< MVector > > | MCellVertices |
holds a vector of MVectors defining the vertex of the cell More... | |
std::vector< unsigned int > | vertexIDs |
holds a list of all the vertices IDs, populated on construction More... | |
std::shared_ptr< MMaterial > | MCellMaterial |
holds a the material of the cell | |
std::shared_ptr< MVector > | MCellCOG |
holds the Centre Of Gravity of the cell as a shared pointer MVector More... | |
MCellType_TypeDef | MCellType |
MCellType - holds the type of the current cell. | |
MHexahedron object - inherits from MCell.
MHexahedron::MHexahedron | ( | const std::vector< std::shared_ptr< MVector >> & | vertices, |
const std::shared_ptr< MMaterial > & | material, | ||
long int | id | ||
) |
MHexahedron constructor.
vertices | - the vertex defining the cell |
material | - material of the cell |
id | - unique cell identifier |