Allolib  1.0
C++ Components For Interactive Multimedia
al::Voxels Class Reference

#include <C:/Users/Andres/source/repos/casm_viewer/external/tinc/external/allolib/include/al/types/al_Voxels.hpp>

Inheritance diagram for al::Voxels:

Public Member Functions

 Voxels (AlloTy ty, uint32_t dimx, uint32_t dimy, uint32_t dimz, float sizex, float sizey, float sizez, UnitsTy units)
 
 Voxels (AlloTy ty, uint32_t dimx, uint32_t dimy, uint32_t dimz, float sizex, float sizey, float sizez)
 
 Voxels (AlloTy ty, uint32_t dimx, uint32_t dimy, uint32_t dimz, float voxelsize, UnitsTy units)
 
 Voxels (AlloTy ty, uint32_t dimx, uint32_t dimy, uint32_t dimz)
 Construct dimx x dimy x dimz voxel grid with every voxel 1m x 1m x 1m.
 
void init (float voxWidthX, float voxWidthY, float voxWidthZ, UnitsTy units)
 
float getVoxWidth (unsigned int axis) const
 
void setVoxWidth (unsigned int axis, float voxWidth)
 
std::string printVoxWidth (unsigned int axis)
 
UnitsTy getUnits () const
 
void setUnits (UnitsTy units)
 
std::string printUnits ()
 
const std::string printUnits (UnitsTy t)
 
MRCHeaderparseMRC (const char *data)
 
bool loadFromMRC (std::string filename, bool update=false)
 
bool loadFromMRC (std::string filename, UnitsTy ty, float voxWidth)
 
bool loadFromMRC (std::string filename, UnitsTy ty, float voxWidthX, float voxWidthY, float voxWidthZ)
 
bool getdir (std::string dir, std::vector< std::string > &files)
 
bool parseInfo (std::string dir, std::vector< std::string > &data)
 
bool loadFromDirectory (std::string dir)
 
bool linePlaneIntersection (const Vec3f &P0, const Vec3f &P1, const Vec3f &planeCenter, const Vec3f &planeNormal, Vec3f *intersection)
 
std::vector< Vec3flinspace (Vec3f a, Vec3f b, int n)
 
Vec3f point2Dto3D (Vec3f Q, Vec3f H, Vec3f K, float u, float v)
 
bool parallelLinespace (Vec3f p0, Vec3f p1, Vec3f p2, Vec3f p3, std::vector< Vec3f > &list, std::vector< Vec3f > &list2, float aDirection, float oDirection, std::vector< Vec3f > &points)
 
Array slice (Vec3f planeCenter, Vec3f planeNormal, std::vector< Vec3f > &finalPointList)
 
bool writeToMRC (std::string filename, MRCHeader &header)
 
bool writeToFile (std::string filename)
 
bool loadFromFile (std::string filename)
 
void print (FILE *fp=stdout)
 
float min () const
 
float max () const
 
float mean () const
 
float rms () const
 

Protected Attributes

UnitsTy m_units
 
float m_voxWidth [3]
 
float m_min
 
float m_max
 
float m_mean
 
float m_rms
 

Detailed Description

OBJECT-oriented interface to AlloArray

Definition at line 154 of file al_Voxels.hpp.

Constructor & Destructor Documentation

◆ Voxels() [1/3]

al::Voxels::Voxels ( AlloTy  ty,
uint32_t  dimx,
uint32_t  dimy,
uint32_t  dimz,
float  sizex,
float  sizey,
float  sizez,
UnitsTy  units 
)
inline

Construct dimx x dimy x dimz voxel grid giving 3D size of each voxel cuboid with units

Definition at line 160 of file al_Voxels.hpp.

◆ Voxels() [2/3]

al::Voxels::Voxels ( AlloTy  ty,
uint32_t  dimx,
uint32_t  dimy,
uint32_t  dimz,
float  sizex,
float  sizey,
float  sizez 
)
inline

Construct dimx x dimy x dimz voxel grid giving 3D size of each voxel cuboid in meters

Definition at line 168 of file al_Voxels.hpp.

◆ Voxels() [3/3]

al::Voxels::Voxels ( AlloTy  ty,
uint32_t  dimx,
uint32_t  dimy,
uint32_t  dimz,
float  voxelsize,
UnitsTy  units 
)
inline

Construct dimx x dimy x dimz voxel grid giving dimension of each voxel cube with units

Definition at line 176 of file al_Voxels.hpp.


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