return aDataSetAttributes->GetArray("VISU_FIELD") != NULL;
}
+ //---------------------------------------------------------------
+ bool
+ IsElnoData(vtkDataSet* theDataSet)
+ {
+ theDataSet->Update();
+
+ if ( vtkDataSetAttributes *aDataSetAttributes = theDataSet->GetCellData() )
+ if ( aDataSetAttributes->GetArray( "ELNO_FIELD" ) != NULL )
+ return true;
+
+ if ( vtkDataSetAttributes *aDataSetAttributes = theDataSet->GetPointData() )
+ if ( aDataSetAttributes->GetArray( "ELNO_POINT_COORDS" ) != NULL )
+ return true;
+
+ return false;
+ }
+
+
//---------------------------------------------------------------
bool
IsDataOnElnoCells(vtkDataSet* theDataSet)
bool
IsDataOnCells(vtkDataSet* theDataSet);
+ //---------------------------------------------------------------
+ VISU_CONVERTOR_EXPORT
+ bool
+ IsElnoData(vtkDataSet* theDataSet);
+
+
//---------------------------------------------------------------
VISU_CONVERTOR_EXPORT
bool
#include "SVTK_ViewWindow.h"
#include "SVTK_Selector.h"
+#include "VISU_ConvertorUtils.hxx"
+
#include "utilities.h"
// OCCT Includes
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));
+ if ( !VISU::IsElnoData( aDataSet ) ) {
+ myScalarValLbl->setText( getValue( aPntData, aVTKID ) );
+ myVectorValLbl->setText( getVector( aPntData, aVTKID ) );
+ } else {
+ myScalarValLbl->setText( "< ELNO data >" );
+ myVectorValLbl->setText( "< ELNO data >" );
+ }
const VISU::PIDMapper& aMapper = aPrs3d->GetPipeLine()->GetIDMapper();
VISU::TStructuredId aStructuredId = aMapper->GetIndexesOfNode(anID);