X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FmaracasVisuLib%2Fsrc%2Finterface%2FwxWindows%2Fwidgets%2FmanualContour%2FmanualViewContour.cpp;h=e279664f794d5b9b7fe8e2b620069c30d9b0593a;hb=ca35b13e046343c8b50cbd6b833828b06c9d1608;hp=32ef7e736c9ba79a7d34e59b06b86d37e5162066;hpb=25e3adf442d6a8d357d52410267445c54426c525;p=creaMaracasVisu.git diff --git a/lib/maracasVisuLib/src/interface/wxWindows/widgets/manualContour/manualViewContour.cpp b/lib/maracasVisuLib/src/interface/wxWindows/widgets/manualContour/manualViewContour.cpp index 32ef7e7..e279664 100644 --- a/lib/maracasVisuLib/src/interface/wxWindows/widgets/manualContour/manualViewContour.cpp +++ b/lib/maracasVisuLib/src/interface/wxWindows/widgets/manualContour/manualViewContour.cpp @@ -186,7 +186,6 @@ void manualViewContour::RefreshContour() // virtual // ---------------------------------------------------------------------------- void manualViewContour::RefreshText() // virtual { - if ((_textActor!=NULL) && ( _textActor->GetProperty()->GetOpacity()!=0 )){ int size = GetNumberOfPoints(); char text[50]; @@ -195,13 +194,13 @@ void manualViewContour::RefreshText() // virtual char resultText2[250]; strcpy(resultText2, "000"); double spcP[3]; - spcP[0]=1; - spcP[1]=1; - spcP[2]=1; + spcP[0] = 1; + spcP[1] = 1; + spcP[2] = 1; //CMRU 19-08-09 ---------------------------------- - std::string label; - label = _manContModel->GetLabel(); + std::string label = _manContModel->GetLabel(); + std::string label2 = " (" + _manContModel->GetLabel2() + "z) "; // ------------------------------------ if (size==2) @@ -257,9 +256,9 @@ void manualViewContour::RefreshText() // virtual gcvt ( this->_manContModel->GetPathSize( _spc ), 5, text ); strcat(resultText2,text); strcat(resultText2,"u"); - } //CMRU 19-08-09 ---------------------------------- + strcat(resultText,label2.c_str()); strcat(resultText,label.c_str()); //------------------------------------------------ } @@ -267,32 +266,28 @@ void manualViewContour::RefreshText() // virtual _textActor->SetInput(resultText); _textActor2->SetInput(resultText2); - if (size>=1){ - + if (size>=1) + { int i; for (i=0; iGetPosibleSelected()==true) { _id_viewPoint_for_text = i; - } - } - + } // if + } // for if (_id_viewPoint_for_text>=size) { - _id_viewPoint_for_text=0; - } - + _id_viewPoint_for_text = 0; + }// if double px = _manContModel->GetManualPoint(_id_viewPoint_for_text)->GetX(); double py = _manContModel->GetManualPoint(_id_viewPoint_for_text)->GetY(); - //EED 27 sep 2006 - px=px*_spc[0]; - py=py*_spc[1]; - + px = px*_spc[0]; + py = py*_spc[1]; _textActor->SetPosition(px+GetRange()+1,py); _textActor2->SetPosition(px+GetRange()+1,py+2); - } + } // if size } }