thank you Ingmar!

it works fine now

so, the correct way of using it would be

//within QmitkStdMultiWidget:

m_LevelWindowInteractor = 
mitk::DisplayVectorInteractorLevelWindow::New("RightClickLevelWindow");

// e.g. within QmitkStdMultiWidgetEditor

mitk::GlobalInteraction::GetInstance()->AddListener(  
m_StdMultiWidget->GetLevelWindowInteractor()  );

sebastian

On 7/28/2011 10:04 AM, Wegner, Ingmar wrote:
> Hi Sebastian,
> sorry for the late response. Did you solve your problem?
> If not, could you specify it in more detail?
>
>  From the short description below, probably from within 
> QmitkStdMultiWidget.cpp:
> Changing a state machine pattern seldom does the trick. The pattern has to 
> fit to the interactor.
> DisplayVectorInteractor (m_MoveAndZoomInteractor) takes care of panning and 
> zooming in 2D widgets and contains actions, that can be activated via the 
> state machine pattern. If you chose a different pattern, the actions 
> activated by the pattern are not being taken care of, so nothing happens. 
> that are Please see tutorial step 10 for an example on the interaction 
> mechanism in gegeral.
>
>
> Best Regards,
> Ingmar
>
>
> -----Ursprüngliche Nachricht-----
> Von: sebastian ordas [mailto:[email protected]]
> Gesendet: Mittwoch, 8. Juni 2011 14:57
> An: [email protected]
> Betreff: [mitk-users] RightClickLevelWindow
>
> Dear List,
>
> I would like to change the contrast and brightness via
> "RightClickLevelWindow" state machine
>
> I tried the following but didn't work
>
> m_MoveAndZoomInteractor = mitk::DisplayVectorInteractor::New(
>       "RightClickLevelWindow", new mitk::DisplayInteractor() ); //
> "moveNzoom", new mitk::DisplayInteractor() );
>
> thank you,
> sebastian
>
>
> ------------------------------------------------------------------------------
> EditLive Enterprise is the world's most technically advanced content
> authoring tool. Experience the power of Track Changes, Inline Image
> Editing and ensure content is compliant with Accessibility Checking.
> http://p.sf.net/sfu/ephox-dev2dev
> _______________________________________________
> mitk-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/mitk-users


------------------------------------------------------------------------------
Got Input?   Slashdot Needs You.
Take our quick survey online.  Come on, we don't ask for help often.
Plus, you'll get a chance to win $100 to spend on ThinkGeek.
http://p.sf.net/sfu/slashdot-survey
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to