ReXio
 All Classes Namespaces Functions Variables Friends
MCBox Class Referenceabstract

#include <abstract_box.hpp>

Inheritance diagram for MCBox:
Collaboration diagram for MCBox:

Public Member Functions

GrainStatisticsGetGrainStatistics ()
 
void SetGrainStatistics (GrainStatistics *gs)
 
virtual ~MCBox ()
 
virtual void FindTripleJunctions (int=5)=0
 
virtual void ImportAng (const std::string &, Pos=0)=0
 
virtual void ExportAng (const std::string &, Pos=0)=0
 
virtual void ImportOsc (const std::string &, Pos=0)=0
 
virtual void ExportOsc (const std::string &, Pos=0)=0
 
virtual void CreateCubicAngHeader ()
 
virtual MCPointGet (const int &, const int &, int=0)=0
 
virtual MCPointFastGet (const Pos &, const Pos &, Pos=0)=0
 
virtual MCPointoperator() (const Pos &, const Pos &, Pos=0)=0
 
virtual void TransferEBSDData (int &_oscFileLength, int &_oscDataStartBytePosition, int &_oscDataEndBytePosition, std::string &_bufferOscFileHeader)
 
void Load (const std::string &)
 
void Save (const std::string &)
 
void ExportBinaryVtk (const std::string &)
 
void ExportVtk (const std::string &)
 
void ExportSPVtk (const std::string &)
 
void ExportEulers (const std::string &)
 
void GetPointsFromCircle (MCPoint *p, const float &radius, Neighbours &n)
 
void SetMCNeighboursRange (const Pos &range=1)
 
Dim & Get_xsize ()
 
Dim & Get_ysize ()
 
Dim & Get_zsize ()
 
Dim GetSize ()
 
void SetBoundaryColor (Color r=0, Color g=0, Color b=0)
 
void SetBoxColor (Color r=0, Color g=0, Color b=0)
 
void SetSortedBoundaryColor (Color r=0, Color g=0, Color b=0)
 
void SetTripleJunctionsColor (Color r=0, Color g=0, Color b=0)
 
void SetCenterOfGravityColor (Color r=0, Color g=0, Color b=0)
 
void SetNeighboursColor (int i, int j, int k=0, Color=255, Color=0, Color=0)
 
void InitializeRandGen ()
 
MCPointGetRandomPoint ()
 

Protected Member Functions

 MCBox ()
 

Protected Attributes

Dim _xsize
 
Dim _ysize
 
Dim _zsize
 
GrainStatistics_grainStats
 
std::random_device _rd
 
std::mt19937 _rengine
 
std::uniform_int_distribution _disx
 
std::uniform_int_distribution _disy
 
std::uniform_int_distribution _disz
 

Constructor & Destructor Documentation

MCBox::MCBox ( )
inlineprotected
virtual MCBox::~MCBox ( )
inlinevirtual

Member Function Documentation

virtual void MCBox::CreateCubicAngHeader ( )
inlinevirtual

Reimplemented in MCBox2D.

Here is the caller graph for this function:

virtual void MCBox::ExportAng ( const std::string &  ,
Pos  = 0 
)
pure virtual

Implemented in MCBox3D, MCBox2D, and Cube3D.

Here is the caller graph for this function:

void MCBox::ExportBinaryVtk ( const std::string &  filename)

Here is the call graph for this function:

Here is the caller graph for this function:

void MCBox::ExportEulers ( const std::string &  filename)

Here is the call graph for this function:

virtual void MCBox::ExportOsc ( const std::string &  ,
Pos  = 0 
)
pure virtual

Implemented in MCBox3D, MCBox2D, and Cube3D.

Here is the caller graph for this function:

void MCBox::ExportSPVtk ( const std::string &  filename)

Here is the call graph for this function:

void MCBox::ExportVtk ( const std::string &  filename)

Here is the call graph for this function:

Here is the caller graph for this function:

