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 :