From: apo Date: Thu, 1 Sep 2005 05:03:09 +0000 (+0000) Subject: To introduce ID's mapping X-Git-Tag: BR-D5-38-2003_D2005-12-09~55 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=32cd360695d813840916f257d42b93a8565f9d73;p=modules%2Fvisu.git To introduce ID's mapping --- diff --git a/src/VISUGUI/VisuGUI_Selection.cxx b/src/VISUGUI/VisuGUI_Selection.cxx index 433b6467..b8fa9890 100644 --- a/src/VISUGUI/VisuGUI_Selection.cxx +++ b/src/VISUGUI/VisuGUI_Selection.cxx @@ -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();