Commit 7d3fb4ba authored by Brad King's avatar Brad King

COMP: Replaced c-style cast with static_cast to avoid HP warning.

parent f36590fb
......@@ -20,7 +20,7 @@
#include "vtkObjectFactory.h"
#include "vtkRectilinearGrid.h"
vtkCxxRevisionMacro(vtkRectilinearGridReader, "1.31");
vtkCxxRevisionMacro(vtkRectilinearGridReader, "1.32");
vtkStandardNewMacro(vtkRectilinearGridReader);
//----------------------------------------------------------------------------
......@@ -39,14 +39,15 @@ vtkRectilinearGridReader::~vtkRectilinearGridReader()
}
//----------------------------------------------------------------------------
vtkRectilinearGrid *vtkRectilinearGridReader::GetOutput()
vtkRectilinearGrid* vtkRectilinearGridReader::GetOutput()
{
if (this->NumberOfOutputs < 1)
{
return NULL;
}
return (vtkRectilinearGrid *)(this->Outputs[0]);
return this->GetOutput(0);
}
//----------------------------------------------------------------------------
vtkRectilinearGrid* vtkRectilinearGridReader::GetOutput(int idx)
{
return static_cast<vtkRectilinearGrid*>(this->vtkSource::GetOutput(idx));
}
//----------------------------------------------------------------------------
......
......@@ -42,8 +42,7 @@ public:
// Description:
// Get and set the output of this reader.
vtkRectilinearGrid *GetOutput();
vtkRectilinearGrid *GetOutput(int idx)
{return (vtkRectilinearGrid *) this->vtkSource::GetOutput(idx); };
vtkRectilinearGrid *GetOutput(int idx);
void SetOutput(vtkRectilinearGrid *output);
protected:
......
......@@ -20,7 +20,7 @@
#include "vtkStructuredGrid.h"
#include "vtkUnsignedCharArray.h"
vtkCxxRevisionMacro(vtkStructuredGridReader, "1.58");
vtkCxxRevisionMacro(vtkStructuredGridReader, "1.59");
vtkStandardNewMacro(vtkStructuredGridReader);
vtkStructuredGridReader::vtkStructuredGridReader()
......@@ -36,17 +36,17 @@ vtkStructuredGridReader::~vtkStructuredGridReader()
{
}
//-----------------------------------------------------------------------------
vtkStructuredGrid *vtkStructuredGridReader::GetOutput()
//----------------------------------------------------------------------------
vtkStructuredGrid* vtkStructuredGridReader::GetOutput()
{
if (this->NumberOfOutputs < 1)
{
return NULL;
}
return (vtkStructuredGrid *)(this->Outputs[0]);
return this->GetOutput(0);
}
//----------------------------------------------------------------------------
vtkStructuredGrid* vtkStructuredGridReader::GetOutput(int idx)
{
return static_cast<vtkStructuredGrid*>(this->vtkSource::GetOutput(idx));
}
//-----------------------------------------------------------------------------
void vtkStructuredGridReader::SetOutput(vtkStructuredGrid *output)
......
......@@ -42,8 +42,7 @@ public:
// Description:
// Get the output of this reader.
vtkStructuredGrid *GetOutput();
vtkStructuredGrid *GetOutput(int idx)
{return (vtkStructuredGrid *) this->vtkSource::GetOutput(idx); };
vtkStructuredGrid *GetOutput(int idx);
void SetOutput(vtkStructuredGrid *output);
protected:
......
......@@ -21,7 +21,7 @@
#include "vtkPointData.h"
#include "vtkStructuredPoints.h"
vtkCxxRevisionMacro(vtkStructuredPointsReader, "1.59");
vtkCxxRevisionMacro(vtkStructuredPointsReader, "1.60");
vtkStandardNewMacro(vtkStructuredPointsReader);
vtkStructuredPointsReader::vtkStructuredPointsReader()
......@@ -44,16 +44,16 @@ void vtkStructuredPointsReader::SetOutput(vtkStructuredPoints *output)
}
//----------------------------------------------------------------------------
vtkStructuredPoints *vtkStructuredPointsReader::GetOutput()
vtkStructuredPoints* vtkStructuredPointsReader::GetOutput()
{
if (this->NumberOfOutputs < 1)
{
return NULL;
}
return (vtkStructuredPoints *)(this->Outputs[0]);
return this->GetOutput(0);
}
//----------------------------------------------------------------------------
vtkStructuredPoints* vtkStructuredPointsReader::GetOutput(int idx)
{
return static_cast<vtkStructuredPoints*>(this->vtkSource::GetOutput(idx));
}
//----------------------------------------------------------------------------
// Default method performs Update to get information. Not all the old
......
......@@ -42,8 +42,7 @@ public:
// Description:
// Set/Get the output of this reader.
void SetOutput(vtkStructuredPoints *output);
vtkStructuredPoints *GetOutput(int idx)
{return (vtkStructuredPoints *) this->vtkSource::GetOutput(idx); };
vtkStructuredPoints *GetOutput(int idx);
vtkStructuredPoints *GetOutput();
protected:
......
......@@ -21,7 +21,7 @@
#include "vtkObjectFactory.h"
#include "vtkUnstructuredGrid.h"
vtkCxxRevisionMacro(vtkUnstructuredGridReader, "1.68");
vtkCxxRevisionMacro(vtkUnstructuredGridReader, "1.69");
vtkStandardNewMacro(vtkUnstructuredGridReader);
#ifdef read
......@@ -42,14 +42,15 @@ vtkUnstructuredGridReader::~vtkUnstructuredGridReader()
}
//----------------------------------------------------------------------------
vtkUnstructuredGrid *vtkUnstructuredGridReader::GetOutput()
vtkUnstructuredGrid* vtkUnstructuredGridReader::GetOutput()
{
if (this->NumberOfOutputs < 1)
{
return NULL;
}
return (vtkUnstructuredGrid *)(this->Outputs[0]);
return this->GetOutput(0);
}
//----------------------------------------------------------------------------
vtkUnstructuredGrid* vtkUnstructuredGridReader::GetOutput(int idx)
{
return static_cast<vtkUnstructuredGrid*>(this->vtkSource::GetOutput(idx));
}
//----------------------------------------------------------------------------
......
......@@ -42,8 +42,7 @@ public:
// Description:
// Get the output of this reader.
vtkUnstructuredGrid *GetOutput();
vtkUnstructuredGrid *GetOutput(int idx)
{return (vtkUnstructuredGrid *) this->vtkSource::GetOutput(idx); };
vtkUnstructuredGrid *GetOutput(int idx);
void SetOutput(vtkUnstructuredGrid *output);
protected:
......
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