Hi Mitk Users,

We implemented "Re: [mitk-users] Two data sets in different render widgets
of the QMitkStdMultiWidget" (Wed, 13 Oct 2010 07:49:03 -0700):


- Instantiate a separate mitk::DataStorage object (as Jochen suggested) and
insert your second dataset. Then you could open a second QMitkStdMultiWidget
which renders your separate mitk::DataStorage contents by calling: 

 
// Implement the mitk::IDataStorageReference interface
class MyDataStorageRef : public mitk::IDataStorageReference

{ ... } // see the internal class mitkDataStorageReference class for an
example 

 
mitk::IDataStorageReference myDataStorageRef = new MyDataStorageRef(...);

mitk::DataStorageEditorInput::Pointer myDataStorageInput = new
mitk::DataStorageEditorInput(myDataStorageRef);
berry::PlatformUI::GetWorkbench()->GetActiveWorkbenchWindow()->GetActivePage
()->OpenEditor(myDataStorageInput, QmitkStdMultiWidgetEditor::EDITOR_ID); 

 

Now I am trying to save the 2 data sets in a ".mitk" file. The problem is
that in QmitkExtFileSaveProjectAction::Run(), the following is called:

 

    berry::IEditorPart::Pointer editor =
m_Window->GetActivePage()->GetActiveEditor();

 

to access the editor. How can I access the 2nd editor to save both in the
file?

 

Sincerely,

Joe Giacomini

 

 


 

------------------------------------------------------------------------------
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software 
be a part of the solution? Download the Intel(R) Manageability Checker 
today! http://p.sf.net/sfu/intel-dev2devmar
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to