|
Mantid
|
#include <LoadAsciiStl.h>
Public Member Functions | |
| LoadAsciiStl (std::string filename, ScaleUnits scaleType) | |
| LoadAsciiStl (std::string filename, ScaleUnits scaleType, ReadMaterial::MaterialParameters params) | |
| std::unique_ptr< Geometry::MeshObject > | readShape () override |
Public Member Functions inherited from Mantid::DataHandling::LoadStl | |
| LoadStl (std::string filename, std::ios_base::openmode mode, ScaleUnits scaleType) | |
| LoadStl (std::string filename, std::ios_base::openmode mode, ScaleUnits scaleType, ReadMaterial::MaterialParameters params) | |
| virtual | ~LoadStl () override=default |
Public Member Functions inherited from Mantid::DataHandling::LoadSingleMesh | |
| LoadSingleMesh (std::string filename, std::ios_base::openmode mode, ScaleUnits scaleType) | |
| 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 | |
| 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. | |
| std::shared_ptr< Geometry::MeshObject > | translate (std::shared_ptr< Geometry::MeshObject > environmentMesh, const std::vector< double > &translationVector) |
| translates the environment by a provided matrix | |
Static Public Member Functions | |
| static bool | isAsciiSTL (const std::string &filename) |
Private Member Functions | |
| bool | readSTLLine (std::ifstream &file, std::string const &type) |
| bool | readSTLTriangle (std::ifstream &file, Kernel::V3D &v1, Kernel::V3D &v2, Kernel::V3D &v3) |
| bool | readSTLVertex (std::ifstream &file, Kernel::V3D &vertex) |
Private Attributes | |
| int | m_lineNumber = 0 |
Additional Inherited Members | |
Protected Member Functions inherited from Mantid::DataHandling::LoadStl | |
| bool | areEqualVertices (Kernel::V3D const &v1, Kernel::V3D const &v2) const |
| void | changeToVector () |
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::LoadStl | |
| ReadMaterial::MaterialParameters | m_params |
| bool | m_setMaterial |
| std::unordered_set< std::pair< Kernel::V3D, uint32_t >, HashV3DPair, V3DTrueComparator > | vertexSet |
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 |
Definition at line 23 of file LoadAsciiStl.h.
|
inline |
Definition at line 25 of file LoadAsciiStl.h.
|
inline |
Definition at line 27 of file LoadAsciiStl.h.
|
static |
Definition at line 13 of file LoadAsciiStl.cpp.
Referenced by Mantid::DataHandling::LoadSampleEnvironment::loadEnvironmentFromSTL().
|
overridevirtual |
Implements Mantid::DataHandling::LoadSingleMesh.
Definition at line 25 of file LoadAsciiStl.cpp.
References Mantid::DataHandling::LoadStl::areEqualVertices(), Mantid::DataHandling::ReadMaterial::buildMaterial(), Mantid::DataHandling::LoadStl::changeToVector(), Mantid::DataHandling::LoadSingleMesh::m_file, m_lineNumber, Mantid::DataHandling::LoadStl::m_params, Mantid::DataHandling::LoadStl::m_setMaterial, Mantid::DataHandling::MeshFileIO::m_triangle, Mantid::DataHandling::MeshFileIO::m_vertices, readSTLTriangle(), Mantid::DataHandling::ReadMaterial::setMaterialParameters(), and Mantid::DataHandling::LoadStl::vertexSet.
|
private |
Definition at line 100 of file LoadAsciiStl.cpp.
References Mantid::DataHandling::LoadSingleMesh::m_filename, and m_lineNumber.
Referenced by readSTLTriangle().
|
private |
Definition at line 68 of file LoadAsciiStl.cpp.
References readSTLLine(), and readSTLVertex().
Referenced by readShape().
|
private |
Definition at line 79 of file LoadAsciiStl.cpp.
References Mantid::DataHandling::MeshFileIO::createScaledV3D(), Mantid::DataHandling::LoadSingleMesh::m_filename, and m_lineNumber.
Referenced by readSTLTriangle().
|
private |
Definition at line 33 of file LoadAsciiStl.h.
Referenced by readShape(), readSTLLine(), and readSTLVertex().