Ok, I could reproduce it... We'll have a look and get back to you!

Thanks for the report.
Mathias

-----Original Message-----
From: sebastian ordas [mailto:[email protected]] 
Sent: Thursday, April 15, 2010 5:50 PM
To: Seitel Mathias
Cc: [email protected]
Subject: Re: [mitk-users] how to force a volume rendering to update?

hi,
just do the following:
- open ExtApp (svn version)
- go to preferences and set "show as volume rendering" to ON
- segment with any tool

do you see the VR updated?

thank you!
sebastian

PS: in my application, I change the image data in several ways; but
only if I create a new node the VR is updated; never if I get the
mitk::Image from the node, modify it, and set it back to the node

On Thu, Apr 15, 2010 at 12:26 PM, Seitel Mathias
<[email protected]> wrote:
> Hi Sebastian,
>
> This seems strange indeed... In which way are you changing content of the 
> image data? Could you post parts of your code so that we can try to reproduce?
>
>
> Regards,
> Mathias
>
>
> -----Original Message-----
> From: sebastian ordas [mailto:[email protected]]
> Sent: Thursday, April 15, 2010 4:16 PM
> To: Seitel Mathias
> Cc: [email protected]
> Subject: Re: [mitk-users] how to force a volume rendering to update?
>
> thank you, but none of those solutions actually worked for me
>
> is the volume render being updated in your segmentation plugin?
>
> i think the problem is that e.g. in GPUVolumeMapper3D::GenerateData(),
> when vtkImageData *inputData =
> input->GetVtkImageData(this->GetTimestep()) is requested, mitk::Image
> retrieves the original vtkImageData and not an updated version
>
> what do you think?
>
> thank you
> sebastian
>
> On Thu, Apr 15, 2010 at 11:07 AM, Seitel Mathias
> <[email protected]> wrote:
>> Hi Sebastian,
>>
>> Generally, in order to request an update of the rendering at any time, you 
>> can call
>>
>>  mitk::RenderingManager::GetInstance()->RequestUpdateAll();
>>
>> and the display will update itself at the next possible time point (usually 
>> after the current event-processing loop finishes). It is also possible to 
>> issue an update for single render windows (see documentation).
>>
>> In case the display update works, but the system does for some reason not 
>> recognize that the data has changed, try to call the Modified() method on 
>> the object to be rendered (probably the mitk::Image in your case).
>>
>>
>> Hope that helps!
>> Mathias
>>
>>
>>
>> -----Original Message-----
>> From: sebastian ordas [mailto:[email protected]]
>> Sent: Thursday, April 15, 2010 4:00 PM
>> To: [email protected]
>> Subject: [mitk-users] how to force a volume rendering to update?
>>
>> Hello,
>>
>> How can I force the volume render of an image (in my case, a binary
>> image, a segmentation) to update when its content (data) has changed?
>> Is that feature working for you guys in your Segmentation bundle?
>>
>> thank you!
>> sebastian
>>
>> ------------------------------------------------------------------------------
>> Download Intel&#174; Parallel Studio Eval
>> Try the new software tools for yourself. Speed compiling, find bugs
>> proactively, and fine-tune applications for parallel performance.
>> See why Intel Parallel Studio got high marks during beta.
>> http://p.sf.net/sfu/intel-sw-dev
>> _______________________________________________
>> mitk-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/mitk-users
>>
>

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to