Hi, On 10/29/2012 06:07 PM, Miguel Nunes wrote: > Hi Sascha, > > I have been checking the documentation and the code around workbench and > I still cant understand how loading data is processed and where it is > stored. I apologize, but I don't understand what these mappers are. I > have been, for a week now, trying to understand and creating a simple > example-plugin for me. No problem. I have the feeling that I didn't fully understand what you want to do. From your previous mails, I thought that you would like to use custom visualization code and render certain data objects (medical images, surfaces,...?) in a specific way. This is way I pointed you into the "mappers" direction.
Maybe it would help if you try again to explain your specific use case. > Is there any place (docs, example, thread) that discusses and explain > this in detail? We have a general "Concepts" site: http://docs.mitk.org/nightly-qt4/Concepts.html While I think our documentation has improved a lot in the last year, there are certainly topics on which we could improve. > I just want to know how to access the data I loaded into the workbench. > > I am trying to do, on my plugin cpp: > > mitk::DataStorage::Pointer m_DataStorage; > mitk::IDataStorageReference::Pointer ref = > this->GetDataStorageReference(); > > if (ref.IsNotNull()) m_DataStorage = ref->GetDataStorage(); > else return; > > mitk::DataNode::Pointer dnode = m_DataStorage->GetNode(); > > mitk::BaseData::Pointer bdata = dnode->GetData(); > mitk::Geometry3D::Pointer geo3d = bdata->GetGeometry(); > > > does this make any sense? I get a error while running this, like there > is no data. Should I get an "instance"? am I looking in the wrong place? Looks approximately right, if you are trying to access existing data from a plug-in (e.g. from inside a View). Could you please provide more context information and exact error messages? > I am sorry but this is starting to be a little annoying. No worries. As said above, maybe we should start over and try to state your use-case in more detail. Best, Sascha ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_sfd2d_oct _______________________________________________ mitk-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mitk-users
