![]() |
3D Model Viewer
3D Model Viewer from Group 3
|
A model class used to load, store and save .MOD files. More...
#include <Model.h>
Public Member Functions | |
Model () | |
~Model () | |
Model (const Model &ModelCopy) | |
const Model & | operator= (const Model &ModelCopy) |
bool | LoadModelFile (const string fileName) |
void | SaveModelFile () |
void | CalculateCentre () |
uint16_t | GetNumOfVertices () |
uint16_t | GetNumOfCells () |
uint16_t | GetNumOfMaterials () |
uint16_t | GetCellTypeCount (uint16_t cellType) |
Vector3D | GetModelCentre () |
A model class used to load, store and save .MOD files.
Model::Model | ( | ) |
Blank Model constructor with no parameters
Model::~Model | ( | ) |
Model destructor
void Model::CalculateCentre | ( | ) |
Unfinished function to calculate the centre of the model and return its coordinates.
uint16_t Model::GetCellTypeCount | ( | uint16_t | cellType | ) |
Returns the number of cells of the inputted type
(uint16_t) | cellType Type that wants to be counted (0 - Tetrahedron, 1 - Hexahedron, 2 - Pyramid) |
Vector3D Model::GetModelCentre | ( | ) |
Unfinished function that will return the centre of the model
uint16_t Model::GetNumOfCells | ( | ) |
Returns the number of Cells in the Model.
uint16_t Model::GetNumOfMaterials | ( | ) |
Returns the number of Materials in the Model.
uint16_t Model::GetNumOfVertices | ( | ) |
Returns the number of Verticies in the Model.
bool Model::LoadModelFile | ( | const string | fileName | ) |
Loads a model from a .mod file and stores it in the object.
(string) | fileName The full path of the file being opened |
void Model::SaveModelFile | ( | ) |
Unfinished function to save the Object and its data to a .mod file.