Mantid
|
#include <LoadOff.h>
Public Member Functions | |
LoadOff (const std::string &filename, ScaleUnits scaleType) | |
std::unique_ptr< Geometry::MeshObject > | readShape () override |
Public Member Functions inherited from Mantid::DataHandling::LoadSingleMesh | |
LoadSingleMesh (std::string filename, std::ios_base::openmode mode, ScaleUnits scaleType) | |
virtual std::unique_ptr< Geometry::MeshObject > | readShape ()=0 |
virtual | ~LoadSingleMesh () |
Public Member Functions inherited from Mantid::DataHandling::MeshFileIO | |
Kernel::V3D | createScaledV3D (double xVal, double yVal, double zVal) |
scales a 3D point according the units defined in the MeshFileIO class More... | |
ScaleUnits | getScaleType () |
std::shared_ptr< Geometry::MeshObject > | rotate (std::shared_ptr< Geometry::MeshObject > environmentMesh, double xRotation, double yRotation, double zRotation) |
Rotates the environment by a generated matrix. More... | |
std::shared_ptr< Geometry::MeshObject > | translate (std::shared_ptr< Geometry::MeshObject > environmentMesh, const std::vector< double > &translationVector) |
translates the environment by a provided matrix More... | |
Private Member Functions | |
bool | getOFFline (std::string &line) |
std::unique_ptr< Geometry::MeshObject > | readOFFMeshObject () |
void | readOFFTriangles () |
void | readOFFVertices () |
Private Attributes | |
uint32_t | m_nTriangles |
uint32_t | m_nVertices |
Additional Inherited Members | |
Protected Member Functions inherited from Mantid::DataHandling::MeshFileIO | |
MeshFileIO (ScaleUnits scaleType) | |
MeshFileIO (ScaleUnits scaleType, std::vector< uint32_t > triangles, std::vector< Kernel::V3D > vertices) | |
float | removeScale (double value) |
double | scaleValue (double val) |
void | setScaleType (const ScaleUnits scaleType) |
Protected Attributes inherited from Mantid::DataHandling::LoadSingleMesh | |
std::ifstream | m_file |
const std::string | m_filename |
Protected Attributes inherited from Mantid::DataHandling::MeshFileIO | |
ScaleUnits | m_scaleType |
std::vector< uint32_t > | m_triangle |
std::vector< Kernel::V3D > | m_vertices |
Mantid::DataHandling::LoadOff::LoadOff | ( | const std::string & | filename, |
ScaleUnits | scaleType | ||
) |
Definition at line 17 of file LoadOff.cpp.
|
private |
Definition at line 20 of file LoadOff.cpp.
References Mantid::DataHandling::LoadSingleMesh::m_file.
Referenced by readOFFMeshObject(), readOFFTriangles(), readOFFVertices(), and readShape().
|
private |
Definition at line 85 of file LoadOff.cpp.
References getOFFline(), m_nTriangles, m_nVertices, Mantid::DataHandling::MeshFileIO::m_triangle, Mantid::DataHandling::MeshFileIO::m_vertices, readOFFTriangles(), and readOFFVertices().
Referenced by readShape().
|
private |
Definition at line 56 of file LoadOff.cpp.
References getOFFline(), m_nTriangles, and Mantid::DataHandling::MeshFileIO::m_triangle.
Referenced by readOFFMeshObject().
|
private |
Definition at line 36 of file LoadOff.cpp.
References Mantid::DataHandling::MeshFileIO::createScaledV3D(), getOFFline(), m_nVertices, and Mantid::DataHandling::MeshFileIO::m_vertices.
Referenced by readOFFMeshObject().
|
overridevirtual |
Implements Mantid::DataHandling::LoadSingleMesh.
Definition at line 117 of file LoadOff.cpp.
References getOFFline(), and readOFFMeshObject().
|
private |
Definition at line 35 of file LoadOff.h.
Referenced by readOFFMeshObject(), and readOFFTriangles().
|
private |
Definition at line 34 of file LoadOff.h.
Referenced by readOFFMeshObject(), and readOFFVertices().