MModel - This object is responsible for reading and writing model entities to .mod data files.
More...
#include <MModel.h>
|
|
| MModel ()=default |
| | MModel - Default Constructor.
|
| |
| | MModel (const std::string &filePath) |
| | MModel - Constructor that loads a model from a file using loadModel. More...
|
| |
|
| ~MModel ()=default |
| | ~MModel - Default Destructor
|
| |
| void | loadModel (const std::string &filePath) |
| | loadModel - Loads a model from a VTK style data file More...
|
| |
| void | saveModel (const std::string &filePath) |
| | saveModel - Saves the currently loaded model to a VTK style data file More...
|
| |
|
void | displayVertexCount () |
| | displayVertexCount - Calculates the number of vertices and displays them
|
| |
|
size_t | getCellCount () |
| | getCellCount - Displays the number of cells and the type of each cell
|
| |
| MVector | calcCentre () |
| | calcCentre - Calculates the centre of the model More...
|
| |
| double | calcVolume () |
| | calcVolume - Calculates the volume of the model More...
|
| |
| double | calcWeight () |
| | calcWeight - Calculates the weight of the model More...
|
| |
|
std::vector< std::shared_ptr< MMaterial > > | getMaterials () |
| |
|
std::vector< MVector > | getVectors () |
| |
|
std::vector< std::shared_ptr< MCell > > | getCells () |
| |
|
size_t | getVectorCount () |
| |
|
size_t | getMaterialCount () |
| |
|
|
std::string | fileType |
| |
|
std::string | filePath |
| |
|
std::vector< std::shared_ptr< MCell > > | cells |
| | cells - List of all the cells in the model
|
| |
MModel - This object is responsible for reading and writing model entities to .mod data files.
| MModel::MModel |
( |
const std::string & |
filePath | ) |
|
|
explicit |
MModel - Constructor that loads a model from a file using loadModel.
- Parameters
-
| filePath | - Path to the data file |
calcCentre - Calculates the centre of the model
- Returns
- - MVector that points to the centre of the model
| double MModel::calcVolume |
( |
| ) |
|
calcVolume - Calculates the volume of the model
- Returns
- totalVolume - The total volume of the model
| double MModel::calcWeight |
( |
| ) |
|
calcWeight - Calculates the weight of the model
- Returns
- totalWeight - The total weight of the model
| void MModel::loadModel |
( |
const std::string & |
filePath | ) |
|
loadModel - Loads a model from a VTK style data file
- Parameters
-
| filePath | - Path to the data file |
| void MModel::saveModel |
( |
const std::string & |
filePath | ) |
|
saveModel - Saves the currently loaded model to a VTK style data file
- Parameters
-
| filePath | - Path to save the file in |
The documentation for this class was generated from the following files:
- /home/travis/build/KurusView/2020_GROUP_21/include/MModel.h
- /home/travis/build/KurusView/2020_GROUP_21/lib/MModel.cpp