From 0a950237cfc2a381c1aa4f55b3200df29d3e5c33 Mon Sep 17 00:00:00 2001 From: Juan Prieto Date: Wed, 2 Dec 2009 16:27:37 +0000 Subject: [PATCH] open dialog y ya funciona el NV --- .../wxWindows/widgets/OpenLoadImageDialog.cxx | 8 ++- .../widgets/pPlotter/LogicalColorBar.cxx | 60 ++++++++++--------- .../widgets/wxVtkMPR3DViewCntrlPanel.cxx | 7 ++- 3 files changed, 41 insertions(+), 34 deletions(-) diff --git a/lib/maracasVisuLib/src/interface/wxWindows/widgets/OpenLoadImageDialog.cxx b/lib/maracasVisuLib/src/interface/wxWindows/widgets/OpenLoadImageDialog.cxx index 23d080f..f2a0930 100644 --- a/lib/maracasVisuLib/src/interface/wxWindows/widgets/OpenLoadImageDialog.cxx +++ b/lib/maracasVisuLib/src/interface/wxWindows/widgets/OpenLoadImageDialog.cxx @@ -20,6 +20,7 @@ OpenLoadImageDialog::OpenLoadImageDialog() getImageDataDialog = (GETIMAGEDATADIALOG)GetProcAddress(gimmickhandle, "getImageDataDialog"); + std::cout<<"imagehandle "<GetOutput(); } } + + + } //------------------------------------------------------------------- diff --git a/lib/maracasVisuLib/src/interface/wxWindows/widgets/pPlotter/LogicalColorBar.cxx b/lib/maracasVisuLib/src/interface/wxWindows/widgets/pPlotter/LogicalColorBar.cxx index d94b756..feaf8f7 100644 --- a/lib/maracasVisuLib/src/interface/wxWindows/widgets/pPlotter/LogicalColorBar.cxx +++ b/lib/maracasVisuLib/src/interface/wxWindows/widgets/pPlotter/LogicalColorBar.cxx @@ -112,39 +112,43 @@ { logicColorPoints.push_back(newColorPoint); addedPoint = true; - } - for ( iter = logicColorPoints.begin(); i<=maxIndex && !addedPoint; iter++ ) - { - nextIter = iter; - int before = (*iter)->getRealX() ; - if(before>xRealValue && i==0) - { - //Is the first point - logicColorPoints.insert( iter, newColorPoint ); - addedPoint =true; - lastAddedPoint = newColorPoint; - } - else if(beforegetRealX(); - if( before < xRealValue && after> xRealValue) + nextIter = iter; + int before = (*iter)->getRealX() ; + if(before>xRealValue && i==0) + { + //Is the first point + logicColorPoints.insert( iter, newColorPoint ); + addedPoint =true; + lastAddedPoint = newColorPoint; + } + else if(beforegetRealX(); + if( before < xRealValue && after> xRealValue) + { + logicColorPoints.insert( nextIter, newColorPoint ); + addedPoint =true; + lastAddedPoint = newColorPoint; + } + } + //std::cout<<"JCPaddColorPoint iterator "<<*iter<erasePointsTransferenceFunction(); + hDlg->erasePointsTransferenceFunction(); int ctfSize=ctfunVectorRed->size(); if(ctfSize>0) { @@ -257,9 +257,10 @@ void wxVtkMPR3DViewCntrlPanel::OnEditColorTable(wxCommandEvent& event) double gr = (*ctfunVectorPoint)[i]; double r = (*ctfunVectorRed)[i]; double g = (*ctfunVectorGreen)[i]; - double b = (*ctfunVectorBlue)[i]; - + double b = (*ctfunVectorBlue)[i]; + hDlg->addColorPoint(gr,(int)(r*255),(int)(g*255),(int)(b*255)); + i++; } } -- 2.45.1