Hi Sascha.
Indeed I intended to activate the same interaction behavior than the
clippingplane plugin's tools inspiring me of the
mitkClippingPlaneRotationTool.cpp code for instance, but I finally
preferred to define my own interaction by the use of state machines.
If you have any idea about how I could have activated the interaction modes
of the clipping plane without the tools, it would be still interesting for
me so I can understand how the mitk::AffineInteractor3D must be used.
Thanks,
2013/12/3 Sascha Zelzer <[email protected]>
> Hi,
>
> is this still relevant or did you solve it already with respect to the
> other interaction discussion going on?
>
> Thanks,
>
> Sascha
>
>
> On 11/21/2013 08:48 PM, Alyson Roger wrote:
>
> Hello mitk users,
>
> I'm trying to add a new PlugIn in the mitkWorkBench where the
> interactions with a mitk::Plane are similar to those of the ClippingPlane
> PlugIn, but without the use of Tools. I defined a
> mitk::AffineInteractor3D::Pointer m_PlaneInteractor and tried to use
> SetInteractionModeToRotation() to have the same behaviour as the Rotation
> Tool of the Clipping Plane PlugIn. But the application crashes and I am
> quite lost with the way the original plugin manage the interactions.
>
> This is how I set the interaction behaviour :
>
> if (m_PlaneInteractor.IsNull())
> {
> m_PlaneInteractor =
> mitk::AffineInteractor3D::New("AffineInteractor3D", nodeplane);
> }
>
> m_PlaneInteractor->SetInteractionModeToRotation();
>
> mitk::GlobalInteraction::GetInstance()->AddInteractor(m_PlaneInteractor);
>
> If someone could give me a clue with the process to do, it would be very
> helpful.
>
> Thank you
>
> --
> *Alyson ROGER*
>
> *[email protected] <[email protected]>*
>
>
>
>
--
*Alyson ROGER*
ingénieur diplômée INSA de Lyon
Génie Electronique
06 20 60 07 47
*[email protected] <[email protected]>*
------------------------------------------------------------------------------
Sponsored by Intel(R) XDK
Develop, test and display web and hybrid apps with a single code base.
Download it for free now!
http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users