AGX Dynamics  2.35.0.1
agxQt::ContactWriterThread Class Reference

Thread class for writing simulation information to file. More...

#include <ImpactAnalysis.h>

+ Inheritance diagram for agxQt::ContactWriterThread:

Public Slots

void slotAbortThread ()
 

Signals

void update (int)
 
void updateTimeLeft (double)
 

Public Member Functions

 ContactWriterThread (agx::GranularDataExporter::ExporterDataType type, agx::String filename, agx::String sessionName, const TimeSettings &timeSettings, agx::AnalysisBox *bound)
 Data Export thread class that opens up the specified journal and writes the specified export information to file. More...
 
bool getShouldUseBound () const
 
void reset ()
 Reset the writer thread. More...
 
void setExportType (agx::GranularDataExporter::ExporterDataType type)
 Set export type of the writing thread. More...
 
void setShouldUseBound (bool enable)
 
void setTimeSettings (const TimeSettings &timeSettings)
 Updates the time settings used in the export thread. More...
 
void update (agx::String filename, agx::String sessionName, agx::AnalysisBox *bound)
 Updates the export information used in the thread. More...
 

Public Attributes

bool m_running
 
bool m_shouldAbort
 

Protected Member Functions

void run ()
 

Protected Attributes

agx::AnalysisBox * m_bound
 
agxSDK::SimulationController * m_controller
 
agx::GranularDataExporter::ExporterDataType m_exportType
 
agx::String m_fileName
 
agx::String m_sessionName
 
TimeSettings m_timeSettings
 
bool m_useBound
 

Detailed Description

Thread class for writing simulation information to file.

Definition at line 55 of file ImpactAnalysis.h.

Constructor & Destructor Documentation

◆ ContactWriterThread()

agxQt::ContactWriterThread::ContactWriterThread ( agx::GranularDataExporter::ExporterDataType  type,
agx::String  filename,
agx::String  sessionName,
const TimeSettings &  timeSettings,
agx::AnalysisBox *  bound 
)

Data Export thread class that opens up the specified journal and writes the specified export information to file.

Parameters
typeType of data to be exported from the journal.
filenameName of the journal file to open.
sessionNameName of session to open in the specified journal file.
timeSettingsThe time settings to use when determining what time interval to export in.
boundAnalysis box to use in the export, to limit data entities to those that are inside the box.

Member Function Documentation

◆ getShouldUseBound()

bool agxQt::ContactWriterThread::getShouldUseBound ( ) const

◆ reset()

void agxQt::ContactWriterThread::reset ( )

Reset the writer thread.

◆ run()

void agxQt::ContactWriterThread::run ( )
protected

◆ setExportType()

void agxQt::ContactWriterThread::setExportType ( agx::GranularDataExporter::ExporterDataType  type)

Set export type of the writing thread.

◆ setShouldUseBound()

void agxQt::ContactWriterThread::setShouldUseBound ( bool  enable)

◆ setTimeSettings()

void agxQt::ContactWriterThread::setTimeSettings ( const TimeSettings &  timeSettings)

Updates the time settings used in the export thread.

◆ slotAbortThread

void agxQt::ContactWriterThread::slotAbortThread ( )
slot

◆ update() [1/2]

void agxQt::ContactWriterThread::update ( agx::String  filename,
agx::String  sessionName,
agx::AnalysisBox *  bound 
)

Updates the export information used in the thread.

◆ update [2/2]

void agxQt::ContactWriterThread::update ( int  )
signal

◆ updateTimeLeft

void agxQt::ContactWriterThread::updateTimeLeft ( double  )
signal

Member Data Documentation

◆ m_bound

agx::AnalysisBox* agxQt::ContactWriterThread::m_bound
protected

Definition at line 110 of file ImpactAnalysis.h.

◆ m_controller

agxSDK::SimulationController* agxQt::ContactWriterThread::m_controller
protected

Definition at line 106 of file ImpactAnalysis.h.

◆ m_exportType

agx::GranularDataExporter::ExporterDataType agxQt::ContactWriterThread::m_exportType
protected

Definition at line 109 of file ImpactAnalysis.h.

◆ m_fileName

agx::String agxQt::ContactWriterThread::m_fileName
protected

Definition at line 107 of file ImpactAnalysis.h.

◆ m_running

bool agxQt::ContactWriterThread::m_running

Definition at line 104 of file ImpactAnalysis.h.

◆ m_sessionName

agx::String agxQt::ContactWriterThread::m_sessionName
protected

Definition at line 108 of file ImpactAnalysis.h.

◆ m_shouldAbort

bool agxQt::ContactWriterThread::m_shouldAbort

Definition at line 103 of file ImpactAnalysis.h.

◆ m_timeSettings

TimeSettings agxQt::ContactWriterThread::m_timeSettings
protected

Definition at line 111 of file ImpactAnalysis.h.

◆ m_useBound

bool agxQt::ContactWriterThread::m_useBound
protected

Definition at line 112 of file ImpactAnalysis.h.


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