void
ForEachInput(vtkAppendFilter* theFilter, TFunctor& theFunctor)
{
- for(vtkIdType anInputId = 0; anInputId < theFilter->GetNumberOfInputPorts(); anInputId++){
+ for(vtkIdType anInputId = 0; anInputId < theFilter->GetNumberOfInputConnections(0); anInputId++){
if(vtkDataSet *aDataSet = theFilter->GetInput(anInputId)){
if(aDataSet->GetNumberOfPoints() <= 0 && aDataSet->GetNumberOfCells() <= 0){
continue; //no input, just skip
vtkUnstructuredGrid *anOutput = this->GetOutput();
if(IsMergingInputs()){
- TCellIdMerger aFunctor(this->GetNumberOfInputPorts());
+ TCellIdMerger aFunctor(this->GetNumberOfInputConnections(0));
ForEachInput<TCellIdMerger>(this, aFunctor);
vtkDataSetAttributes::FieldList& aFieldList = aFunctor.myFieldList;
}
anIdList->Delete();
}else{
- TCellCounter aFunctor(this->GetNumberOfInputPorts());
+ TCellCounter aFunctor(this->GetNumberOfInputConnections(0));
ForEachInput<TCellCounter>(this, aFunctor);
vtkDataSetAttributes::FieldList& aFieldList = aFunctor.myFieldList;
// 2.cells
vtkIdList *anIdList = vtkIdList::New();
anIdList->Allocate(VTK_CELL_SIZE);
- for(vtkIdType anInputId = 0; anInputId < this->GetNumberOfInputPorts(); anInputId++) {
+ for(vtkIdType anInputId = 0; anInputId < this->GetNumberOfInputConnections(0); anInputId++) {
if(vtkDataSet *aDataSet = this->GetInput(anInputId)){
vtkIdType aNbCells = aDataSet->GetNumberOfCells();
vtkCellData *aCellData = aDataSet->GetCellData();