Commit 2bbf2909 authored by Brad King's avatar Brad King 💬
Browse files

ENH: Added FillInputPortInformation method to support executive-based pipeline.

parent 49df4b74
......@@ -13,18 +13,20 @@
=========================================================================*/
#include "vtkRectilinearGridToTetrahedra.h"
#include "vtkCellArray.h"
#include "vtkCellData.h"
#include "vtkCharArray.h"
#include "vtkFloatArray.h"
#include "vtkIdList.h"
#include "vtkInformation.h"
#include "vtkIntArray.h"
#include "vtkObjectFactory.h"
#include "vtkRectilinearGrid.h"
#include "vtkUnstructuredGrid.h"
#include "vtkCellData.h"
#include "vtkVoxel.h"
#include "vtkFloatArray.h"
#include "vtkCharArray.h"
#include "vtkIntArray.h"
#include "vtkIdList.h"
#include "vtkCellArray.h"
vtkCxxRevisionMacro(vtkRectilinearGridToTetrahedra, "1.9");
vtkCxxRevisionMacro(vtkRectilinearGridToTetrahedra, "1.10");
vtkStandardNewMacro(vtkRectilinearGridToTetrahedra);
// ways to convert to a voxel to tetrahedra.
......@@ -41,6 +43,8 @@ vtkStandardNewMacro(vtkRectilinearGridToTetrahedra);
vtkRectilinearGridToTetrahedra::vtkRectilinearGridToTetrahedra()
{
this->NumberOfRequiredInputs = 1;
this->SetNumberOfInputPorts(1);
this->TetraPerCell = VTK_VOXEL_TO_5_TET;
this->RememberVoxelId = 0;
}
......@@ -586,6 +590,19 @@ void vtkRectilinearGridToTetrahedra::Execute()
VoxelSubdivisionType->Delete();
}
//----------------------------------------------------------------------------
int
vtkRectilinearGridToTetrahedra
::FillInputPortInformation(int port, vtkInformation* info)
{
if(!this->Superclass::FillInputPortInformation(port, info))
{
return 0;
}
info->Set(vtkAlgorithm::INPUT_REQUIRED_DATA_TYPE(), "vtkRectilinearGrid");
return 1;
}
//----------------------------------------------------------------------------
void vtkRectilinearGridToTetrahedra::PrintSelf(ostream& os, vtkIndent indent)
......
......@@ -118,6 +118,8 @@ protected:
int RememberVoxelId;
int TetraPerCell;
virtual int FillInputPortInformation(int, vtkInformation*);
private:
vtkRectilinearGridToTetrahedra(const vtkRectilinearGridToTetrahedra&); // Not implemented.
......
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