]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
To introduce ID's mapping
authorapo <apo@opencascade.com>
Thu, 1 Sep 2005 05:03:09 +0000 (05:03 +0000)
committerapo <apo@opencascade.com>
Thu, 1 Sep 2005 05:03:09 +0000 (05:03 +0000)
src/VISUGUI/VisuGUI_Selection.cxx

index 433b64673207b693712e618506d3698e472d3397..b8fa98909ef0be69470f00326c428c90f77afd92 100644 (file)
@@ -432,15 +432,16 @@ void VisuGUI_SelectionDlg::onSelectionEvent() {
         case 1:
           {
             vtkCellData* aData = aDataSet->GetCellData();
-            vtkCell* aCell = aDataSet->GetCell(aID);
+            vtkCell* aCell = anVISUActor->GetElemCell(aID);
+           int aVTKID = anVISUActor->GetNodeVTKID(aID);
             if (aCell != NULL) {
               int aNbOfPoints = aCell->GetNumberOfPoints();
-              if (aNbOfPoints <=1 ) { // Cell is point
+              if ( aNbOfPoints <= 1 ) { // Cell is point
                 clearFields();
               } else {
                 myCellIDValLbl->setText( QString::number(aID) );
-                myCellScalarValLbl->setText(getValue(aData, aID));
-                myCellVectorValLbl->setText(getVector(aData, aID));
+                myCellScalarValLbl->setText(getValue(aData, aVTKID));
+                myCellVectorValLbl->setText(getVector(aData, aVTKID));
 
                 float* aCoord;
                 vtkIdList *aPointList = aCell->GetPointIds();