Dear Andreas,

Thanks for your reply,
I add interactor just like what you said and failed. As you
mentioned mitkClippingPlaneRotationTool works perfectly. one thing that I
am surprised is that when I remove two statemachine .xml files in following
folders it still works. so I wonder, maybe it is using another file which
is correct and I should find it.
Plugins/org.mitk.gui.qt.application/resources
MITK/Core/Code/Interactions

Thanks for your help,
Amir

On Thu, Jan 24, 2013 at 10:01 AM, Fetzer, Andreas <
[email protected]> wrote:

> Dear Amir,
>
> you can find an example of how the AffineInteractor is used in the
> mitkClippingPlaneRotationTool. Did you add the interactor to the DataNode
> like the following?
>
> my_AffineInteractor = mitk::AffineInteractor3D::New("AffineInteractor3D",
> my_Node);
>
> Another point is, that we currently do have two versions of the
> StateMachine.xml which both must be kept consistent. The other one can be
> found in Plugins/org.mitk.gui.qt.application/resources/
> You should make your changes there either. We know that this is a design
> issue and we are currently working on merging the two StateMachine versions.
>
> About your git error during superbuild: Maybe you should check your git
> config. Did you make any special configuration for git? Especially the
> global git config would be interesting. You can type
>
> git config --global --list
>
> in your git bash. If there is an entry like
>
> remote.origin.fetch=+refs/heads/*:refs/remotes/origin/*
> [email protected]:MITK.git
>
> remove it. This entry should just be set in the local git config file of
> your MITK repository but not in the global config file.
>
> Regards
> Andreas
>
> On 23.01.2013, at 15:20, Amirhossein Jaberzadeh wrote:
>
> > Dear All,
> >
> > I want to make an rotate interaction for objects(mesh) in 3D (but not
> the camera) in my plugin. it can be done by mouse or keyboard.
> > I run step 10 and it works properly as in the tutorial (just
> translations). Then in statesmachine.xml I find this statemachine
> "AffineInteractions click to select" which seemed suitable for me.
> > after using it like below, it does not select anything when I click on
> the mesh.
> >
> >       mitk::AffineInteractor::Pointer surfaceInteractor
> =mitk::AffineInteractor::New("AffineInteractions click to select",node);
> >
> mitk::GlobalInteraction::GetInstance()->AddInteractor(surfaceInteractor);
> >
> > so I tried to work with statemachine editor in order to fix it. for
> example I add actions 65<!-- AcSELECT  --> and 75 <!-- AcDESELECT  --> then
> made an interactor class(.cpp .h) for myself and copied all ExecuteActions
> needed for that modified statemachine inside it.
> > also added it to files.cmake but at the time of compilation superbuild
> gave me this message:
> >
> > error: Your local changes to the following files would be overwritten by
> checkout:
> >       Core/Code/Interactions/StateMachine.xml
> > Please, commit your changes or stash them before you can switch branches.
> > So should I really commit my files or there is another solution for this.
> >
> > I also tried to add different interactors to same statemachine to show
> eventhandler where it can find corresponding action but it failed.
> > mitk::GlobalInteraction::GetInstance()->AddInteractor();
> >
> > Thanks
> > Amir
> >
> ------------------------------------------------------------------------------
> > Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
> > MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
> > with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
> > MVPs and experts. ON SALE this month only -- learn more at:
> >
> http://p.sf.net/sfu/learnnow-d2d_______________________________________________
> > mitk-users mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/mitk-users
>
>
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_jan
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to