<div dir="ltr">Did you include &quot;vtkPolyDataMapper.h&quot; and &quot;vtkCurvatures.h&quot;...? (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">&lt;<a href="mailto:butterfly.1688@yahoo.fr">butterfly.1688@yahoo.fr</a>&gt;</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>&nbsp;</div>
<div>TCL:</div>
<div>vtkPolyDataMapper cmapper1<br>cmapper1 SetInputConnection [curve1 GetOutputPort]<br>cmapper1 SetLookupTable lut1<br>cmapper1 SetUseLookupTableScalarRange 1</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>C++:</div>
<div>vtkPolyDataMapper *cmapper1 = vtkPolyDataMapper::New();<br>cmapper1-&gt;SetInputConnection(curve1-&gt;GetOutputPort());<br>cmapper1-&gt;SetLookupTable(lut1);<br>cmapper1-&gt;SetUseLookupTableScalarRange(1);<br></div>

<div>&nbsp;</div>
<div><font color="#ff0000">curve1 is a vtkCurvatures</font></div>
<div><font color="#ff0000">lut1 is a vtkLookupTable</font></div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>Errors:</div>
<div>&#39;SetInputConnection&#39; : is not a member of &#39;vtkPolyDataMapper&#39;</div>
<div>see declaration of &#39;vtkPolyDataMapper&#39;<br></div>
<div>&#39;GetOutputPort&#39; : is not a member of &#39;vtkCurvatures&#39;<br>see declaration of &#39;vtkCurvatures&#39;</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>