comparison Framework/Volumes/DicomVolumeImageMPRSlicer.cpp @ 1105:640feb146fa8 toa2019102801

Code formatting (dummyc) + log level (dummyc)
author Benjamin Golinvaux <bgo@osimis.io>
date Mon, 28 Oct 2019 11:13:48 +0100
parents a7351ad54960
children 19b1c8caade4 2d8ab34c8c91
comparison
equal deleted inserted replaced
1101:141593f1aa88 1105:640feb146fa8
43 const CoordinateSystem3D& cuttingPlane) : 43 const CoordinateSystem3D& cuttingPlane) :
44 volume_(volume), 44 volume_(volume),
45 revision_(volume_.GetRevision()) 45 revision_(volume_.GetRevision())
46 { 46 {
47 valid_ = (volume_.HasDicomParameters() && 47 valid_ = (volume_.HasDicomParameters() &&
48 volume_.GetGeometry().DetectSlice(projection_, sliceIndex_, cuttingPlane)); 48 volume_.GetGeometry().DetectSlice(projection_, sliceIndex_,
49 cuttingPlane));
49 } 50 }
50 51
51 52
52 VolumeProjection DicomVolumeImageMPRSlicer::Slice::GetProjection() const 53 VolumeProjection DicomVolumeImageMPRSlicer::Slice::GetProjection() const
53 { 54 {
73 throw Orthanc::OrthancException(Orthanc::ErrorCode_NullPointer, 74 throw Orthanc::OrthancException(Orthanc::ErrorCode_NullPointer,
74 "A style configurator is mandatory for textures"); 75 "A style configurator is mandatory for textures");
75 } 76 }
76 77
77 std::auto_ptr<TextureBaseSceneLayer> texture; 78 std::auto_ptr<TextureBaseSceneLayer> texture;
78 79
79 { 80 {
80 const DicomInstanceParameters& parameters = volume_.GetDicomParameters(); 81 const DicomInstanceParameters& parameters = volume_.GetDicomParameters();
81 ImageBuffer3D::SliceReader reader(volume_.GetPixelData(), projection_, sliceIndex_); 82 ImageBuffer3D::SliceReader reader(volume_.GetPixelData(), projection_, sliceIndex_);
82 texture.reset(dynamic_cast<TextureBaseSceneLayer*> 83 texture.reset(dynamic_cast<TextureBaseSceneLayer*>
83 (configurator->CreateTextureFromDicom(reader.GetAccessor(), parameters))); 84 (configurator->CreateTextureFromDicom(reader.GetAccessor(), parameters)));