[vtkusers] unusual SetInput() and GetOutput() methods
camilo.jimenez at spymac.com
camilo.jimenez at spymac.com
Sun Aug 22 15:59:12 EDT 2004
Hi everybody
I've been trying to translate the expCos.tcl example to Cxx, but I got errs
in this part:
TCL>
vtkTransformPolyDataFilter transF
transF SetInput [plane GetOutput]
transF SetTransform transform
vtkProgrammableFilter besselF
besselF SetInput [transF GetOutput]
besselF SetExecuteMethod bessel
I translated this as
vtkTransformPolyDataFilter *transF=vtkTransformPolyDataFilter::New();
transF->SetInput(plane->GetOutput());
transF->SetTransform(transform);
vtkProgrammableFilter *besselF=vtkProgrammableFilter::New();
besselF->SetInput(transF->GetOutput());
besselF->SetExecuteMethod(bessel);
then, in making, I get this err
Building object file 3d.o...
3d.cc: In function `int main()':
3d.cc:25: no matching function for call to `vtkProgrammableFilter::SetInput(
vtkPolyData*)'
/usr/local/include/vtk/vtkDataSetToDataSetFilter.h:62: candidates are: void
vtkDataSetToDataSetFilter::SetInput(vtkDataSet*)
3d.cc:29: no matching function for call to `vtkWarpScalar::SetInput(
vtkPolyData*)'
/usr/local/include/vtk/vtkPointSetToPointSetFilter.h:57: candidates are: void
vtkPointSetToPointSetFilter::SetInput(vtkPointSet*)
make: *** [3d.o] Error 1
I've included these headers:
#include "vtkPlaneSource.h"
#include "vtkTransform.h"
#include "vtkTransformPolyDataFilter.h"
#include "vtkProgrammableFilter.h"
#include "vtkWarpScalar.h"
#include "vtkPolyDataMapper.h"
#include "vtkActor.h"
#include "vtkRenderer.h"
#include "vtkRenderWindow.h"
#include "vtkRenderWindowInteractor.h"
Does somebody knows what is the problem??
ThanX
LinX
More information about the vtkusers
mailing list