12 #ifndef CXUSRECONSTRUCTIONFILEMAKER_H_
13 #define CXUSRECONSTRUCTIONFILEMAKER_H_
15 #include "cxResourceExport.h"
54 static QString createUniqueFolder(QString patientFolder, QString sessionDescription);
55 static QString createFolder(QString patientFolder, QString sessionDescription);
61 QString writeToNewFolder(QString path,
bool compression);
70 std::vector<cx::TimeInfo> imageTimestamps,
72 std::map<double, ToolPositionMetadata> trackerRecordedMetadata,
73 std::map<double, ToolPositionMetadata> referenceRecordedMetadata,
88 bool writeUSTimestamps(QString reconstructionFolder, QString session, std::vector<TimedPosition> ts);
89 bool writeUSTransforms(QString reconstructionFolder, QString session, std::vector<TimedPosition> ts);
90 bool writeTrackerMetadata(QString reconstructionFolder, QString session,
const std::map<double, ToolPositionMetadata>& ts);
91 bool writeReferenceMetadata(QString reconstructionFolder, QString session,
const std::map<double, ToolPositionMetadata>& ts);
92 bool writeMetadata(QString filename,
const std::map<double, ToolPositionMetadata>& ts, QString type);
93 bool writeTrackerTransforms(QString reconstructionFolder, QString session, std::vector<TimedPosition> ts);
94 bool writeTrackerTimestamps(QString reconstructionFolder, QString session, std::vector<TimedPosition> ts);
95 void writeProbeConfiguration(QString reconstructionFolder, QString session, ProbeDefinition data, QString uid);
96 void writeUSImages(QString path,
ImageDataContainerPtr images,
bool compression, std::vector<TimedPosition> pos);
98 void writeREADMEFile(QString reconstructionFolder, QString session);
99 bool writeTimestamps(QString filename, std::vector<TimedPosition> ts, QString type, TimeStampType timeStampType = Modified);
101 bool writeTransforms(QString filename, std::vector<TimedPosition> ts, QString type);
102 static bool findNewSubfolder(QString subfolderAbsolutePath);
104 void fillFramePositions(USReconstructInputData* data)
const;
106 USReconstructInputData mReconstructData;
107 QString mSessionDescription;