X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=appli%2Fexamples%2Fexample_BaseInteractorStyle.cxx;h=75366b7057bf639440d6a69ee66700766a3732f4;hb=7e29f3aec097ba1bff1894fed6eb1094276c5b72;hp=922511abed03b96da51e24dc9006ebd61179b326;hpb=f2f39f66027a98bd8dac50bade5618e0136bbefa;p=cpPlugins.git diff --git a/appli/examples/example_BaseInteractorStyle.cxx b/appli/examples/example_BaseInteractorStyle.cxx index 922511a..75366b7 100644 --- a/appli/examples/example_BaseInteractorStyle.cxx +++ b/appli/examples/example_BaseInteractorStyle.cxx @@ -4,22 +4,22 @@ #include #include #include -#include +#include // ------------------------------------------------------------------------- #define example_BaseInteractorStyle_Macro( x ) \ - virtual void On##x( ) \ + virtual void On##x( ) \ { std::cout << "On" << #x << "( )" << std::endl; } // ------------------------------------------------------------------------- class example_BaseInteractorStyle - : public cpExtensions::Visualization::BaseInteractorStyle + : public cpExtensions::Interaction::BaseInteractorStyle { public: typedef example_BaseInteractorStyle Self; vtkTypeMacro( example_BaseInteractorStyle, - cpExtensions::Visualization::BaseInteractorStyle + cpExtensions::Interaction::BaseInteractorStyle ); public: @@ -59,6 +59,11 @@ protected: virtual ~example_BaseInteractorStyle( ) { } + virtual bool _PickPosition( int idx[ 2 ], double pos[ 3 ] ) + { + return( true ); // Just testing... + } + private: // Purposely not implemented example_BaseInteractorStyle( const Self& );