Friday, February 10, 2012
Google Custom Search

ClearCanvas Highlights

Download our Open Source software
Watch some Videos
Get the Source
Check out our Licensing
Join our  Forums
Some Research: OICR IPP-Trials

Our Community

Membership Membership:
Latest New User Latest: rczlubin
New Today New Today: 5
New Yesterday New Yesterday: 27
User Count Overall: 20595

People Online People Online:
Visitors Visitors: 16
Members Members: 1
Total Total: 17

Online Now Online Now:
01: Xiros

ClearCanvas Community Forums

Disable drop shadow?
Last Post 2010-09-08 05:16 PM by stewart. 5 Replies.
Printer Friendly
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages Not Resolved
WaltRiceJr
New Member
New Member
Posts:6

--
2010-08-23 06:07 PM  

 Hello all,

Is there a way to disable the drop shadow for my graphics and measurement objects?  Users seem not to like the double-line effect in my particular application, and I'd like to turn off the shadows.

Is this easy?  Impossible?  Anybody done it?

Thanks in advance!

Walt Rice

stewart
Senior Member
Senior Member
Posts:2033

--
2010-08-27 12:41 AM  
Hi Walt, you will have to change the code in GdiRenderer, but it should be easy enough. Each "Draw" method has code for drawing the graphic, and then code that is pretty much exactly the same to draw the drop-shadow. Just comment out the drop-shadow code and you're good to go.
Real-time support available to Clinical Edition and Team Edition customers
WaltRiceJr
New Member
New Member
Posts:6

--
2010-08-27 12:46 AM  
Thanks Stewart. I actually figured that part out last night.

I'm guessing it's not possible to do this via my plugin (that defines the measurement tools) instead of having to replace the ImageViewer dll on the client machines? Having options for whether or not drop shadows are applied to particular graphics would be rather useful in the API.
stewart
Senior Member
Senior Member
Posts:2033

--
2010-08-31 09:38 AM  
Hi Walt, you can accomplish that by copying only the code you want out of GdiRenderer into your own renderer (in your plugin) and replacing the default renderer factory by creating your own that extends the BasicPresentationImageRendererFactoryExtensionPoint. This way, you don't have to change any of the core code.

You're right, it would be useful. If you figure out a good way to do it and submit a patch, I'll apply it before the next public release.
Real-time support available to Clinical Edition and Team Edition customers
WaltRiceJr
New Member
New Member
Posts:6

--
2010-09-02 09:48 AM  
Thanks Stewart.

I'm not comfortable enough with the CC rendering and client models to suggest how to implement such an option, so for now I'm just going to comment out the drop shadow code. But I'll keep it in mind if I come back to this.

Alternatively, if you tell me how you might want it accomplished, I'd take a stab at it.
stewart
Senior Member
Senior Member
Posts:2033

--
2010-09-08 05:16 PM  
Honestly, I haven't thought about it enough to know what the best approach is ... if it comes to me, I'll let you know :)

Thanks,
Stewart
Real-time support available to Clinical Edition and Team Edition customers
You are not authorized to post a reply.

Active Forums 4.1
Copyright 2011 ClearCanvas Inc.