UsTK : Ultrasound ToolKit  version 2.0.1 under development (2024-11-21)
usImageHeaderXmlParser Class Reference

#include <visp3/ustk_core/usImageHeaderXmlParser.h>

+ Inheritance diagram for usImageHeaderXmlParser:

Public Types

enum  vpXmlCodeType {
  CODE_XML_BAD = -1 , CODE_XML_FRAME_COUNT , CODE_XML_TIME_STAMP , CODE_XML_DATA_RATE ,
  CODE_XML_DATA_LENGTH , CODE_XML_SAMPLE_SIZE , CODE_XML_IMAGE_TYPE , CODE_XML_FRAME_WITH ,
  CODE_XML_FRAME_HEIGHT , CODE_XML_PIXEL_WIDTH , CODE_XML_PIXEL_HEIGHT , CODE_XML_TRANSMIT_FRQUENCY ,
  CODE_XML_SAMPLING_FREQUENCY , CODE_XML_TRANSDUCER_RADIUS , CODE_XML_SCANLINE_PITCH , CODE_XML_SCANLINE_NUMBER ,
  CODE_XML_IMAGE_DEPTH , CODE_XML_ANGLE_PER_FRAME , CODE_XML_FRAME_PER_VOLUME , CODE_XML_MOTOR_RADIUS ,
  CODE_XML_MOTOR_TYPE , CODE_XML_SEQUENCE_NAME
}
 
enum  vpXmlCodeSequenceType { SEQUENCE_OK , SEQUENCE_ERROR }
 

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)
 

Detailed Description

Input/output operations between ultrasound image header and the assiciated xml files. Used for virtual server.

Definition at line 58 of file usImageHeaderXmlParser.h.

Member Enumeration Documentation

◆ vpXmlCodeSequenceType

Enumerator
SEQUENCE_OK 
SEQUENCE_ERROR 

Definition at line 89 of file usImageHeaderXmlParser.h.

◆ vpXmlCodeType

Enumerator
CODE_XML_BAD 
CODE_XML_FRAME_COUNT 
CODE_XML_TIME_STAMP 
CODE_XML_DATA_RATE 
CODE_XML_DATA_LENGTH 
CODE_XML_SAMPLE_SIZE 
CODE_XML_IMAGE_TYPE 
CODE_XML_FRAME_WITH 
CODE_XML_FRAME_HEIGHT 
CODE_XML_PIXEL_WIDTH 
CODE_XML_PIXEL_HEIGHT 
CODE_XML_TRANSMIT_FRQUENCY 
CODE_XML_SAMPLING_FREQUENCY 
CODE_XML_TRANSDUCER_RADIUS 
CODE_XML_SCANLINE_PITCH 
CODE_XML_SCANLINE_NUMBER 
CODE_XML_IMAGE_DEPTH 
CODE_XML_ANGLE_PER_FRAME 
CODE_XML_FRAME_PER_VOLUME 
CODE_XML_MOTOR_RADIUS 
CODE_XML_MOTOR_TYPE 
CODE_XML_SEQUENCE_NAME 

Definition at line 64 of file usImageHeaderXmlParser.h.

Constructor & Destructor Documentation

◆ usImageHeaderXmlParser()

◆ ~usImageHeaderXmlParser()

usImageHeaderXmlParser::~usImageHeaderXmlParser ( )
virtual

Destructor.

Definition at line 73 of file usImageHeaderXmlParser.cpp.

Member Function Documentation

◆ getImageHeader()

us::usImageHeader const usImageHeaderXmlParser::getImageHeader ( )
inline

Definition at line 92 of file usImageHeaderXmlParser.h.

◆ getSequenceFileName()

std::string usImageHeaderXmlParser::getSequenceFileName ( ) const
inline

Definition at line 93 of file usImageHeaderXmlParser.h.

◆ readMainClass()

◆ setImageHeader()

void usImageHeaderXmlParser::setImageHeader ( const us::usImageHeader  imageHeader)
inline

Definition at line 96 of file usImageHeaderXmlParser.h.

◆ setSequenceFileName()

void usImageHeaderXmlParser::setSequenceFileName ( const std::string  sequence_name)
inline

Definition at line 97 of file usImageHeaderXmlParser.h.

◆ writeMainClass()