UsTK : Ultrasound ToolKit
version 2.0.1 under development (2024-12-17)
|
#include <visp3/ustk_core/usImageHeaderXmlParser.h>
Public Member Functions | |
usImageHeaderXmlParser () | |
virtual | ~usImageHeaderXmlParser () |
us::usImageHeader const | getImageHeader () |
std::string | getSequenceFileName () const |
void | setImageHeader (const us::usImageHeader imageHeader) |
void | setSequenceFileName (const std::string sequence_name) |
Protected Member Functions | |
void | readMainClass (xmlDocPtr doc, xmlNodePtr node) |
void | writeMainClass (xmlNodePtr node) |
Input/output operations between ultrasound image header and the associated xml files. Used for virtual server.
Definition at line 58 of file usImageHeaderXmlParser.h.
Enumerator | |
---|---|
SEQUENCE_OK | |
SEQUENCE_ERROR |
Definition at line 90 of file usImageHeaderXmlParser.h.
Definition at line 64 of file usImageHeaderXmlParser.h.
usImageHeaderXmlParser::usImageHeaderXmlParser | ( | ) |
Default constructor.
Definition at line 45 of file usImageHeaderXmlParser.cpp.
References CODE_XML_ANGLE_PER_FRAME, CODE_XML_DATA_LENGTH, CODE_XML_DATA_RATE, CODE_XML_FRAME_COUNT, CODE_XML_FRAME_HEIGHT, CODE_XML_FRAME_PER_VOLUME, CODE_XML_FRAME_WITH, CODE_XML_IMAGE_DEPTH, CODE_XML_IMAGE_TYPE, CODE_XML_MOTOR_RADIUS, CODE_XML_MOTOR_TYPE, CODE_XML_PIXEL_HEIGHT, CODE_XML_PIXEL_WIDTH, CODE_XML_SAMPLE_SIZE, CODE_XML_SAMPLING_FREQUENCY, CODE_XML_SCANLINE_NUMBER, CODE_XML_SCANLINE_PITCH, CODE_XML_SEQUENCE_NAME, CODE_XML_TIME_STAMP, CODE_XML_TRANSDUCER_RADIUS, and CODE_XML_TRANSMIT_FRQUENCY.
|
virtual |
Destructor.
Definition at line 73 of file usImageHeaderXmlParser.cpp.
|
inline |
Definition at line 93 of file usImageHeaderXmlParser.h.
|
inline |
Definition at line 94 of file usImageHeaderXmlParser.h.
|
protected |
Reading method, called by vpXmlParser::parse().
doc | a pointer representing the document |
node | : the root node of the document |
Definition at line 80 of file usImageHeaderXmlParser.cpp.
References us::usImageHeader::anglePerFr, CODE_XML_ANGLE_PER_FRAME, CODE_XML_DATA_LENGTH, CODE_XML_DATA_RATE, CODE_XML_FRAME_COUNT, CODE_XML_FRAME_HEIGHT, CODE_XML_FRAME_PER_VOLUME, CODE_XML_FRAME_WITH, CODE_XML_IMAGE_DEPTH, CODE_XML_IMAGE_TYPE, CODE_XML_MOTOR_RADIUS, CODE_XML_MOTOR_TYPE, CODE_XML_PIXEL_HEIGHT, CODE_XML_PIXEL_WIDTH, CODE_XML_SAMPLE_SIZE, CODE_XML_SAMPLING_FREQUENCY, CODE_XML_SCANLINE_NUMBER, CODE_XML_SCANLINE_PITCH, CODE_XML_SEQUENCE_NAME, CODE_XML_TIME_STAMP, CODE_XML_TRANSDUCER_RADIUS, CODE_XML_TRANSMIT_FRQUENCY, us::usImageHeader::dataLength, us::usImageHeader::dataRate, us::usImageHeader::frameCount, us::usImageHeader::frameHeight, us::usImageHeader::framesPerVolume, us::usImageHeader::frameWidth, us::usImageHeader::imageDepth, us::usImageHeader::imageType, us::usImageHeader::motorRadius, us::usImageHeader::motorType, us::usImageHeader::pixelHeight, us::usImageHeader::pixelWidth, us::usImageHeader::samplingFrequency, us::usImageHeader::scanLineNumber, us::usImageHeader::scanLinePitch, us::usImageHeader::ss, us::usImageHeader::timeStamp, us::usImageHeader::transducerRadius, and us::usImageHeader::transmitFrequency.
|
inline |
Definition at line 97 of file usImageHeaderXmlParser.h.
|
inline |
Definition at line 98 of file usImageHeaderXmlParser.h.
|
protected |
Writing method, called by vpXmlParser::save().
node | : the root node of the document |
Definition at line 163 of file usImageHeaderXmlParser.cpp.
References us::usImageHeader::anglePerFr, us::usImageHeader::dataLength, us::usImageHeader::dataRate, us::usImageHeader::frameCount, us::usImageHeader::frameHeight, us::usImageHeader::framesPerVolume, us::usImageHeader::frameWidth, us::usImageHeader::imageDepth, us::usImageHeader::imageType, us::usImageHeader::motorRadius, us::usImageHeader::motorType, us::usImageHeader::pixelHeight, us::usImageHeader::pixelWidth, us::usImageHeader::samplingFrequency, us::usImageHeader::scanLineNumber, us::usImageHeader::scanLinePitch, us::usImageHeader::ss, us::usImageHeader::timeStamp, us::usImageHeader::transducerRadius, and us::usImageHeader::transmitFrequency.