From b3422b671e0d78670615494b45e3d040fb961366 Mon Sep 17 00:00:00 2001 From: apo Date: Fri, 25 May 2007 14:40:50 +0000 Subject: [PATCH] To fix retriving data on points of a selected cell --- src/VISUGUI/VisuGUI_Selection.cxx | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/VISUGUI/VisuGUI_Selection.cxx b/src/VISUGUI/VisuGUI_Selection.cxx index 1df05ba6..7d2b0091 100644 --- a/src/VISUGUI/VisuGUI_Selection.cxx +++ b/src/VISUGUI/VisuGUI_Selection.cxx @@ -508,9 +508,9 @@ void VisuGUI_SelectionDlg::onSelectionEvent() { const VISU::PIDMapper& aMapper = aPrs3d->GetPipeLine()->GetIDMapper(); for (int i = 0; anIter != aPointCoordsMap.end() && i < myListPoints->numRows(); anIter++, i++) { myListPoints->verticalHeader()->setLabel(i, QString::number( i )); - int id = anIter->first; + vtkIdType aNodeObjId = anIter->first; //ENK: 23.11.2006 - PAL13176 - EDF228 VISU : Enhancement of structured datas processing - VISU::TIdTypeVector aVec = aMapper->GetIndexesOfNode(id); + VISU::TIdTypeVector aVec = aMapper->GetIndexesOfNode(aNodeObjId); QString aI,aJ,aK; aI = "-"; aJ = "-"; @@ -526,7 +526,7 @@ void VisuGUI_SelectionDlg::onSelectionEvent() { } //ENK: 23.11.2006 - myListPoints->setText(i, 0, QString::number( id )); + myListPoints->setText(i, 0, QString::number( aNodeObjId )); const TCoordArray& aCoordArray = anIter->second; myListPoints->setText(i, 1, QString::number( aCoordArray[0] )); myListPoints->setText(i, 2, QString::number( aCoordArray[1] )); @@ -534,8 +534,10 @@ void VisuGUI_SelectionDlg::onSelectionEvent() { myListPoints->setText(i, 4, aI);//ENK: 23.11.2006 - PAL13176 myListPoints->setText(i, 5, aJ);//ENK: 23.11.2006 - PAL13176 myListPoints->setText(i, 6, aK);//ENK: 23.11.2006 - PAL13176 - myListPoints->setText(i, 7, getValue(aPntData, id)); - myListPoints->setText(i, 8, getVector(aPntData, id)); + + vtkIdType aNodeVTKId = anVISUActor->GetNodeVTKID(aNodeObjId); + myListPoints->setText(i, 7, getValue(aPntData, aNodeVTKId)); + myListPoints->setText(i, 8, getVector(aPntData, aNodeVTKId)); } for(int aColumnId = 0; aColumnId < 9; aColumnId++) myListPoints->adjustColumn(aColumnId); -- 2.39.2