Change preReadNewFile to readTags
This commit is contained in:
@@ -38,8 +38,7 @@ public:
|
||||
* @param dir
|
||||
* @param openMode
|
||||
*/
|
||||
void preReadNewFile(const std::string &dir, SeriesOpenMode openMode);
|
||||
|
||||
void readTags(const std::string &dir, SeriesOpenMode openMode);
|
||||
|
||||
const std::string& getDefaultUniqueID(){
|
||||
return defaultUniqueID;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#include "QDicomViewer.h"
|
||||
#include "QDicomViewer.h"
|
||||
#include "global/include_all.h"
|
||||
#include "base/SeriesImageSet.h"
|
||||
#include "view/subview/gridpopwidget.h"
|
||||
@@ -1010,7 +1010,7 @@ void QDicomViewer::openAndDrawDICOM(const std::string& dicomName, SeriesOpenMode
|
||||
DicomLoader *helper = DicomLoader::GetInstance();
|
||||
|
||||
//load image and tag
|
||||
helper->preReadNewFile(dicomName, openMode);
|
||||
helper->readTags(dicomName, openMode);
|
||||
auto unique = helper->getDefaultUniqueID();
|
||||
|
||||
ui->viewContainer->replaceViewWithSerie(unique);
|
||||
|
||||
@@ -196,7 +196,7 @@ SeriesInfo_t* DicomLoader::getSerieInfo(const std::string& seriesUnique)
|
||||
}
|
||||
|
||||
|
||||
void DicomLoader::preReadNewFile(const std::string &dir, SeriesOpenMode openMode)
|
||||
void DicomLoader::readTags(const std::string &dir, SeriesOpenMode openMode)
|
||||
{
|
||||
DICOMDirectoryHelper DICOMHelper;
|
||||
if (openMode == FILE_OPEN_MODE)
|
||||
|
||||
Reference in New Issue
Block a user