[vtkusers] How to Add multiple AddObserver in C++/Windows ?

Mathieu Malaterre Mathieu.Malaterre at creatis.insa-lyon.fr
Thu Sep 18 05:34:14 EDT 2003


Ketan,

> 'joystick' and 'trackball' stuff worked fine. How come it is not
> documented in any example or somewhere..!!

	Are you sure it is not documented:
http://www.vtk.org/doc/nightly/html/classvtkInteractorStyle.html

> BTW, why 'joystick' is default and can how we change it ?

see above :)
and
http://www.vtk.org/doc/nightly/html/classvtkInteractorStyleSwitch.html

> ERROR::
> IsoSurface.cpp(40) : error C2664: 'SetInput' : cannot convert parameter 1 from 'class
> vtkStructuredGrid *' to 'class vtkDataSet *'

VTK use forward include, include all necessary header files.
In your case:

#include "vtkStructuredGrid.h"

should be ok. (BTW I am sure there was such another mail this month 
about this...)

> Thanks. Why we have joystick as default ?

because we don't have trackball as default :p

mathieu




More information about the vtkusers mailing list