#include <LoadBinaryStl.h>
|
| LoadBinaryStl (std::string filename, ScaleUnits scaleType) |
|
| LoadBinaryStl (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 ()=default |
|
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...
|
|
Definition at line 24 of file LoadBinaryStl.h.
◆ LoadBinaryStl() [1/2]
Mantid::DataHandling::LoadBinaryStl::LoadBinaryStl |
( |
std::string |
filename, |
|
|
ScaleUnits |
scaleType |
|
) |
| |
|
inline |
◆ LoadBinaryStl() [2/2]
◆ isBinarySTL()
bool Mantid::DataHandling::LoadBinaryStl::isBinarySTL |
( |
const std::string & |
filename | ) |
|
|
static |
◆ readShape()
Implements Mantid::DataHandling::LoadSingleMesh.
Definition at line 51 of file LoadBinaryStl.cpp.
References Mantid::DataHandling::ReadMaterial::buildMaterial(), Mantid::DataHandling::LoadStl::changeToVector(), HEADER_SIZE, Mantid::DataHandling::LoadSingleMesh::m_file, Mantid::DataHandling::LoadStl::m_params, Mantid::DataHandling::LoadStl::m_setMaterial, Mantid::DataHandling::MeshFileIO::m_triangle, Mantid::DataHandling::MeshFileIO::m_vertices, Mantid::Kernel::BinaryStreamReader::moveStreamToPosition(), readTriangle(), Mantid::DataHandling::ReadMaterial::setMaterialParameters(), std::to_string(), TRIANGLE_COUNT_DATA_SIZE, TRIANGLE_DATA_SIZE, and VECTOR_DATA_SIZE.
◆ readTriangle()
◆ HEADER_SIZE
constexpr int Mantid::DataHandling::LoadBinaryStl::HEADER_SIZE = 80 |
|
staticconstexpr |
◆ openMode
constexpr std::ios_base::openmode Mantid::DataHandling::LoadBinaryStl::openMode = std::ios::in | std::ios::binary |
|
staticconstexpr |
◆ TRIANGLE_COUNT_DATA_SIZE
constexpr uint32_t Mantid::DataHandling::LoadBinaryStl::TRIANGLE_COUNT_DATA_SIZE = 4 |
|
staticconstexpr |
◆ TRIANGLE_DATA_SIZE
constexpr uint32_t Mantid::DataHandling::LoadBinaryStl::TRIANGLE_DATA_SIZE = 50 |
|
staticconstexpr |
◆ VECTOR_DATA_SIZE
constexpr uint32_t Mantid::DataHandling::LoadBinaryStl::VECTOR_DATA_SIZE = 12 |
|
staticconstexpr |
The documentation for this class was generated from the following files: