Commit ffe99867 authored by Berk Geveci's avatar Berk Geveci
Browse files

BUG: Streamtracer should use a composite data pipeline since it works with composite data

parent f3d6a5ab
......@@ -40,7 +40,7 @@ PURPOSE. See the above copyright notice for more information.
#include "vtkRungeKutta45.h"
#include "vtkSmartPointer.h"
vtkCxxRevisionMacro(vtkStreamTracer, "1.44");
vtkCxxRevisionMacro(vtkStreamTracer, "1.45");
vtkStandardNewMacro(vtkStreamTracer);
vtkCxxSetObjectMacro(vtkStreamTracer,Integrator,vtkInitialValueProblemSolver);
vtkCxxSetObjectMacro(vtkStreamTracer,InterpolatorPrototype,vtkInterpolatedVelocityField);
......@@ -1415,3 +1415,9 @@ void vtkStreamTracer::PrintSelf(ostream& os, vtkIndent indent)
<< (this->ComputeVorticity ? " On" : " Off") << endl;
os << indent << "Rotation scale: " << this->RotationScale << endl;
}
vtkExecutive* vtkStreamTracer::CreateDefaultExecutive()
{
return vtkCompositeDataPipeline::New();
}
......@@ -70,6 +70,7 @@
class vtkCompositeDataSet;
class vtkDataArray;
class vtkDoubleArray;
class vtkExecutive;
class vtkGenericCell;
class vtkIdList;
class vtkIntArray;
......@@ -292,6 +293,9 @@ protected:
vtkStreamTracer();
~vtkStreamTracer();
// Create a default executive.
virtual vtkExecutive* CreateDefaultExecutive();
// hide the superclass' AddInput() from the user and the compiler
void AddInput(vtkDataObject *)
{ vtkErrorMacro( << "AddInput() must be called with a vtkDataSet not a vtkDataObject."); };
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment