33 #ifndef CXUSRECONSTRUCTIONFILEMAKER_H_
34 #define CXUSRECONSTRUCTIONFILEMAKER_H_
36 #include "cxResourceExport.h"
75 static QString createUniqueFolder(QString patientFolder, QString sessionDescription);
76 static QString createFolder(QString patientFolder, QString sessionDescription);
82 QString writeToNewFolder(QString path,
bool compression);
91 std::vector<cx::TimeInfo> imageTimestamps,
93 std::map<double, ToolPositionMetadata> trackerRecordedMetadata,
94 std::map<double, ToolPositionMetadata> referenceRecordedMetadata,
109 bool writeUSTimestamps(QString reconstructionFolder, QString session, std::vector<TimedPosition> ts);
110 bool writeUSTransforms(QString reconstructionFolder, QString session, std::vector<TimedPosition> ts);
111 bool writeTrackerMetadata(QString reconstructionFolder, QString session,
const std::map<double, ToolPositionMetadata>& ts);
112 bool writeReferenceMetadata(QString reconstructionFolder, QString session,
const std::map<double, ToolPositionMetadata>& ts);
113 bool writeMetadata(QString filename,
const std::map<double, ToolPositionMetadata>& ts, QString type);
114 bool writeTrackerTransforms(QString reconstructionFolder, QString session, std::vector<TimedPosition> ts);
115 bool writeTrackerTimestamps(QString reconstructionFolder, QString session, std::vector<TimedPosition> ts);
116 void writeProbeConfiguration(QString reconstructionFolder, QString session, ProbeDefinition data, QString uid);
117 void writeUSImages(QString path,
ImageDataContainerPtr images,
bool compression, std::vector<TimedPosition> pos);
119 void writeREADMEFile(QString reconstructionFolder, QString session);
120 bool writeTimestamps(QString filename, std::vector<TimedPosition> ts, QString type, TimeStampType timeStampType = Modified);
122 bool writeTransforms(QString filename, std::vector<TimedPosition> ts, QString type);
123 static bool findNewSubfolder(QString subfolderAbsolutePath);
125 void fillFramePositions(USReconstructInputData* data)
const;
127 USReconstructInputData mReconstructData;
128 QString mSessionDescription;
QString getSessionName() const
Transform3D Transform3D
Transform3D is a representation of an affine 3D transform.
Handles writing files in the format the us reconstruction algorithm wants them.
boost::shared_ptr< class SavingVideoRecorder > SavingVideoRecorderPtr
boost::shared_ptr< QTextStream > QTextStreamPtr
boost::shared_ptr< class UsReconstructionFileMaker > UsReconstructionFileMakerPtr
void setReconstructData(USReconstructInputData data)
std::map< double, Transform3D > TimedTransformMap
boost::shared_ptr< class ImageDataContainer > ImageDataContainerPtr
boost::shared_ptr< class Tool > ToolPtr