Lines 235-242
Link Here
|
235 |
{ |
235 |
{ |
236 |
VISU::TTimerLog aTimerLog(MYDEBUG,"VISU_AppendFilter::Execute"); |
236 |
VISU::TTimerLog aTimerLog(MYDEBUG,"VISU_AppendFilter::Execute"); |
237 |
vtkUnstructuredGrid *anOutput = this->GetOutput(); |
237 |
vtkUnstructuredGrid *anOutput = this->GetOutput(); |
238 |
if(this->NumberOfInputs == 1){ |
238 |
if(this->InputList->GetNumberOfItems() == 1){ |
239 |
anOutput->ShallowCopy(this->Inputs[0]); |
239 |
anOutput->ShallowCopy(this->GetInput(0)); |
240 |
return; |
240 |
return; |
241 |
} |
241 |
} |
242 |
|
242 |
|
Lines 247-254
Link Here
|
247 |
return; |
247 |
return; |
248 |
|
248 |
|
249 |
if(IsMergingInputs()){ |
249 |
if(IsMergingInputs()){ |
250 |
TCellIdMerger aFunctor(this->NumberOfInputs); |
250 |
TCellIdMerger aFunctor(this->InputList->GetNumberOfItems()); |
251 |
ForEachInput<TCellIdMerger>(this->Inputs, this->NumberOfInputs, aFunctor); |
251 |
ForEachInput<TCellIdMerger>((vtkDataObject**)this->InputList, this->InputList->GetNumberOfItems(), aFunctor); |
252 |
|
252 |
|
253 |
vtkDataSetAttributes::FieldList& aFieldList = aFunctor.myFieldList; |
253 |
vtkDataSetAttributes::FieldList& aFieldList = aFunctor.myFieldList; |
254 |
TObject2InputIdMap& anObject2InputIdMap = aFunctor.myObject2InputIdMap; |
254 |
TObject2InputIdMap& anObject2InputIdMap = aFunctor.myObject2InputIdMap; |
Lines 275-281
Link Here
|
275 |
//TObjectId anObjectId = anIter->first; |
275 |
//TObjectId anObjectId = anIter->first; |
276 |
const TInputCellId& anInputCellId = anIter->second; |
276 |
const TInputCellId& anInputCellId = anIter->second; |
277 |
TInputId anInputId = anInputCellId.first; |
277 |
TInputId anInputId = anInputCellId.first; |
278 |
if(vtkDataSet *aDataSet = (vtkDataSet *)(this->Inputs[anInputId])){ |
278 |
if(vtkDataSet *aDataSet = (vtkDataSet *)(this->GetInput(anInputId))){ |
279 |
TCellId aCellId = anInputCellId.second; |
279 |
TCellId aCellId = anInputCellId.second; |
280 |
aDataSet->GetCellPoints(aCellId, anIdList); |
280 |
aDataSet->GetCellPoints(aCellId, anIdList); |
281 |
|
281 |
|
Lines 288-295
Link Here
|
288 |
} |
288 |
} |
289 |
anIdList->Delete(); |
289 |
anIdList->Delete(); |
290 |
}else{ |
290 |
}else{ |
291 |
TCellCounter aFunctor(this->NumberOfInputs); |
291 |
TCellCounter aFunctor(this->InputList->GetNumberOfItems()); |
292 |
ForEachInput<TCellCounter>(this->Inputs, this->NumberOfInputs, aFunctor); |
292 |
ForEachInput<TCellCounter>((vtkDataObject**)this->InputList, this->InputList->GetNumberOfItems(), aFunctor); |
293 |
|
293 |
|
294 |
vtkDataSetAttributes::FieldList& aFieldList = aFunctor.myFieldList; |
294 |
vtkDataSetAttributes::FieldList& aFieldList = aFunctor.myFieldList; |
295 |
vtkIdType aNbCells = aFunctor.GetNbCells(); |
295 |
vtkIdType aNbCells = aFunctor.GetNbCells(); |
Lines 309-316
Link Here
|
309 |
// 2.cells |
309 |
// 2.cells |
310 |
vtkIdList *anIdList = vtkIdList::New(); |
310 |
vtkIdList *anIdList = vtkIdList::New(); |
311 |
anIdList->Allocate(VTK_CELL_SIZE); |
311 |
anIdList->Allocate(VTK_CELL_SIZE); |
312 |
for(vtkIdType anInputId = 0; anInputId < this->NumberOfInputs; anInputId++) { |
312 |
for(vtkIdType anInputId = 0; anInputId < this->InputList->GetNumberOfItems(); anInputId++) { |
313 |
if(vtkDataSet *aDataSet = (vtkDataSet *)(this->Inputs[anInputId])){ |
313 |
if(vtkDataSet *aDataSet = (vtkDataSet *)(this->GetInput(anInputId))){ |
314 |
vtkIdType aNbCells = aDataSet->GetNumberOfCells(); |
314 |
vtkIdType aNbCells = aDataSet->GetNumberOfCells(); |
315 |
vtkCellData *aCellData = aDataSet->GetCellData(); |
315 |
vtkCellData *aCellData = aDataSet->GetCellData(); |
316 |
// copy cell and cell data |
316 |
// copy cell and cell data |