1 #ifndef CCTWAPPLICATION_H
2 #define CCTWAPPLICATION_H
4 #include <QApplication>
13 #include "qcepsettingssaver-ptr.h"
14 #include "qcepsettingssaver.h"
15 #include "qcepobjectnamer.h"
18 #ifdef WANT_IMPORT_COMMANDS
34 :
public QCoreApplication
48 void printMessage(QString msg, QDateTime dt=QDateTime::currentDateTime());
49 void wait(QString msg);
148 QList<CctwIntVector3D>
dependencies(
int cx,
int cy,
int cz);
154 void plotCurves(QwtPlotCurve *c1, QwtPlotCurve *c2, QwtPlotCurve *c3, QwtPlotCurve *c4);
157 QcepSettingsSaverWPtr
saver()
const;
192 #ifdef WANT_IMPORT_COMMANDS
213 Q_PROPERTY(
bool guiWanted READ get_GuiWanted WRITE set_GuiWanted STORED
false)
214 QCEP_BOOLEAN_PROPERTY(GuiWanted)
216 Q_PROPERTY(
int mode READ get_Mode WRITE set_Mode STORED false)
217 QCEP_INTEGER_PROPERTY(Mode)
219 Q_PROPERTY(QcepStringList
startupCommands READ get_StartupCommands WRITE set_StartupCommands STORED false)
220 QCEP_STRING_LIST_PROPERTY(StartupCommands)
222 Q_PROPERTY(QcepStringList
inputFiles READ get_InputFiles WRITE set_InputFiles STORED false)
223 QCEP_STRING_LIST_PROPERTY(InputFiles)
225 Q_PROPERTY(QString
outputFile READ get_OutputFile WRITE set_OutputFile STORED false)
226 QCEP_STRING_PROPERTY(OutputFile)
228 Q_PROPERTY(QString
maskFile READ get_MaskFile WRITE set_MaskFile STORED false)
229 QCEP_STRING_PROPERTY(MaskFile)
231 Q_PROPERTY(QString
anglesFile READ get_AnglesFile WRITE set_AnglesFile STORED false)
232 QCEP_STRING_PROPERTY(AnglesFile)
234 Q_PROPERTY(QString
weightsFile READ get_WeightsFile WRITE set_WeightsFile STORED false)
235 QCEP_STRING_PROPERTY(WeightsFile)
237 Q_PROPERTY(
int debug READ get_Debug WRITE set_Debug)
238 QCEP_INTEGER_PROPERTY(Debug)
240 Q_PROPERTY(
bool halting READ get_Halting WRITE set_Halting STORED false)
241 QCEP_BOOLEAN_PROPERTY(Halting)
243 Q_PROPERTY(
int progress READ get_Progress WRITE set_Progress STORED false)
244 QCEP_INTEGER_PROPERTY(Progress)
246 Q_PROPERTY(
int progressLimit READ get_ProgressLimit WRITE set_ProgressLimit STORED false)
247 QCEP_INTEGER_PROPERTY(ProgressLimit)
250 QCEP_STRING_PROPERTY(DependenciesPath)
252 Q_PROPERTY(QString
settingsPath READ get_SettingsPath WRITE set_SettingsPath)
253 QCEP_STRING_PROPERTY(SettingsPath)
255 Q_PROPERTY(QString
scriptPath READ get_ScriptPath WRITE set_ScriptPath)
256 QCEP_STRING_PROPERTY(ScriptPath)
259 QCEP_STRING_PROPERTY(SpecDataFilePath)
261 Q_PROPERTY(
int mpiRank READ get_MpiRank WRITE set_MpiRank STORED false)
262 QCEP_INTEGER_PROPERTY(MpiRank)
264 Q_PROPERTY(
int mpiSize READ get_MpiSize WRITE set_MpiSize STORED false)
265 QCEP_INTEGER_PROPERTY(MpiSize)
267 Q_PROPERTY(
int verbosity READ get_Verbosity WRITE set_Verbosity STORED false)
268 QCEP_INTEGER_PROPERTY(Verbosity)
270 Q_PROPERTY(
int exitStatus READ get_ExitStatus WRITE set_ExitStatus STORED false)
271 QCEP_INTEGER_PROPERTY(ExitStatus)
274 extern QcepSettingsSaverPtr
g_Saver;
276 #endif // CCTWAPPLICATION_H
CctwChunkedData * m_OutputData
void outputProject(int axes)
void decodeCommandLineArgs(int &argc, char *argv[])
void calculateChunkDependencies(int n)
void inputProject(int axes)
void setOmega(QString data)
void setMaskDataset(QString data)
CctwChunkedData * m_InputData
static QString addSlashes(QString str)
void setOutputChunks(QString data)
void startupCommand(QString cmd)
void setProjectOutput(QString dir)
CctwCrystalCoordinateParameters * m_Parameters
QcepSettingsSaverPtr g_Saver
void setCompression(QString data)
void onDebugChanged(int dbg)
QAtomicInt m_WorkOutstanding
void executeScriptFile(QString path)
void setOutputDims(QString data)
void reportOutputChunkCounts()
void analyzeSpecDataFile(QString path)
QcepStringList startupCommands
QcepSettingsSaverPtr m_Saver
CctwTransformer * m_Transformer
void clearWriteSettings()
void setPhi(QString data)
void transform(QString desc)
void setOutputData(QString data)
QcepIntList dependencies(int chunkId)
void setNormalization(QString data)
void addWorkOutstanding(int amt)
void autoOutputFile(QString suffix)
void initialize(int &argc, char *argv[])
void setSubset(QString desc)
QScriptValue evaluate(QString cmd)
void reportInputDependencies()
void setThreads(QString desc)
CctwScriptEngine * m_ScriptEngine
QcepStringList inputFiles
CctwPEIngressCommand * m_PEIngressCommand
QAtomicInt m_LastProgress
void mergeInput(QString path)
void printLine(QString line)
void reportOutputDependencies()
void reportDependencies()
void analyzePEMetaData(QString path)
void setTwoTheta(QString data)
CctwComparer * m_CompareData
void workCompleted(int amt)
void setOutputDataset(QString data)
void evaluateStartupCommand(QString cmd)
CctwqtMainWindow * m_Window
void saveDependencies(QString path)
void loadDependencies(QString path)
void setChi(QString data)
void pushInputFile(QString path)
QcepObjectNamer m_ObjectNamer
void decodeCommandLineArgsForUnix(int &argc, char *argv[])
void setAnglesDataset(QString data)
void installHDF5ErrorHandler()
QAtomicInt m_DependencyCounter
QcepSettingsSaverWPtr saver() const
void decodeCommandLineArgsForWindows(int &argc, char *argv[])
void setInputDataset(QString data)
void reportInputChunkCounts()
void showHelp(QString about)
void calculateDependencies()
void plotCurves(QwtPlotCurve *c1, QwtPlotCurve *c2, QwtPlotCurve *c3, QwtPlotCurve *c4)
void mergeOutput(QString path)
void partialDependencies(QString desc)
void evaluateCommand(QString cmd)
void setMaskData(QString data)
void setAnglesData(QString data)
CctwApplication(int &argc, char *argv[])
CctwCrystalCoordinateTransform * m_Transform
CctwCrystalCoordinateParameters * parameters() const
void setInputData(QString data)
void setInputChunks(QString data)
void printMessage(QString msg, QDateTime dt=QDateTime::currentDateTime())