[vtkusers] Overriding vtkInteractorStyleTrackballCamera functions in separate .h and .cpp files

Arnaud BARRE arnaud.barre at gmail.com
Wed Jun 12 14:23:32 EDT 2013


The defintion of your OnMouseMove method is not correct in your CXX file.

It should be:

void KeyPressInteractorStyle::OnMouseMove()
{}

instead of:

void OnMouseMove()
{}



On Wed, Jun 12, 2013 at 8:16 PM, cjayjones <cjayjones at gmail.com> wrote:

> I am creating my own InteractorStyle class that is derived from
> vtkInteractorStyleTrackball camera.  I would like to put my class
> definition
> in a header file and the functions definitions in a separate .cxx file.  My
> header file is:
>
>
> My .cxx file is:
>
>
> My main file is:
>
>
> My linking error is:
>
>
> Does anybody see what I might be doing wrong?  If I move the OnMouseMove()
> function definition into the header file, the linking error goes away.  I
> would really prefer to be able to put the definition in a separate file as
> shown.
>
> Thanks for any help.
>
>
>
> --
> View this message in context:
> http://vtk.1045678.n5.nabble.com/Overriding-vtkInteractorStyleTrackballCamera-functions-in-separate-h-and-cpp-files-tp5721349.html
> Sent from the VTK - Users mailing list archive at Nabble.com.
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK 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/20130612/504835ca/attachment.htm>


More information about the vtkusers mailing list