From: apo Date: Wed, 28 Mar 2007 07:12:46 +0000 (+0000) Subject: To introduce caching for mapping ids initialization X-Git-Tag: V3_2_6pre3 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=c093563b96c9ba9005c0f85a0f9f15a551799b30;p=modules%2Fvisu.git To introduce caching for mapping ids initialization (In context of fix for Bug NPAL15278 - "EDF 347 : ScalarMaponDeformedShape") --- diff --git a/src/CONVERTOR/VISU_Convertor_impl.cxx b/src/CONVERTOR/VISU_Convertor_impl.cxx index 242e03f3..aa189889 100644 --- a/src/CONVERTOR/VISU_Convertor_impl.cxx +++ b/src/CONVERTOR/VISU_Convertor_impl.cxx @@ -1338,38 +1338,6 @@ namespace int aNbTuples = theField->myDataSize/theField->myNbComp; std::string aFieldName = GenerateFieldName(theField,theValForTime); - { - PIDMapperFilter anIDMapperFilter = theValForTime->myIDMapperFilter; - VISU::TVTKOutput* anOutput = anIDMapperFilter->GetVTKOutput(); - anOutput->Update(); - { - int aNbTuples = anOutput->GetNumberOfCells(); - vtkIntArray *aDataArray = vtkIntArray::New(); - aDataArray->SetName("VISU_CELLS_MAPPER"); - aDataArray->SetNumberOfComponents(1); - aDataArray->SetNumberOfTuples(aNbTuples); - for(int aTupleId = 0; aTupleId < aNbTuples; aTupleId++){ - int anObjID = anIDMapperFilter->GetElemObjID(aTupleId); - aDataArray->SetValue(aTupleId, anObjID); - } - theSource->GetCellData()->AddArray(aDataArray); - aDataArray->Delete(); - } - { - int aNbTuples = anOutput->GetNumberOfPoints(); - vtkIntArray *aDataArray = vtkIntArray::New(); - aDataArray->SetName("VISU_POINTS_MAPPER"); - aDataArray->SetNumberOfComponents(1); - aDataArray->SetNumberOfTuples(aNbTuples); - for(int aTupleId = 0; aTupleId < aNbTuples; aTupleId++){ - int anObjID = anIDMapperFilter->GetNodeObjID(aTupleId); - aDataArray->SetValue(aTupleId, anObjID); - } - theSource->GetPointData()->AddArray(aDataArray); - aDataArray->Delete(); - } - } - vtkDataSetAttributes* aDataSetAttributes; switch(theEntity){ case VISU::NODE_ENTITY :