switch (aType) {
case 0:
{
- vtkFloatingPointType* aCoord = anVISUActor->GetNodeCoord(anID);
int aVTKID = anVISUActor->GetNodeVTKID(anID);
- myXValLbl->setText( QString::number( aCoord[0] ) );
- myYValLbl->setText( QString::number( aCoord[1] ) );
- myZValLbl->setText( QString::number( aCoord[2] ) );
- myIDValLbl->setText( QString::number(anID) );
- myScalarValLbl->setText(getValue(aPntData, aVTKID));
- myVectorValLbl->setText(getVector(aPntData, aVTKID));
-
- const VISU::PIDMapper& aMapper = aPrs3d->GetPipeLine()->GetIDMapper();
- VISU::TStructuredId aStructuredId = aMapper->GetIndexesOfNode(anID);
- myKValLbl->setText( GetNumber( aStructuredId, 2 ) );
- myJValLbl->setText( GetNumber( aStructuredId, 1 ) );
- myIValLbl->setText( GetNumber( aStructuredId, 0 ) );
- }
+ if(aVTKID >= 0){
+ vtkFloatingPointType* aCoord = anVISUActor->GetNodeCoord(anID);
+ myXValLbl->setText( QString::number( aCoord[0] ) );
+ myYValLbl->setText( QString::number( aCoord[1] ) );
+ myZValLbl->setText( QString::number( aCoord[2] ) );
+ myIDValLbl->setText( QString::number(anID) );
+ myScalarValLbl->setText(getValue(aPntData, aVTKID));
+ myVectorValLbl->setText(getVector(aPntData, aVTKID));
+
+ const VISU::PIDMapper& aMapper = aPrs3d->GetPipeLine()->GetIDMapper();
+ VISU::TStructuredId aStructuredId = aMapper->GetIndexesOfNode(anID);
+ myKValLbl->setText( GetNumber( aStructuredId, 2 ) );
+ myJValLbl->setText( GetNumber( aStructuredId, 1 ) );
+ myIValLbl->setText( GetNumber( aStructuredId, 0 ) );
+ }
+ }
break;
case 1:
{