comparison Applications/Samples/Common/RtViewerApp.cpp @ 1896:b3c08e607d9f

simplified signature of DicomStructureSet::ProjectStructure()
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 26 Jan 2022 17:19:37 +0100
parents 7053b8a0aaec
children c7bc9e1776a6
comparison
equal deleted inserted replaced
1895:14c8f339d480 1896:b3c08e607d9f
65 { 65 {
66 views_[i]->Invalidate(); 66 views_[i]->Invalidate();
67 } 67 }
68 } 68 }
69 69
70 const VolumeImageGeometry& RtViewerApp::GetMainGeometry() 70 VolumeImageGeometry RtViewerApp::GetMainGeometry()
71 { 71 {
72 ORTHANC_ASSERT(geometryProvider_.get() != NULL); 72 ORTHANC_ASSERT(geometryProvider_.get() != NULL);
73 ORTHANC_ASSERT(geometryProvider_->HasGeometry()); 73 if (geometryProvider_->HasGeometry())
74 const VolumeImageGeometry& geometry = geometryProvider_->GetImageGeometry(); 74 {
75 return geometry; 75 return geometryProvider_->GetImageGeometry();
76 }
77 else
78 {
79 return VolumeImageGeometry();
80 }
76 } 81 }
77 82
78 RtViewerApp::RtViewerApp() : 83 RtViewerApp::RtViewerApp() :
79 // Create the volumes that will be filled later on 84 // Create the volumes that will be filled later on
80 ctVolume_(boost::make_shared<DicomVolumeImage>()), 85 ctVolume_(boost::make_shared<DicomVolumeImage>()),