[vtkusers] errors while trying to subclass vtkInteractorStyle

Amy Henderson amy.henderson at kitware.com
Thu May 27 11:46:10 EDT 2004


>
>And in my .cpp file I have:
>
>01 #include "myInteractorStyle.h"
>02 #include "vtkRenderWindowInteractor.h"
>03
>04 vtkCxxRevisionMacro( myInteractorStyle, "$Revision:
>1.0 $");
>05 vtkStandardNewMacro( myInteractorStyle );
>
>
>When I attempt to compile this I get:
>
>Error E2090 myInteractorSyle.cpp 5: Qualifier
>'vtkObjectFactory' is not a class
>or namespace name in function myInteractorStyle::New()
>Error E2141 myInteractorSyle.cpp 5: Declaration syntax
>error in function myInteractorStyle::New()

Add #include "vtkObjectFactory.h" before the two macros in the .cpp file.

- Amy 






More information about the vtkusers mailing list