Commit 4ac18969 authored by Rusty Blue's avatar Rusty Blue
Browse files

BUG: FillOutputPortInformation wasn't implemented...

parent 24b0f2aa
......@@ -23,7 +23,7 @@
#include "vtkInformation.h"
#include "vtkStreamingDemandDrivenPipeline.h"
vtkCxxRevisionMacro(vtkXMLPImageDataReader, "1.5");
vtkCxxRevisionMacro(vtkXMLPImageDataReader, "1.6");
vtkStandardNewMacro(vtkXMLPImageDataReader);
//----------------------------------------------------------------------------
......@@ -156,3 +156,13 @@ vtkXMLDataReader* vtkXMLPImageDataReader::CreatePieceReader()
{
return vtkXMLImageDataReader::New();
}
//----------------------------------------------------------------------------
int vtkXMLPImageDataReader::FillOutputPortInformation(int, vtkInformation* info)
{
info->Set(vtkDataObject::DATA_TYPE_NAME(), "vtkImageData");
return 1;
}
......@@ -58,6 +58,7 @@ protected:
int ReadPrimaryElement(vtkXMLDataElement* ePrimary);
void SetupOutputInformation(vtkInformation *outInfo);
vtkXMLDataReader* CreatePieceReader();
virtual int FillOutputPortInformation(int, vtkInformation*);
private:
vtkXMLPImageDataReader(const vtkXMLPImageDataReader&); // Not implemented.
......
......@@ -19,9 +19,10 @@
#include "vtkPolyData.h"
#include "vtkUnsignedCharArray.h"
#include "vtkCellArray.h"
#include "vtkInformation.h"
#include "vtkStreamingDemandDrivenPipeline.h"
vtkCxxRevisionMacro(vtkXMLPPolyDataReader, "1.5");
vtkCxxRevisionMacro(vtkXMLPPolyDataReader, "1.6");
vtkStandardNewMacro(vtkXMLPPolyDataReader);
//----------------------------------------------------------------------------
......@@ -278,3 +279,12 @@ vtkXMLDataReader* vtkXMLPPolyDataReader::CreatePieceReader()
{
return vtkXMLPolyDataReader::New();
}
//----------------------------------------------------------------------------
int vtkXMLPPolyDataReader::FillOutputPortInformation(int,
vtkInformation* info)
{
info->Set(vtkDataObject::DATA_TYPE_NAME(), "vtkPolyData");
return 1;
}
......@@ -62,6 +62,7 @@ protected:
void CopyArrayForCells(vtkDataArray* inArray, vtkDataArray* outArray);
vtkXMLDataReader* CreatePieceReader();
virtual int FillOutputPortInformation(int, vtkInformation*);
// The size of the UpdatePiece.
vtkIdType TotalNumberOfVerts;
......
......@@ -19,9 +19,10 @@
#include "vtkRectilinearGrid.h"
#include "vtkXMLDataElement.h"
#include "vtkXMLRectilinearGridReader.h"
#include "vtkInformation.h"
#include "vtkStreamingDemandDrivenPipeline.h"
vtkCxxRevisionMacro(vtkXMLPRectilinearGridReader, "1.9");
vtkCxxRevisionMacro(vtkXMLPRectilinearGridReader, "1.10");
vtkStandardNewMacro(vtkXMLPRectilinearGridReader);
//----------------------------------------------------------------------------
......@@ -216,3 +217,12 @@ void vtkXMLPRectilinearGridReader::CopySubCoordinates(int* inBounds,
inArray->GetVoidPointer(sourceStartIndex*components),
length*tupleSize);
}
int vtkXMLPRectilinearGridReader::FillOutputPortInformation(int, vtkInformation *info)
{
info->Set(vtkDataObject::DATA_TYPE_NAME(), "vtkRectilinearGrid");
return 1;
}
......@@ -58,6 +58,7 @@ protected:
vtkXMLDataReader* CreatePieceReader();
void CopySubCoordinates(int* inBounds, int* outBounds, int* subBounds,
vtkDataArray* inArray, vtkDataArray* outArray);
virtual int FillOutputPortInformation(int, vtkInformation*);
// The PCoordinates element with coordinate information.
vtkXMLDataElement* PCoordinatesElement;
......
......@@ -19,9 +19,10 @@
#include "vtkStructuredGrid.h"
#include "vtkXMLDataElement.h"
#include "vtkXMLStructuredGridReader.h"
#include "vtkInformation.h"
#include "vtkStreamingDemandDrivenPipeline.h"
vtkCxxRevisionMacro(vtkXMLPStructuredGridReader, "1.8");
vtkCxxRevisionMacro(vtkXMLPStructuredGridReader, "1.9");
vtkStandardNewMacro(vtkXMLPStructuredGridReader);
//----------------------------------------------------------------------------
......@@ -172,3 +173,11 @@ vtkXMLDataReader* vtkXMLPStructuredGridReader::CreatePieceReader()
{
return vtkXMLStructuredGridReader::New();
}
int vtkXMLPStructuredGridReader::FillOutputPortInformation(int, vtkInformation *info)
{
info->Set(vtkDataObject::DATA_TYPE_NAME(), "vtkStructuredGrid");
return 1;
}
......@@ -59,6 +59,7 @@ protected:
void SetupOutputData();
int ReadPieceData();
vtkXMLDataReader* CreatePieceReader();
virtual int FillOutputPortInformation(int, vtkInformation*);
// The PPoints element with point information.
vtkXMLDataElement* PPointsElement;
......
......@@ -21,9 +21,10 @@
#include "vtkUnstructuredGrid.h"
#include "vtkXMLDataElement.h"
#include "vtkXMLUnstructuredGridReader.h"
#include "vtkInformation.h"
#include "vtkStreamingDemandDrivenPipeline.h"
vtkCxxRevisionMacro(vtkXMLPUnstructuredGridReader, "1.7");
vtkCxxRevisionMacro(vtkXMLPUnstructuredGridReader, "1.8");
vtkStandardNewMacro(vtkXMLPUnstructuredGridReader);
//----------------------------------------------------------------------------
......@@ -201,3 +202,10 @@ vtkXMLDataReader* vtkXMLPUnstructuredGridReader::CreatePieceReader()
{
return vtkXMLUnstructuredGridReader::New();
}
int vtkXMLPUnstructuredGridReader::FillOutputPortInformation(int, vtkInformation *info)
{
info->Set(vtkDataObject::DATA_TYPE_NAME(), "vtkUnstructuredGrid");
return 1;
}
......@@ -57,6 +57,7 @@ protected:
void CopyArrayForCells(vtkDataArray* inArray, vtkDataArray* outArray);
vtkXMLDataReader* CreatePieceReader();
virtual int FillOutputPortInformation(int, vtkInformation*);
// The index of the cell in the output where the current piece
// begins.
......
Markdown is supported
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