#include "vtkStreamingDemandDrivenPipeline.h"
#include "vtkUnstructuredGrid.h"
-#include "vtkPolyData.h"
+#include "vtkDataSet.h"
#include "vtkMultiBlockDataSet.h"
#include "vtkInformationStringKey.h"
{
if(idx==0)
this->Internal->setFieldForReal(name);
- vtkPolyDataAlgorithm::SetInputArrayToProcess(idx,port,connection,ff,name);
+ vtkDataSetAlgorithm::SetInputArrayToProcess(idx,port,connection,ff,name);
}
double GetOptimalRatioFrom(vtkUnstructuredGrid *dataset, vtkDoubleArray *array)
return maxGeoDelta/maxDispDelta;
}
+int vtkSimpleMode::FillOutputPortInformation( int vtkNotUsed(port), vtkInformation* info)
+{
+ info->Set(vtkDataObject::DATA_TYPE_NAME(), "vtkPolyData");
+ return 1;
+}
+
int vtkSimpleMode::RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
{
//std::cerr << "########################################## vtkSimpleMode::RequestInformation ##########################################" << std::endl;
#ifndef vtkSimpleMode_h__
#define vtkSimpleMode_h__
-#include "vtkPolyDataAlgorithm.h"
+#include "vtkDataSetAlgorithm.h"
class vtkMutableDirectedGraph;
-class VTK_EXPORT vtkSimpleMode : public vtkPolyDataAlgorithm
+class VTK_EXPORT vtkSimpleMode : public vtkDataSetAlgorithm
{
public:
static vtkSimpleMode* New();
- vtkTypeMacro(vtkSimpleMode, vtkPolyDataAlgorithm)
+ vtkTypeMacro(vtkSimpleMode, vtkDataSetAlgorithm)
void PrintSelf(ostream& os, vtkIndent indent);
void SetInputArrayToProcess(int idx, int port, int connection, int fieldAssociation, const char *name);
vtkGetMacro(Factor,double);
protected:
vtkSimpleMode();
~vtkSimpleMode();
-
+ int FillOutputPortInformation( int vtkNotUsed(port), vtkInformation* info);
int RequestInformation(vtkInformation *request,
vtkInformationVector **inputVector, vtkInformationVector *outputVector);