subclassing vtkInteractorStyle

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

subclassing vtkInteractorStyle

Konrad Sickel
Hello,

i try to write my own interactor. Therefore i want to subclass the
vtkInteractorStyleTrackballCamera style. I looked in the code of the
other styles and tryed:

class VTK_RENDERING_EXPORT vtkMyInteractorStyleUser : public
vtkInteractorStyleTrackballCamera{
public:
    static vtkMyInteractorStyleUser *New();
 
};

When i include this class no error happens, but if i want use it:

vtkMyInteractorStyleUser *style = vtkMyInteractorStyleUser::New();
 iren->SetInteractorStyle( style );

i geht an linking error with not resolved symbols:

Cone error LNK2019: Nicht aufgelöstes externes Symbol '"public: static
class vtkMyInteractorStyleUser * __cdecl
vtkMyInteractorStyleUser::New(void)"
(?New@vtkMyInteractorStyleUser@@SAPAV1@XZ)', verwiesen in Funktion '_main'

The programm works without problems if a vtk style is used.
vtk 5.0, win xp, visual studio 2003 (7), projekt constructed with cmake 2.2

Thanks for any help and ideas!
Konrad
_______________________________________________
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