[vtkusers] Error in conversion from Tcl to C++
David Cole
david.cole at kitware.com
Mon Oct 6 16:26:29 EDT 2008
Did you include "vtkPolyDataMapper.h" and "vtkCurvatures.h"...? (And all the
header files for all the objects you are trying to instantiate or call
methods on...?)
On Thu, Sep 18, 2008 at 10:44 AM, B. C. <butterfly.1688 at yahoo.fr> wrote:
> Hi everyone.
> I found (in vtkCurvatures class examples) code lines in Tcl language. When
> i did the conversion into C++ language, many errors are generated!!!
> I post an example of conversion and the associated error s:
>
> TCL:
> vtkPolyDataMapper cmapper1
> cmapper1 SetInputConnection [curve1 GetOutputPort]
> cmapper1 SetLookupTable lut1
> cmapper1 SetUseLookupTableScalarRange 1
>
>
> C++:
> vtkPolyDataMapper *cmapper1 = vtkPolyDataMapper::New();
> cmapper1->SetInputConnection(curve1->GetOutputPort());
> cmapper1->SetLookupTable(lut1);
> cmapper1->SetUseLookupTableScalarRange(1);
>
> curve1 is a vtkCurvatures
> lut1 is a vtkLookupTable
>
>
> Errors:
> 'SetInputConnection' : is not a member of 'vtkPolyDataMapper'
> see declaration of 'vtkPolyDataMapper'
> 'GetOutputPort' : is not a member of 'vtkCurvatures'
> see declaration of 'vtkCurvatures'
>
>
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20081006/49a08b36/attachment.htm>
More information about the vtkusers
mailing list