Hello Jochen,

Many thanks for your explanations and tips. Things start to make sense 
to me now.

Regards,
Sam


Neuhaus Jochen wrote:
> Hi,
>
>   
>> -----Ursprüngliche Nachricht-----
>> Von: Samuel Silva [mailto:[email protected]]
>> When doing something like this:
>>
>> mitk::DataTreePreOrderIterator it(m_Tree);
>> multiWidget->SetData(&it);
>>
>> Which nodes from the tree will be rendered? I notice that when a new
>> node is added (resulting from a thresholding operation, for example) it
>> is superimposed on the image being rendered (eventhough he is at the
>> same level in the tree).
>>     
>
> All Nodes that are accessible with the iterator will be rendered. In this 
> example, all nodes contained in the tree.
> The order in which objects are rendered in 2D views is determined by the 
> "layer" property of the node. Normally, segmentations and surfaces get higher 
> numbers than original image data.
>
>
>   
>> Another thing I have been trying to do is to use a DataStorageComboBox
>> to simply choose a node from the tree (which contains several image
>> volumes loaded from disk) and my intentions were to render only the
>> chosen node on the multiWidget.
>> Can anyone give me some clues to what is the proper approach to this
>> matter? Any docs I can read on the subject?
>>     
>
> You should use the "visible" property to control which nodes will be rendered 
> or not:
> node->SetVisibility(false/true);
>
> If you want to render only one node, try the following:
>
> mitk::DataStorage::Pointer ds = mitk::DataStorage::GetInstance();
> mitk::DataStorage::SetOfObjects::ConstPointer all = ds->GetAll();
> for (mitk::DataStorage::SetOfObjects::ConstIterator it = all->Begin(); it != 
> all->End(); ++it)
>   it.Value()->SetVisibility(false);
>
> myNode->SetVisibility(true);
>
>
>
> Regards, 
>  Jochen
>
> ---
> MSc. Jochen Neuhaus
> DKFZ
> German Cancer Research Center (Deutsches Krebsforschungszentrum) 
> Member of the Helmholtz Association
> Division Medical and Biological Informatics E130
> Im Neuenheimer Feld 280
> D-69120 Heidelberg
> Phone: 49-(0)6221-42-2329
> Fax: 49-(0)6221-42-2345
> E-Mail: [email protected]
> Web: http://www.dkfz-heidelberg.de/en/mbi/people/Jochen_Neuhaus.html
>
> Confidentiality Note: This message is intended only for the use of the named 
> recipient(s) and may obtain confidential and/or privileged information. If 
> you are not the intended recipient, please contact the sender and delete the 
> message. Any unauthorized use of the information contained in this message is 
> prohibited.
>   


------------------------------------------------------------------------------
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to