Commit 177299c6 authored by Berk Geveci's avatar Berk Geveci

Added GetOutput(int i) to all XML readers (used by ParaView).

parent a7bd0e12
......@@ -23,7 +23,7 @@
#include "vtkPointData.h"
#include "vtkXMLDataElement.h"
vtkCxxRevisionMacro(vtkXMLImageDataReader, "1.2");
vtkCxxRevisionMacro(vtkXMLImageDataReader, "1.3");
vtkStandardNewMacro(vtkXMLImageDataReader);
//----------------------------------------------------------------------------
......@@ -64,6 +64,13 @@ vtkImageData* vtkXMLImageDataReader::GetOutput()
return static_cast<vtkImageData*>(this->Outputs[0]);
}
//----------------------------------------------------------------------------
vtkImageData* vtkXMLImageDataReader::GetOutput(int idx)
{
return static_cast<vtkImageData*>(this->Superclass::GetOutput(idx));
}
//----------------------------------------------------------------------------
const char* vtkXMLImageDataReader::GetDataSetName()
{
......
......@@ -44,6 +44,7 @@ public:
// Get/Set the reader's output.
void SetOutput(vtkImageData *output);
vtkImageData *GetOutput();
vtkImageData *GetOutput(int idx);
protected:
vtkXMLImageDataReader();
......
......@@ -23,7 +23,7 @@
#include "vtkUnsignedCharArray.h"
#include "vtkCellArray.h"
vtkCxxRevisionMacro(vtkXMLPolyDataReader, "1.1");
vtkCxxRevisionMacro(vtkXMLPolyDataReader, "1.2");
vtkStandardNewMacro(vtkXMLPolyDataReader);
//----------------------------------------------------------------------------
......@@ -74,6 +74,12 @@ vtkPolyData* vtkXMLPolyDataReader::GetOutput()
return static_cast<vtkPolyData*>(this->Outputs[0]);
}
//----------------------------------------------------------------------------
vtkPolyData* vtkXMLPolyDataReader::GetOutput(int idx)
{
return static_cast<vtkPolyData*>(this->Superclass::GetOutput(idx));
}
//----------------------------------------------------------------------------
vtkIdType vtkXMLPolyDataReader::GetNumberOfVerts()
{
......
......@@ -44,6 +44,7 @@ public:
// Get/Set the reader's output.
void SetOutput(vtkPolyData *output);
vtkPolyData *GetOutput();
vtkPolyData *GetOutput(int idx);
// Description:
// Get the number of verts/lines/strips/polys in the output.
......
......@@ -23,7 +23,7 @@
#include "vtkXMLDataElement.h"
#include "vtkXMLDataParser.h"
vtkCxxRevisionMacro(vtkXMLRectilinearGridReader, "1.6");
vtkCxxRevisionMacro(vtkXMLRectilinearGridReader, "1.7");
vtkStandardNewMacro(vtkXMLRectilinearGridReader);
//----------------------------------------------------------------------------
......@@ -66,6 +66,12 @@ vtkRectilinearGrid* vtkXMLRectilinearGridReader::GetOutput()
return static_cast<vtkRectilinearGrid*>(this->Outputs[0]);
}
//----------------------------------------------------------------------------
vtkRectilinearGrid* vtkXMLRectilinearGridReader::GetOutput(int idx)
{
return static_cast<vtkRectilinearGrid*>(this->Superclass::GetOutput(idx));
}
//----------------------------------------------------------------------------
const char* vtkXMLRectilinearGridReader::GetDataSetName()
{
......
......@@ -44,6 +44,7 @@ public:
// Get/Set the reader's output.
void SetOutput(vtkRectilinearGrid *output);
vtkRectilinearGrid *GetOutput();
vtkRectilinearGrid *GetOutput(int idx);
protected:
vtkXMLRectilinearGridReader();
......
......@@ -22,7 +22,7 @@
#include "vtkXMLDataElement.h"
#include "vtkXMLDataParser.h"
vtkCxxRevisionMacro(vtkXMLStructuredGridReader, "1.5");
vtkCxxRevisionMacro(vtkXMLStructuredGridReader, "1.6");
vtkStandardNewMacro(vtkXMLStructuredGridReader);
//----------------------------------------------------------------------------
......@@ -65,6 +65,13 @@ vtkStructuredGrid* vtkXMLStructuredGridReader::GetOutput()
return static_cast<vtkStructuredGrid*>(this->Outputs[0]);
}
//----------------------------------------------------------------------------
vtkStructuredGrid* vtkXMLStructuredGridReader::GetOutput(int idx)
{
return static_cast<vtkStructuredGrid*>(this->Superclass::GetOutput(idx));
}
//----------------------------------------------------------------------------
const char* vtkXMLStructuredGridReader::GetDataSetName()
{
......
......@@ -44,7 +44,8 @@ public:
// Get/Set the reader's output.
void SetOutput(vtkStructuredGrid *output);
vtkStructuredGrid *GetOutput();
vtkStructuredGrid *GetOutput(int idx);
protected:
vtkXMLStructuredGridReader();
~vtkXMLStructuredGridReader();
......
......@@ -24,7 +24,7 @@
#include "vtkUnstructuredGrid.h"
#include "vtkXMLDataElement.h"
vtkCxxRevisionMacro(vtkXMLUnstructuredGridReader, "1.3");
vtkCxxRevisionMacro(vtkXMLUnstructuredGridReader, "1.4");
vtkStandardNewMacro(vtkXMLUnstructuredGridReader);
//----------------------------------------------------------------------------
......@@ -69,6 +69,12 @@ vtkUnstructuredGrid* vtkXMLUnstructuredGridReader::GetOutput()
return static_cast<vtkUnstructuredGrid*>(this->Outputs[0]);
}
//----------------------------------------------------------------------------
vtkUnstructuredGrid* vtkXMLUnstructuredGridReader::GetOutput(int idx)
{
return static_cast<vtkUnstructuredGrid*>(this->Superclass::GetOutput(idx));
}
//----------------------------------------------------------------------------
const char* vtkXMLUnstructuredGridReader::GetDataSetName()
{
......
......@@ -44,6 +44,7 @@ public:
// Get/Set the reader's output.
void SetOutput(vtkUnstructuredGrid *output);
vtkUnstructuredGrid *GetOutput();
vtkUnstructuredGrid *GetOutput(int idx);
protected:
vtkXMLUnstructuredGridReader();
......
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