17 #ifndef mitkMeasurementFramePropertySerializer_h_included
18 #define mitkMeasurementFramePropertySerializer_h_included
33 mitkClassMacro( MeasurementFramePropertySerializer, BasePropertySerializer )
34 itkFactorylessNewMacro(Self)
37 virtual TiXmlElement* Serialize()
override
39 if (
const MeasurementFrameProperty* prop = dynamic_cast<const MeasurementFrameProperty*>(m_Property.GetPointer()))
43 const MeasurementFrameType & mft = prop->GetMeasurementFrame();
45 if(mft.is_zero())
return nullptr;
47 auto element =
new TiXmlElement(
"measurementframe");
49 auto child =
new TiXmlElement(
"entry");
52 child->SetAttribute(
"value", ss.str());
53 element->InsertEndChild(*child);
62 if (!element)
return nullptr;
64 TiXmlElement* entry = element->FirstChildElement(
"entry" )->ToElement();
69 entry->QueryStringAttribute(
"value",&value);
73 matrix.read_ascii(ss);
80 MeasurementFramePropertySerializer() {}
81 virtual ~MeasurementFramePropertySerializer() {}
#define MITK_REGISTER_SERIALIZER(classname)
vnl_matrix_fixed< double, 3, 3 > MeasurementFrameType
DataCollection - Class to facilitate loading/accessing structured data.
itk::SmartPointer< Self > Pointer
#define MITKDIFFUSIONCORE_EXPORT
#define mitkClassMacro(className, SuperClassName)
static itkEventMacro(BoundingShapeInteractionEvent, itk::AnyEvent) class MITKBOUNDINGSHAPE_EXPORT BoundingShapeInteractor Pointer New()
Basic interaction methods for mitk::GeometryData.