X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FmaracasVisuLib%2Fsrc%2Finterface%2FwxWindows%2Fwidgets%2FThresholdImageView%2FLayerImageBase.cxx;h=a283606543dea92ca61c0af924dcf5c58c85455f;hb=313783230a81f37f703080f75dde71abb5497c43;hp=15ec30669619dfd9f52651a7c45b3a0f6c699771;hpb=b61b15415d19c665de225637c9136c634a5831c5;p=creaMaracasVisu.git diff --git a/lib/maracasVisuLib/src/interface/wxWindows/widgets/ThresholdImageView/LayerImageBase.cxx b/lib/maracasVisuLib/src/interface/wxWindows/widgets/ThresholdImageView/LayerImageBase.cxx index 15ec306..a283606 100644 --- a/lib/maracasVisuLib/src/interface/wxWindows/widgets/ThresholdImageView/LayerImageBase.cxx +++ b/lib/maracasVisuLib/src/interface/wxWindows/widgets/ThresholdImageView/LayerImageBase.cxx @@ -258,8 +258,11 @@ void LayerImageBase::CleanXYZ(double &x, double &y, double &z) //---------------------------------------------------------------------------- void LayerImageBase::onThreshold() { +printf("EED LayerImageBase::onThreshold Start \n"); + if ((_image!=NULL) && (_baseView!=NULL)) { +printf("EED LayerImageBase::onThreshold 1 \n"); double spc[3]; GetImage()-> GetSpacing(spc); double x=GetX(); @@ -282,6 +285,7 @@ void LayerImageBase::onThreshold() if (!GetActorPresent()) { +printf("EED LayerImageBase::onThreshold 2 \n"); if (_thresholdTable==NULL) { //Lookup Table @@ -323,6 +327,8 @@ void LayerImageBase::onThreshold() _imageReslicer->SetInput( GetImage() ); _imageReslicer->SetInformationInput( GetImage() ); +printf("EED LayerImageBase::onThreshold directionViewer=%d\n", directionViewer ); + if (directionViewer==0) { _imageReslicer->SetResliceAxesDirectionCosines( 0,0,1, 0,1,0, -1,0,0 );