#include <vtkPointData.h>
#include <vtkCellData.h>
#include <vtkPolyData.h>
+#include <vtkPassThroughFilter.h>
#include <vtkStructuredGrid.h>
#include <vtkStructuredGridGeometryFilter.h>
VISU::TTableIDMapper
::TTableIDMapper():
myOutput( vtkPolyData::New() ),
+ myFilter( vtkPassThroughFilter::New() ),
myXAxisPosition( -1 )
-{}
+{
+}
VISU::TTableIDMapper
::~TTableIDMapper()
{
myOutput->Delete();
+ myFilter->Delete();
}
vtkPolyData*
return myOutput;
}
+vtkAlgorithmOutput*
+VISU::TTableIDMapper
+::GetOutputPort()
+{
+ return myFilter->GetOutputPort();
+}
+
long unsigned int
VISU::TTableIDMapper
::GetMemorySize()
aFilter->Update();
myOutput->ShallowCopy( aFilter->GetOutput() );
aFilter->Delete();
+
+ myFilter->SetInputData( myOutput );
}
#include <string>
#include <vector>
+class vtkPassThroughFilter;
+
namespace VISU
{
//---------------------------------------------------------------
virtual
vtkAlgorithmOutput*
- GetOutputPort() { return NULL; }
+ GetOutputPort();
virtual
long unsigned int
protected:
vtkIdType myXAxisPosition;
vtkPolyData* myOutput;
+ vtkPassThroughFilter* myFilter;
};
typedef MED::SharedPtr<TTableIDMapper> PTableIDMapper;