Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
mitk::ProportionalTimeGeometryToXML Class Reference

#include <mitkProportionalTimeGeometryToXML.h>

Static Public Member Functions

static tinyxml2::XMLElement * ToXML (tinyxml2::XMLDocument &doc, const ProportionalTimeGeometry *geometry)
 Serialize the given ProportionalTimeGeometry to an XML element. More...
 
static ProportionalTimeGeometry::Pointer FromXML (const tinyxml2::XMLElement *node)
 Deserialize a ProportionalTimeGeometry from an XML element. More...
 

Detailed Description

Definition at line 40 of file mitkProportionalTimeGeometryToXML.h.

Member Function Documentation

◆ FromXML()

static ProportionalTimeGeometry::Pointer mitk::ProportionalTimeGeometryToXML::FromXML ( const tinyxml2::XMLElement *  node)
static

Deserialize a ProportionalTimeGeometry from an XML element.

Interprets only the format created by ToXML().

Parameters
[in]nodeThe XML element containing the time geometry data.
Returns
A new ProportionalTimeGeometry instance, or nullptr on failure.

◆ ToXML()

static tinyxml2::XMLElement* mitk::ProportionalTimeGeometryToXML::ToXML ( tinyxml2::XMLDocument &  doc,
const ProportionalTimeGeometry *  geometry 
)
static

Serialize the given ProportionalTimeGeometry to an XML element.

Parameters
[in,out]docThe XML document that owns the created element.
[in]geometryThe ProportionalTimeGeometry to serialize.
Returns
The XML element representing the time geometry.

The documentation for this class was generated from the following file: