#include <mainCC3D.h>


Definition at line 43 of file mainCC3D.h.
| CC3DTransaction::CC3DTransaction | ( | std::string | _filename | ) |
Filename
Definition at line 54 of file mainCC3D.cpp.
References filename, pyScriptRunner, runPythonFlag, screenUpdateFrequency, and useXMLFileFlag.
| CC3DTransaction::~CC3DTransaction | ( | ) | [virtual] |
Definition at line 70 of file mainCC3D.cpp.
| void CC3DTransaction::applySimulation | ( | bool * | _stopSimulation | ) | [virtual] |
Reimplemented from Transaction.
Definition at line 796 of file mainCC3D.cpp.
References pstopSimulation, runPythonFlag, simulationThreadCpp(), simulationThreadPython(), and useXMLFileFlag.
| QString CC3DTransaction::messageStr | ( | ) | [inline] |
Definition at line 51 of file mainCC3D.h.
| void CC3DTransaction::setPauseMutexPtr | ( | QMutex * | mutexPtr | ) | [inline] |
| void CC3DTransaction::setFieldDrawMutexPtr | ( | QMutex * | mutexPtr | ) | [inline] |
| void CC3DTransaction::setTransactionMutexPtr | ( | QMutex * | mutexPtr | ) | [inline] |
| void CC3DTransaction::setBufferFreeSem | ( | QSemaphore * | _bufferFillFreeSemPtr | ) | [inline] |
| void CC3DTransaction::setBufferUsedSem | ( | QSemaphore * | _bufferFillUsedSemPtr | ) | [inline] |
| void CC3DTransaction::setGraphicsDataFieldPtr | ( | GraphicsDataFields * | _graphFieldsPtr | ) | [inline] |
| void CC3DTransaction::setScreenUpdateFrequency | ( | unsigned int | _freq | ) | [inline] |
Definition at line 60 of file mainCC3D.h.
Referenced by ImageWindow::configureScreenshotFrequency(), ImageWindow::customEvent(), and ImageWindowBase::simulation().
| virtual CompuCell3D::Simulator* CC3DTransaction::getSimulator | ( | ) | [inline, virtual] |
Reimplemented from SimthreadBase.
Definition at line 63 of file mainCC3D.h.
Referenced by ImageWindow::simulationSerialize().
| virtual void CC3DTransaction::setSimulator | ( | CompuCell3D::Simulator * | _simulator | ) | [inline, virtual] |
| void CC3DTransaction::preStartInit | ( | ) | [virtual] |
initialization of the drawing utils
allocate fields
assign field ptr
3 rd coordinate value
Now will set up drawing canvas sizes and configure the player
Reimplemented from SimthreadBase.
Definition at line 531 of file mainCC3D.cpp.
References GraphicsDataFields::allocateField3D(), cellFieldG, createConcentrationFields(), CompuCell3D::Potts3D::getCellFieldG(), CompuCell3D::Simulator::getConcentrationFieldNameMap(), CompuCell3D::Potts3D::getLatticeType(), CompuCell3D::Simulator::getNumSteps(), CompuCell3D::PlayerSettingsPlugin::getPlayerSettings(), CompuCell3D::Simulator::getPotts(), Transaction::getTargetObject(), graphFieldsPtr, GraphicsDataFields::insertPlotNamePlotTypePair(), TransactionStartEvent::latticeType, TransactionStartEvent::numSteps, TransactionStartEvent::playerSettings, simulator, CompuCell3D::Point3D::x, TransactionStartEvent::xSize, CompuCell3D::Point3D::y, TransactionStartEvent::ySize, CompuCell3D::Point3D::z, zPosition, and TransactionStartEvent::zSize.
| void CC3DTransaction::postStartInit | ( | ) | [virtual] |
fills field3D with values of the cell type
Reimplemented from SimthreadBase.
Definition at line 593 of file mainCC3D.cpp.
References bufferFillFreeSemPtr, bufferFillUsedSemPtr, fillConcentrationFields(), fillField3D(), CompuCell3D::Simulator::getConcentrationFieldNameMap(), CompuCell3D::Simulator::getStep(), Transaction::getTargetObject(), graphFieldsPtr, TransactionRefreshEvent::mcStep, and simulator.
| void CC3DTransaction::clearGraphicsFields | ( | ) | [virtual] |
Reimplemented from SimthreadBase.
Definition at line 97 of file mainCC3D.cpp.
References GraphicsDataFields::clearAllocatedFields(), and graphFieldsPtr.
| void CC3DTransaction::loopWork | ( | unsigned int | _step | ) | [virtual] |
Reimplemented from SimthreadBase.
Definition at line 610 of file mainCC3D.cpp.
References fillConcentrationFields(), fillField3D(), fillPressureFields(), fillVectorCellFields(), CompuCell3D::Simulator::getConcentrationFieldNameMap(), graphFieldsPtr, and simulator.
| void CC3DTransaction::loopWorkPostEvent | ( | unsigned int | _step | ) | [virtual] |
once a pointer is owned by Qt object it will not create memory leak
Reimplemented from SimthreadBase.
Definition at line 618 of file mainCC3D.cpp.
References bufferFillFreeSemPtr, bufferFillUsedSemPtr, CompuCell3D::Simulator::getStep(), Transaction::getTargetObject(), TransactionRefreshEvent::mcStep, pauseMutexPtr, and simulator.
| virtual std::string CC3DTransaction::getSimulationFileName | ( | ) | [inline, virtual] |
| virtual std::string CC3DTransaction::getSimulationPythonScriptName | ( | ) | [inline, virtual] |
| virtual unsigned int CC3DTransaction::getScreenUpdateFrequency | ( | ) | [inline, virtual] |
| GraphicsDataFields::floatField3D_t * CC3DTransaction::createFloatFieldPy | ( | CompuCell3D::Dim3D & | _fieldDim, | |
| std::string | _name | |||
| ) | [virtual] |
Reimplemented from SimthreadBase.
Definition at line 148 of file mainCC3D.cpp.
References GraphicsDataFields::allocateFloatField3D(), GraphicsDataFields::getFloatField3DNameMap(), graphFieldsPtr, GraphicsDataFields::insertPlotNamePlotTypePair(), CompuCell3D::Point3D::x, CompuCell3D::Point3D::y, and CompuCell3D::Point3D::z.
| GraphicsDataFields::vectorFieldCellLevel_t * CC3DTransaction::createVectorFieldCellLevelPy | ( | std::string | _fieldName | ) | [virtual] |
Reimplemented from SimthreadBase.
Definition at line 168 of file mainCC3D.cpp.
References GraphicsDataFields::allocateVectorFieldCellLevel(), GraphicsDataFields::getVectorFieldCellLevelNameMap(), graphFieldsPtr, and GraphicsDataFields::insertPlotNamePlotTypePair().
| bool CC3DTransaction::getStopSimulation | ( | ) | [virtual] |
Reimplemented from SimthreadBase.
Definition at line 92 of file mainCC3D.cpp.
References pstopSimulation.
| virtual void CC3DTransaction::setStopSimulation | ( | bool * | _stopSimulation | ) | [inline, virtual] |
| void CC3DTransaction::sendStopSimulationRequest | ( | ) | [virtual] |
once a pointer is owned by Qt object
it will not create memory leak
Reimplemented from SimthreadBase.
Definition at line 787 of file mainCC3D.cpp.
References Transaction::getTargetObject(), and TransactionStopSimulationEvent::message.
| void CC3DTransaction::handleErrorMessage | ( | std::string | _errorCategory, | |
| std::string | _error | |||
| ) | [virtual] |
once a pointer is owned by Qt object
it will not create memory leak
Reimplemented from SimthreadBase.
Definition at line 813 of file mainCC3D.cpp.
References TransactionErrorEvent::errorCategory, Transaction::getTargetObject(), and TransactionErrorEvent::message.
Referenced by simulationThreadPython().
| void CC3DTransaction::fillPressureVolumeFlexPy | ( | GraphicsDataFields::floatField3D_t & | _floatField3D | ) | [virtual] |
Reimplemented from SimthreadBase.
Definition at line 187 of file mainCC3D.cpp.
References cellFieldG, CompuCell3D::Field3D< T >::get(), GraphicsDataFields::getSizeL(), GraphicsDataFields::getSizeM(), GraphicsDataFields::getSizeN(), graphFieldsPtr, CompuCell3D::CellG::targetVolume, CompuCell3D::CellG::volume, CompuCell3D::Point3D::x, CompuCell3D::Point3D::y, and CompuCell3D::Point3D::z.
| void CC3DTransaction::registerPyScriptRunner | ( | PyScriptRunner * | _pyScriptRunner | ) | [inline] |
Definition at line 90 of file mainCC3D.h.
| void CC3DTransaction::simulationThreadCpp | ( | ) |
Definition at line 639 of file mainCC3D.cpp.
References simulationThreadPython().
Referenced by applySimulation().
| void CC3DTransaction::simulationThreadPython | ( | ) |
once a pointer is owned by Qt object
it will not create memory leak
Definition at line 746 of file mainCC3D.cpp.
References BasicFileLocation::getFilename(), BasicFileLocation::getLine(), BasicException::getLocation(), BasicException::getMessage(), Transaction::getTargetObject(), handleErrorMessage(), TransactionFinishEvent::message, pyDataConf, PythonConfigureData::pythonFileName, and simulationPython().
Referenced by applySimulation(), and simulationThreadCpp().
| void CC3DTransaction::setRunPythonFlag | ( | bool | _flag | ) | [inline] |
| bool CC3DTransaction::getRunPythonFlag | ( | ) | [inline] |
Definition at line 96 of file mainCC3D.h.
| void CC3DTransaction::setUseXMLFileFlag | ( | bool | _flag | ) | [inline] |
| bool CC3DTransaction::getUseXMLFileFlag | ( | ) | [inline] |
Definition at line 99 of file mainCC3D.h.
| void CC3DTransaction::setPyDataConf | ( | PythonConfigureData & | _pyDataConf | ) | [inline] |
| PythonConfigureData CC3DTransaction::getPyDataConf | ( | ) | [inline] |
Definition at line 102 of file mainCC3D.h.
| void CC3DTransaction::fillField3D | ( | GraphicsDataFields & | graphFields | ) | [private] |
set mutextes
unset
Definition at line 461 of file mainCC3D.cpp.
References CompuCell3D::CellG::averageConcentration, cellFieldG, GraphicsDataFields::field3DGraphicsData, fieldDrawMutexPtr, CompuCell3D::CellG::flag, CompuCell3D::Field3D< T >::get(), GraphicsDataFields::getSizeL(), GraphicsDataFields::getSizeM(), GraphicsDataFields::getSizeN(), CompuCell3D::CellG::id, CompuCell3D::CellG::type, CompuCell3D::Point3D::x, CompuCell3D::Point3D::y, and CompuCell3D::Point3D::z.
Referenced by loopWork(), and postStartInit().
| void CC3DTransaction::createConcentrationFields | ( | GraphicsDataFields & | graphFields, | |
| std::map< std::string, CompuCell3D::Field3DImpl< float > * > & | _fieldMap | |||
| ) | [private] |
Referenced by preStartInit().
| void CC3DTransaction::fillConcentrationFields | ( | GraphicsDataFields & | graphFields, | |
| std::map< std::string, CompuCell3D::Field3DImpl< float > * > & | _fieldMap | |||
| ) | [private] |
Referenced by loopWork(), and postStartInit().
| void CC3DTransaction::createPreasureFields | ( | GraphicsDataFields & | graphFields, | |
| CompuCell3D::Dim3D | fieldDim, | |||
| BasicArray< CompuCell3D::EnergyFunction * > & | energyFunctions | |||
| ) | [private] |
Definition at line 217 of file mainCC3D.cpp.
References GraphicsDataFields::allocateFloatField3D(), BasicArray< T >::getSize(), GraphicsDataFields::insertPlotNamePlotTypePair(), pressureNameEnergyMap, CompuCell3D::Point3D::x, CompuCell3D::Point3D::y, and CompuCell3D::Point3D::z.
| void CC3DTransaction::fillPressureFields | ( | GraphicsDataFields & | graphFields | ) | [private] |
set mutextes
unset
Definition at line 243 of file mainCC3D.cpp.
References fieldDrawMutexPtr, fillPressureVolume(), fillPressureVolumeFlex(), GraphicsDataFields::getFloatField3DNameMap(), and pressureNameEnergyMap.
Referenced by loopWork().
| void CC3DTransaction::fillPressureVolume | ( | GraphicsDataFields & | graphFields, | |
| GraphicsDataFields::floatField3D_t & | _floatField3D, | |||
| CompuCell3D::EnergyFunction * | energyFunctionPtr | |||
| ) | [private] |
| void CC3DTransaction::fillPressureVolumeFlex | ( | GraphicsDataFields & | graphFields, | |
| GraphicsDataFields::floatField3D_t & | _floatField3D, | |||
| CompuCell3D::EnergyFunction * | energyFunctionPtr | |||
| ) | [private] |
| void CC3DTransaction::createVectorCellFields | ( | GraphicsDataFields & | graphFields, | |
| CompuCell3D::Dim3D | fieldDim, | |||
| BasicArray< CompuCell3D::EnergyFunction * > & | energyFunctions, | |||
| CompuCell3D::PluginManager< CompuCell3D::Plugin >::plugins_t & | pluginMap | |||
| ) | [private] |
Definition at line 353 of file mainCC3D.cpp.
References GraphicsDataFields::allocateVectorCellFloatField3D(), GraphicsDataFields::insertPlotNamePlotTypePair(), pluginNameMap, CompuCell3D::Point3D::x, CompuCell3D::Point3D::y, and CompuCell3D::Point3D::z.
| void CC3DTransaction::fillVectorCellFields | ( | GraphicsDataFields & | graphFields | ) | [private] |
set mutextes
unset
Definition at line 377 of file mainCC3D.cpp.
References fieldDrawMutexPtr, fillVelocity(), GraphicsDataFields::getVectorCellFloatField3DNameMap(), and pluginNameMap.
Referenced by loopWork().
| void CC3DTransaction::fillVelocity | ( | GraphicsDataFields & | graphFields, | |
| GraphicsDataFields::vectorCellFloatField3D_t & | _vectorCellFloatField3D, | |||
| CompuCell3D::Plugin * | plugin | |||
| ) | [private] |
Definition at line 417 of file mainCC3D.cpp.
References cellFieldG, CompuCell3D::CellG::extraAttribPtr, BasicClassAccessor< T >::get(), CompuCell3D::Field3D< T >::get(), CompuCell3D::CellVelocityData::getAverageVelocity(), GraphicsDataFields::getSizeL(), GraphicsDataFields::getSizeM(), GraphicsDataFields::getSizeN(), CompuCell3D::Plugin::toString(), CompuCell3D::Point3D::x, CompuCell3D::Point3D::y, and CompuCell3D::Point3D::z.
Referenced by fillVectorCellFields().
| void CC3DTransaction::markBorder | ( | const CompuCell3D::Point3D & | _pt, | |
| CompuCell3D::CellG * | _currentCell, | |||
| GraphicsData * | _pixel | |||
| ) | [private] |
Definition at line 498 of file mainCC3D.cpp.
References cellFieldG, CompuCell3D::Field3D< T >::get(), and GraphicsData::type.
std::string CC3DTransaction::filename [private] |
std::string CC3DTransaction::pythonScriptNameFromPlayer [private] |
Definition at line 107 of file mainCC3D.h.
PyScriptRunner* CC3DTransaction::pyScriptRunner [private] |
unsigned int CC3DTransaction::zPosition [private] |
unsigned int CC3DTransaction::screenUpdateFrequency [private] |
Definition at line 116 of file mainCC3D.h.
Referenced by clearGraphicsFields(), createFloatFieldPy(), createVectorFieldCellLevelPy(), fillPressureVolumeFlexPy(), loopWork(), postStartInit(), and preStartInit().
Definition at line 152 of file mainCC3D.h.
Referenced by fillField3D(), fillPressureVolumeFlexPy(), fillVelocity(), markBorder(), and preStartInit().
std::map<std::string, CompuCell3D::EnergyFunction *> CC3DTransaction::pressureNameEnergyMap [private] |
Definition at line 155 of file mainCC3D.h.
Referenced by createPreasureFields(), and fillPressureFields().
std::map<std::string, CompuCell3D::Plugin *> CC3DTransaction::pluginNameMap [private] |
Definition at line 156 of file mainCC3D.h.
Referenced by createVectorCellFields(), and fillVectorCellFields().
QMutex* CC3DTransaction::pauseMutexPtr [private] |
QMutex* CC3DTransaction::fieldDrawMutexPtr [private] |
Definition at line 160 of file mainCC3D.h.
Referenced by fillField3D(), fillPressureFields(), and fillVectorCellFields().
QMutex* CC3DTransaction::mutexTransactionPtr [private] |
Definition at line 161 of file mainCC3D.h.
QSemaphore* CC3DTransaction::bufferFillFreeSemPtr [private] |
QSemaphore* CC3DTransaction::bufferFillUsedSemPtr [private] |
bool* CC3DTransaction::pstopSimulation [private] |
Reimplemented from SimthreadBase.
Definition at line 166 of file mainCC3D.h.
Referenced by applySimulation(), and getStopSimulation().
CompuCell3D::Simulator* CC3DTransaction::simulator [private] |
Definition at line 169 of file mainCC3D.h.
Referenced by loopWork(), loopWorkPostEvent(), postStartInit(), and preStartInit().
bool CC3DTransaction::runPythonFlag [private] |
bool CC3DTransaction::useXMLFileFlag [private] |
1.5.6