-// Copyright (C) 2014 CEA/DEN, EDF R&D
+// Copyright (C) 2014-2016 CEA/DEN, EDF R&D
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// Initialize and appoint a new name
anOutput->SetNumberOfComponents(theNumComp);
anOutput->SetNumberOfTuples(theNumTuple);
- vtkstd::string aNewName = vtkstd::string(thePrefix) + theDataArray->GetName();
+ std::string aNewName = std::string(thePrefix) + theDataArray->GetName();
anOutput->SetName(aNewName.c_str());
return anOutput;
// Update range of indices of the time steps
this->RangeIndicesTimeSteps[0] = 0;
this->RangeIndicesTimeSteps[1] = this->NumberTimeSteps - 1;
-
+
+ /*
+ * RNV: Temporary commented:
+ * This piece of the code removes all time steps from the output object,
+ * but this leads to the strange side effect in the ParaView: time steps also disappears
+ * from the animation scene of the input (parent) object of this filter.
+ * Seems it is a bug of the ParaView, to be investigated ...
+ *
// The output data of this filter has no time associated with it.
// It is the result of computation difference between two time steps.
// Unset the time steps
// Unset the time range
if(anOutInfo->Has(vtkStreamingDemandDrivenPipeline::TIME_RANGE()))
anOutInfo->Remove(vtkStreamingDemandDrivenPipeline::TIME_RANGE());
-
+ */
return 1;
}
vtkDataSet *anOutput = anInput[0]->NewInstance();
anOutput->CopyStructure(anInput[0]);
- vtkstd::vector<vtkDataArray*> anArrays;
+ std::vector<vtkDataArray*> anArrays;
vtkDataArray *anOutputArray;
// Compute the difference of the the specified point or cell data array
anOutputArray = this->DifferenceDataArray(&anArrays[0], anArrays[0]->GetNumberOfTuples());
// Determine a field association
- if (this->GetInputFieldAssociation() == vtkDataObject::FIELD_ASSOCIATION_POINTS)
+ int aTypeFieldAssociation = this->GetInputFieldAssociation();
+ if (aTypeFieldAssociation == vtkDataObject::FIELD_ASSOCIATION_POINTS)
{
// For point data
anOutput->GetPointData()->AddArray(anOutputArray);
}
- else if (this->GetInputFieldAssociation() == vtkDataObject::FIELD_ASSOCIATION_CELLS)
+ else if (aTypeFieldAssociation == vtkDataObject::FIELD_ASSOCIATION_CELLS)
{
// For cell data
anOutput->GetCellData()->AddArray(anOutputArray);