KurusView  1.0
MHexahedron.h
Go to the documentation of this file.
1 
7 #ifndef INC_KURUSVIEW_MHEXAHEDRON_H
8 #define INC_KURUSVIEW_MHEXAHEDRON_H
9 
10 
11 #include "MCell.h"
12 
14 class MHexahedron : public MCell {
15 public:
16 
23  MHexahedron(const std::vector<std::shared_ptr<MVector>> &vertices, const std::shared_ptr<MMaterial> &material,
24  long int id);
25 
29  MHexahedron() = delete;
30 
36  ~MHexahedron() = default;
37 
38 private:
43  double calcVolume() const override;
44 
51  double calcWeight() const override;
52 
63  std::shared_ptr<MVector> calcCentreOfGrav() const override;
64 };
65 
66 
67 #endif //INC_KURUSVIEW_MHEXAHEDRON_H
Header file for MCell base class.
~MHexahedron()=default
default destructor - wraps MCell destructor (decrements Instance Count)
MHexahedron()=delete
deleted default constructor. See MCell default ctor for reference.
MCell - Interface (abstract) class for all the cell shapes.
Definition: MCell.h:24
MHexahedron object - inherits from MCell.
Definition: MHexahedron.h:14