Tuesday, May 21, 2013
Google Custom Search

Our Community

Membership Membership:
Latest New User Latest: nlamber1
New Today New Today: 9
New Yesterday New Yesterday: 10
User Count Overall: 28653

People Online People Online:
Visitors Visitors: 10
Members Members: 0
Total Total: 10

Online Now Online Now:

ClearCanvas Community Forums

We've moved our Developer Forums!
To better assist our open source community, we have moved our repository and developer forums to GitHub. You can access the new developer forums on our ClearCanvas GitHub issues board.

Read Measurement
Last Post 2012-07-25 02:07 AM by master. 2 Replies.
Printer Friendly
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages Not Resolved
master
Basic Member
Basic Member
Posts:19

--
2012-07-09 09:30 AM

Hi,

I want to show the measurement in popup box or form after draw a ruler / angles.  The popup will appear when mouse-up event trigger.

Is there anyway to read this? Please help me....

Very urgent!

Thanks

Brain.

stewart
Senior Member
Senior Member
Posts:2336

--
2012-07-23 03:39 PM
There aren't really any "ROI Drawn" events in the viewer. The closest you can get is ImageViewer.EventBroker.MouseCaptureChanged, but that doesn't tell you when a ROI is drawn. What you would do is look at the ROIs in the current image when capture=true, then when capture=false, check that the currently selected graphic wasn't there when capture was first obtained.

If you just want something to pop up whenever somebody selects a ROI, you can use the GraphicSelectionChanged event on the broker. Each time the user clicks on a ROI, the event will fire and you can pop something up.

As for how to pop something up, that's up to you, but the easiest way is to create a new ApplicationComponent and use ApplicationComponent.LaunchAsShelf with DockFloat | ShowNearMouse as the "display hint". To do anything really custom, you'd have to create a custom view, like IMagnificationView, which is used to show the "magnifying glass" in a form.

If you go the shelf route, you should probably close it whenever there's no graphic selected anymore (or probably whenever graphic selection changes so you can get it to show up close to the mouse).

Can I ask why you want to pop something up, rather than just add a new statistic to the existing ROI callouts? You can do that via a plugin.
Live and real-time support available for Personal and Team Edition customers
master
Basic Member
Basic Member
Posts:19

--
2012-07-25 02:07 AM

Thanks stewart..

   i want to add a measurement in my grid when mouse-up. 

You are not authorized to post a reply.

Active Forums 4.1
Copyright 2013 ClearCanvas Inc. All Rights Reserved