Hi,
I'm trying to store and read the data tree hierarchy as XML using the
mitk::DataTree::Save and mitk::DataTree::Load functions, respectively.
mitk::XMLWriter writer( "testXML" );
mitk::DataTree::Save( this->GetDataTreeIterator() ,
(mitk::XMLWriter&)writer, false);
then
mitk::DataTree::Load( this->GetDataTreeIterator(), "testXML" );
The save function creates an .xml file that can be loaded with the load
function. However, whenever I load an .xml-file and then click on the
name of the loaded data set in the datamanager, an exception is thrown
in the Print method of itkLightObject.
It seems that the mitktransferfunctionproperty does not exist for the
loaded object.
Maybe I'm just using the xml-loader in a wrong way. Does anyone have an
idea what could cause the problem here?
Thanks a lot,
best,
Marius
Here the call stack:
ITKCommon.dll!itk::LightObject::Print(std::basic_ostream<char,std::char_traits<char>
> & os={...}, itk::Indent indent={...}) Line 114 + 0x4 bytes C++
mitkCore.dll!itk::operator<<<mitk::TransferFunction>(std::basic_ostream<char,std::char_traits<char>
> & os={...}, itk::SmartPointer<mitk::TransferFunction> p={...}) Line
157 C++
> mitkCore.dll!mitk::TransferFunctionProperty::GetValueAsString()
Line 60 C++
Qmitk.dll!QmitkPropertyListViewItemFactory::CreateQmitkPropertyListViewItem(mitk::PropertyList
* propList=0x0509c940,
std::basic_string<char,std::char_traits<char>,std::allocator<char> >
name="TransferFunction", QWidget * parent=0x087392e0, bool
createOnlyControl=false) Line 178 + 0x41 bytes C++
Qmitk.dll!QmitkPropertyListViewItem::CreateInstance(mitk::PropertyList
* propList=0x0509c940,
std::basic_string<char,std::char_traits<char>,std::allocator<char> >
name="TransferFunction", QWidget * parent=0x087392e0, bool
createOnlyControl=false) Line 71 + 0x2a bytes C++
Qmitk.dll!QmitkPropertyListView::SetPropertyList(mitk::PropertyList
* propertyList=0x0509c940) Line 115 + 0x3b bytes C++
QmitkDataManager.dll!QmitkDataManagerControls::TreeSelectionChanged(QListViewItem
* item=0x07dc7ec0) Line 195 + 0x3c bytes C++
QmitkDataManager.dll!QmitkDataManagerControls::qt_invoke(int
_id=60, QUObject * _o=0x00e8f680) Line 196 C++
-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users