Mantid
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
Mantid::DataHandling::LoadStl Class Reference

#include <LoadStl.h>

Inheritance diagram for Mantid::DataHandling::LoadStl:
Mantid::DataHandling::LoadSingleMesh Mantid::DataHandling::MeshFileIO Mantid::DataHandling::LoadAsciiStl Mantid::DataHandling::LoadBinaryStl

Public Member Functions

 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::MeshObjectreadShape ()=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::MeshObjectrotate (std::shared_ptr< Geometry::MeshObject > environmentMesh, double xRotation, double yRotation, double zRotation)
 Rotates the environment by a generated matrix. More...
 
std::shared_ptr< Geometry::MeshObjecttranslate (std::shared_ptr< Geometry::MeshObject > environmentMesh, const std::vector< double > &translationVector)
 translates the environment by a provided matrix More...
 

Protected Member Functions

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

ReadMaterial::MaterialParameters m_params
 
bool m_setMaterial
 
std::unordered_set< std::pair< Kernel::V3D, uint32_t >, HashV3DPair, V3DTrueComparatorvertexSet
 
- 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::V3Dm_vertices
 

Detailed Description

Definition at line 48 of file LoadStl.h.

Constructor & Destructor Documentation

◆ LoadStl() [1/2]

Mantid::DataHandling::LoadStl::LoadStl ( std::string  filename,
std::ios_base::openmode  mode,
ScaleUnits  scaleType 
)
inline

Definition at line 50 of file LoadStl.h.

◆ LoadStl() [2/2]

Mantid::DataHandling::LoadStl::LoadStl ( std::string  filename,
std::ios_base::openmode  mode,
ScaleUnits  scaleType,
ReadMaterial::MaterialParameters  params 
)
inline

Definition at line 52 of file LoadStl.h.

◆ ~LoadStl()

virtual Mantid::DataHandling::LoadStl::~LoadStl ( )
virtualdefault

Member Function Documentation

◆ areEqualVertices()

bool Mantid::DataHandling::LoadStl::areEqualVertices ( Kernel::V3D const &  v1,
Kernel::V3D const &  v2 
) const
protected

Definition at line 15 of file LoadStl.cpp.

References Mantid::Kernel::V3D::norm().

Referenced by Mantid::DataHandling::LoadAsciiStl::readShape().

◆ changeToVector()

void Mantid::DataHandling::LoadStl::changeToVector ( )
protected

Member Data Documentation

◆ m_params

ReadMaterial::MaterialParameters Mantid::DataHandling::LoadStl::m_params
protected

◆ m_setMaterial

bool Mantid::DataHandling::LoadStl::m_setMaterial
protected

◆ vertexSet

std::unordered_set<std::pair<Kernel::V3D, uint32_t>, HashV3DPair, V3DTrueComparator> Mantid::DataHandling::LoadStl::vertexSet
protected

The documentation for this class was generated from the following files: