Hi,
the widget planes are also nodes that are contained in the DataStorage. They 
have a bool property "helper object" set to true which prevents them from being 
shown in the DataManager. Thus, when you hide all DataNodes, you will also hide 
the planes.

Regards
Michael

Von: Lodron, Gerald [mailto:[email protected]]
Gesendet: Donnerstag, 12. August 2010 12:23
An: '[email protected]'
Betreff: [mitk-users] WG: QmitkStdMultiWidget and Planes Visibility



I also doesn't know why the widget planes dissappear when i code the following:

mitk::DataStorage::SetOfObjects::ConstPointer oAll = 
this->GetDataStorage()->GetAll();

for(unsigned int nNode = 0; nNode < oAll->Size(); nNode++)

{

    if(dynamic_cast<mitk::Image*>(oAll->at(nNode)->GetData()) && 
oAll->at(nNode)->GetProperty("myPropOfMyDataObject"))

   {

      oAll->at(nNode)->SetVisibility(true);

   }

   else

    {

      oAll->at(nNode)->SetVisibility(false);

    }

}



________________________________
Von: Lodron, Gerald [mailto:[email protected]]
Gesendet: Donnerstag, 12. August 2010 12:13
An: '[email protected]'
Betreff: [mitk-users] QmitkStdMultiWidget and Planes Visibility


Hi

I have some questions to the QmitkStdMultiWidget:

1)
I found out that:


m_poMultiWidget->SetWidgetPlanesVisibility(true);



does not work, only that works:



m_poMultiWidget->SetWidgetPlanesVisibility(true, 
m_poMultiWidget->GetRenderWindow1()->GetRenderer());

m_poMultiWidget->SetWidgetPlanesVisibility(true, 
m_poMultiWidget->GetRenderWindow2()->GetRenderer());

m_poMultiWidget->SetWidgetPlanesVisibility(true, 
m_poMultiWidget->GetRenderWindow3()->GetRenderer());

m_poMultiWidget->SetWidgetPlanesVisibility(true, 
m_poMultiWidget->GetRenderWindow4()->GetRenderer());



is that a bug or wanted?



2)

Why is there no GetWidgetPlanesVisibility function? How can i get the current 
state of the Plane visibility?








Gerald Lodron
Human-Centered Image Processing
Machine Vision Applications
DIGITAL - Institute of Information and Communication Technologies

JOANNEUM RESEARCH Forschungsgesellschaft mbH
Steyrergasse 17, 8010 Graz, AUSTRIA

phone:  +43-316-876-1751         fax: +43-316-876-1751

web:    http://www.joanneum.at/digital
e-mail: [email protected]<mailto:[email protected]>

------------------------------------------------------------------------------
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to