<div dir="ltr">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...?)<div><br><br><div><br><div class="gmail_quote">
On Thu, Sep 18, 2008 at 10:44 AM, B. C. <span dir="ltr"><<a href="mailto:butterfly.1688@yahoo.fr">butterfly.1688@yahoo.fr</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<table cellspacing="0" cellpadding="0" border="0"><tbody><tr><td valign="top" style="font:inherit"><div>Hi everyone.</div>
<div>I found (in vtkCurvatures class examples) code lines in Tcl language. When i did the conversion into C++ language, many errors are generated!!!</div>
<div>I post an example of conversion and the associated error s:</div>
<div> </div>
<div>TCL:</div>
<div>vtkPolyDataMapper cmapper1<br>cmapper1 SetInputConnection [curve1 GetOutputPort]<br>cmapper1 SetLookupTable lut1<br>cmapper1 SetUseLookupTableScalarRange 1</div>
<div> </div>
<div> </div>
<div>C++:</div>
<div>vtkPolyDataMapper *cmapper1 = vtkPolyDataMapper::New();<br>cmapper1->SetInputConnection(curve1->GetOutputPort());<br>cmapper1->SetLookupTable(lut1);<br>cmapper1->SetUseLookupTableScalarRange(1);<br></div>
<div> </div>
<div><font color="#ff0000">curve1 is a vtkCurvatures</font></div>
<div><font color="#ff0000">lut1 is a vtkLookupTable</font></div>
<div> </div>
<div> </div>
<div>Errors:</div>
<div>'SetInputConnection' : is not a member of 'vtkPolyDataMapper'</div>
<div>see declaration of 'vtkPolyDataMapper'<br></div>
<div>'GetOutputPort' : is not a member of 'vtkCurvatures'<br>see declaration of 'vtkCurvatures'</div></td></tr></tbody></table><br>
<br>_______________________________________________<br>
This is the private VTK discussion list.<br>
Please keep messages on-topic. Check the FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
<br></blockquote></div><br></div></div></div>