This is an abstract class for all shapes supported by RocPack utility.
More...
This class contains abstract methods used for defining various shapes. All methods are defined in various shape classes under NEM::GEO namespace.
The shapes currently supported are,
> * HMX (Octogen crystal) > * PETN (Pentaerythritol tetranitrate crystal) > * ICOSIDODECAHEDRON
Definition at line 53 of file rocPackShape.H.
Inherited by NEM::GEO::hmxShape, NEM::GEO::icosidodecahedronShape, and NEM::GEO::petnShape.
◆ rocPackShape()
NEM::GEO::rocPackShape::rocPackShape |
( |
| ) |
|
|
inline |
◆ ~rocPackShape()
virtual NEM::GEO::rocPackShape::~rocPackShape |
( |
| ) |
|
|
inlinevirtual |
Definition at line 62 of file rocPackShape.H.
63 std::cout <<
"rocPackShape class destroyed!" << std::endl;
◆ getFaces()
virtual std::vector<std::vector<int> > NEM::GEO::rocPackShape::getFaces |
( |
| ) |
|
|
pure virtual |
◆ getShape()
std::shared_ptr< rocPackShape > NEM::GEO::rocPackShape::getShape |
( |
const std::string & |
shapeName | ) |
|
|
static |
- Parameters
-
shapeName | Name of shape requested Shape pointer |
Definition at line 38 of file rocPackShape.C.
Referenced by NEM::GEO::rocPack::rocParser().
40 if (shapeName ==
"hmx") {
41 std::shared_ptr<hmxShape> assignShape(
new hmxShape());
43 }
else if (shapeName ==
"petn") {
44 std::shared_ptr<petnShape> assignShape(
new petnShape());
46 }
else if (shapeName ==
"icosidodecahedron") {
47 std::shared_ptr<icosidodecahedronShape> assignShape(
48 new icosidodecahedronShape());
51 std::cerr <<
"The " << shapeName <<
" shape is not supported yet!"
◆ getVertices()
virtual std::vector<std::vector<double> > NEM::GEO::rocPackShape::getVertices |
( |
| ) |
|
|
pure virtual |
The documentation for this class was generated from the following files: