]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
To fix retriving data on points of a selected cell V4_0 start_porting_to_qt4
authorapo <apo@opencascade.com>
Fri, 25 May 2007 14:40:50 +0000 (14:40 +0000)
committerapo <apo@opencascade.com>
Fri, 25 May 2007 14:40:50 +0000 (14:40 +0000)
src/VISUGUI/VisuGUI_Selection.cxx

index 1df05ba618e067d2519bf4915bde317bb0f86d99..7d2b00919df6aa86830181424036c67f6b4153c2 100644 (file)
@@ -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);