virtual MCPoint* MCBox::FastGet ( const Pos &  ,
const Pos &  ,
Pos  = 0 
)
pure virtual

Implemented in MCBox3D, and MCBox2D.

Here is the caller graph for this function:

virtual void MCBox::FindTripleJunctions ( int  = 5)
pure virtual

Implemented in MCBox3D, and MCBox2D.

virtual MCPoint* MCBox::Get ( const int &  ,
const int &  ,
int  = 0 
)
pure virtual

Implemented in MCBox3D, and MCBox2D.

Here is the caller graph for this function:

Dim& MCBox::Get_xsize ( )
inline

Here is the caller graph for this function:

Dim& MCBox::Get_ysize ( )
inline

Here is the caller graph for this function:

Dim& MCBox::Get_zsize ( )
inline

Here is the caller graph for this function:

GrainStatistics* MCBox::GetGrainStatistics ( )
inline

Here is the caller graph for this function:

void MCBox::GetPointsFromCircle ( MCPoint p,
const float &  radius,
Neighbours &  n 
)

Here is the call graph for this function:

MCPoint* MCBox::GetRandomPoint ( )
inline

Here is the call graph for this function:

Here is the caller graph for this function:

Dim MCBox::GetSize ( )
inline

Here is the caller graph for this function:

virtual void MCBox::ImportAng ( const std::string &  ,
Pos  = 0 
)
pure virtual

Implemented in MCBox3D, and MCBox2D.

virtual void MCBox::ImportOsc ( const std::string &  ,
Pos  = 0 
)
pure virtual

Implemented in MCBox3D, MCBox2D, and Cube3D.

Here is the caller graph for this function:

void MCBox::InitializeRandGen ( )
inline

Here is the caller graph for this function:

void MCBox::Load ( const std::string &  )
inline
virtual MCPoint* MCBox::operator() ( const Pos &  ,
const Pos &  ,
Pos  = 0 
)
pure virtual

Implemented in MCBox3D, and MCBox2D.

void MCBox::Save ( const std::string &  )
inline
void MCBox::SetBoundaryColor ( Color  r = 0,
Color  g = 0,
Color  b = 0 
)

Here is the call graph for this function:

Here is the caller graph for this function:

void MCBox::SetBoxColor ( Color  r = 0,
Color  g = 0,
Color  b = 0 
)
inline

Here is the call graph for this function:

void MCBox::SetCenterOfGravityColor ( Color  r = 0,
Color  g = 0,
Color  b = 0 
)

Here is the call graph for this function:

void MCBox::SetGrainStatistics ( GrainStatistics gs)
inline
void MCBox::SetMCNeighboursRange ( const Pos &  range = 1)

Here is the call graph for this function:

Here is the caller graph for this function:

void MCBox::SetNeighboursColor ( int  i,
int  j,
int  k = 0,
Color  r = 255,
Color  g = 0,
Color  b = 0 
)

Here is the call graph for this function:

void MCBox::SetSortedBoundaryColor ( Color  r = 0,
Color  g = 0,
Color  b = 0 
)

Here is the call graph for this function:

void MCBox::SetTripleJunctionsColor ( Color  r = 0,
Color  g = 0,
Color  b = 0 
)

Here is the call graph for this function:

virtual void MCBox::TransferEBSDData ( int &  _oscFileLength,
int &  _oscDataStartBytePosition,
int &  _oscDataEndBytePosition,
std::string &  _bufferOscFileHeader 
)
inlinevirtual

Reimplemented in MCBox2D.

Member Data Documentation

std::uniform_int_distribution MCBox::_disx
protected
std::uniform_int_distribution MCBox::_disy
protected
std::uniform_int_distribution MCBox::_disz
protected
GrainStatistics* MCBox::_grainStats
protected
std::random_device MCBox::_rd
protected
std::mt19937 MCBox::_rengine
protected
Dim MCBox::_xsize
protected
Dim MCBox::_ysize
protected
Dim MCBox::_zsize
protected

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