Hi Klaus,

Thanks for the report. The code of mitkVolumeDataVtkMapper3D indeed
needs some re-structuring. I'll have a closer look as soon as possible
and will then get back to you...


Regards,
Mathias

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:mitk-users-
> [EMAIL PROTECTED] On Behalf Of Klaus Drechsler
> Sent: Tuesday, April 01, 2008 6:47 PM
> To: [email protected]
> Subject: [mitk-users] Default TransferFunction
> 
> Hi list,
> 
> it seems to me, that the setting of the Default Transfer Function is
> somehow inconsistent and has much redundant code.
> 
> I am talking about the latest svn version.
> 
> 1. Default TransferFunction is added in mitkVolumeDataVtkMapper3D
> starting at line 555
> 
> 2. Default TransferFunction is added in mitkDataTreeNodeFactory
> starting at line 440
> -> At least in the case of volumes this code is never called, because
> it is already set in 1.
> ->If the setting of the default TransferFunction is necessary here,
> then it would be nice to move line 440
(mitk::TransferFunction::Pointer
> tf = mitk::TransferFunction::New();) into the if-statement, else a
> TransferFuntion is created, even if it is not necessary.
> 
> 3. As soon as the volume visualization widget is started, the default
> TransferFunction is "thrown" away by line 49 (tf-
> >InitializeByMitkImage(dynamic_cast<mitk::Image*>(node->GetData()));).
> -> I suggest to remove this line, so that the dafault TransferFunction
> is used. It will also accelerate the initial rendering. (And in my
> other post I reported, that this line also causes a crash of the
> application).
> 
> Greets
> 
> Klaus
> 
> 
> 
> 
> 
> --
> Psst! Geheimtipp: Online Games kostenlos spielen bei den GMX Free
> Games!
> http://games.entertainment.gmx.net/de/entertainment/games/free
> 
>
-----------------------------------------------------------------------
> --
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services for
> just about anything Open Source.
>
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/market
> place
> _______________________________________________
> mitk-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/mitk-users

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to