Castor3D  ..
Public Member Functions | Protected Attributes | List of all members
Castor3D::Generator::Thread Class Referenceabstract
+ Collaboration diagram for Castor3D::Generator::Thread:

Public Member Functions

C3D_API Thread (Generator *p_parent, uint32_t p_index, int iWidth, int iTop, int iBottom, int iTotalHeight, Castor::UbPixel const &p_pxColour)
 
virtual C3D_API ~Thread ()
 
C3D_API void Run ()
 
C3D_API void Wait ()
 
virtual C3D_API int Entry ()
 
virtual C3D_API void Step ()=0
 
bool IsEnded () const
 
bool IsStopped () const
 
void Relaunch ()
 
void Stop ()
 
void SetRed (uint8_t val)
 
void SetGreen (uint8_t val)
 
void SetBlue (uint8_t val)
 

Protected Attributes

Generatorm_parent
 
int m_iWidth
 
int m_iTop
 
int m_iBottom
 
int m_iHeight
 
Castor::UbPixel m_pxColour
 
uint32_t m_index
 
std::shared_ptr< std::thread > m_pThread
 
std::recursive_mutex m_mutex
 

Constructor & Destructor Documentation

◆ Thread()

C3D_API Castor3D::Generator::Thread::Thread ( Generator p_parent,
uint32_t  p_index,
int  iWidth,
int  iTop,
int  iBottom,
int  iTotalHeight,
Castor::UbPixel const &  p_pxColour 
)

◆ ~Thread()

virtual C3D_API Castor3D::Generator::Thread::~Thread ( )
virtual

Member Function Documentation

◆ Entry()

virtual C3D_API int Castor3D::Generator::Thread::Entry ( )
virtual

◆ IsEnded()

bool Castor3D::Generator::Thread::IsEnded ( ) const
inline

◆ IsStopped()

bool Castor3D::Generator::Thread::IsStopped ( ) const
inline

References m_mutex.

◆ Relaunch()

void Castor3D::Generator::Thread::Relaunch ( )
inline

◆ Run()

C3D_API void Castor3D::Generator::Thread::Run ( )

◆ SetBlue()

void Castor3D::Generator::Thread::SetBlue ( uint8_t  val)
inline

References m_pxColour.

◆ SetGreen()

void Castor3D::Generator::Thread::SetGreen ( uint8_t  val)
inline

References m_pxColour.

◆ SetRed()

void Castor3D::Generator::Thread::SetRed ( uint8_t  val)
inline

References m_pxColour.

◆ Step()

virtual C3D_API void Castor3D::Generator::Thread::Step ( )
pure virtual

◆ Stop()

void Castor3D::Generator::Thread::Stop ( )
inline

References m_mutex.

◆ Wait()

C3D_API void Castor3D::Generator::Thread::Wait ( )

Member Data Documentation

◆ m_iBottom

int Castor3D::Generator::Thread::m_iBottom
protected

◆ m_iHeight

int Castor3D::Generator::Thread::m_iHeight
protected

◆ m_index

uint32_t Castor3D::Generator::Thread::m_index
protected

◆ m_iTop

int Castor3D::Generator::Thread::m_iTop
protected

◆ m_iWidth

int Castor3D::Generator::Thread::m_iWidth
protected

◆ m_mutex

std::recursive_mutex Castor3D::Generator::Thread::m_mutex
mutableprotected

Referenced by IsStopped(), and Stop().

◆ m_parent

Generator* Castor3D::Generator::Thread::m_parent
protected

◆ m_pThread

std::shared_ptr< std::thread > Castor3D::Generator::Thread::m_pThread
protected

◆ m_pxColour

Castor::UbPixel Castor3D::Generator::Thread::m_pxColour
protected

Referenced by SetBlue(), SetGreen(), and SetRed().


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