<div dir="ltr">The defintion of your OnMouseMove method is not correct in your CXX file.<br><br>It should be:<br><pre>void KeyPressInteractorStyle::OnMouseMove()
{}<br></pre><pre><span style="font-family:arial,helvetica,sans-serif">instead of:</span><br><br>void OnMouseMove()
{}<br></pre></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jun 12, 2013 at 8:16 PM, cjayjones <span dir="ltr"><<a href="mailto:cjayjones@gmail.com" target="_blank">cjayjones@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I am creating my own InteractorStyle class that is derived from<br>
vtkInteractorStyleTrackball camera. I would like to put my class definition<br>
in a header file and the functions definitions in a separate .cxx file. My<br>
header file is:<br>
<br>
<br>
My .cxx file is:<br>
<br>
<br>
My main file is:<br>
<br>
<br>
My linking error is:<br>
<br>
<br>
Does anybody see what I might be doing wrong? If I move the OnMouseMove()<br>
function definition into the header file, the linking error goes away. I<br>
would really prefer to be able to put the definition in a separate file as<br>
shown.<br>
<br>
Thanks for any help.<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://vtk.1045678.n5.nabble.com/Overriding-vtkInteractorStyleTrackballCamera-functions-in-separate-h-and-cpp-files-tp5721349.html" target="_blank">http://vtk.1045678.n5.nabble.com/Overriding-vtkInteractorStyleTrackballCamera-functions-in-separate-h-and-cpp-files-tp5721349.html</a><br>
Sent from the VTK - Users mailing list archive at Nabble.com.<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<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>
</blockquote></div><br></div>