RTK  1.4.0
Reconstruction Toolkit
Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
rtk::ElektaXVI5GeometryXMLFileReader Class Reference

#include <rtkElektaXVI5GeometryXMLFile.h>

+ Inheritance diagram for rtk::ElektaXVI5GeometryXMLFileReader:
+ Collaboration diagram for rtk::ElektaXVI5GeometryXMLFileReader:

Public Types

typedef GeometryType::Pointer GeometryPointer
 
typedef ThreeDCircularProjectionGeometry GeometryType
 
typedef itk::SmartPointer< SelfPointer
 
typedef ElektaXVI5GeometryXMLFileReader Self
 
typedef itk::XMLReader< ThreeDCircularProjectionGeometrySuperclass
 

Public Member Functions

int CanReadFile (const char *name) override
 
virtual ::itk::LightObject::Pointer CreateAnother () const
 
virtual GeometryPointer GetGeometry ()
 
virtual const char * GetNameOfClass () const
 

Static Public Member Functions

static Pointer New ()
 

Static Public Attributes

static const unsigned int CurrentVersion = 2
 

Protected Member Functions

void CharacterDataHandler (const char *inData, int inLength) override
 
 ElektaXVI5GeometryXMLFileReader ()
 
void EndElement (const char *name) override
 
void StartElement (const char *name, const char **atts) override
 
void StartElement (const char *name)
 
virtual ~ElektaXVI5GeometryXMLFileReader () override
 

Private Member Functions

 ElektaXVI5GeometryXMLFileReader (const Self &)
 
void operator= (const Self &)
 

Private Attributes

std::string m_CurCharacterData
 
double m_GantryAngle
 
GeometryPointer m_Geometry
 
double m_InPlaneAngle
 
ThreeDCircularProjectionGeometry::MatrixType m_Matrix
 
double m_OutOfPlaneAngle
 
double m_ProjectionOffsetX
 
double m_ProjectionOffsetY
 
double m_SourceOffsetX
 
double m_SourceOffsetY
 
double m_SourceToDetectorDistance
 
double m_SourceToIsocenterDistance
 
unsigned int m_Version
 

Detailed Description

Reads an XML-format file of XVI version = 5.0.2 (_Frame.xml in each projection directory). From XVI_v5 on, thre is no need of accessing .DBF files (FRAME.DBF / IMAGE.DBF). This class is basically inspired by ThreeDCircularProjectionGeometryXMLFileReader. Writer is not implemented. SAD = 1000 mm, SID = 1536 mm are hard-coded since _Frame.xml doesn't include these values. Regarding PanelOffset, XVI5 specifies position of the center (UCentre, VCentre) instead of offset. Therefore, negation is required to get classical m_ProjectionOffsetX and m_ProjectionOffsetY values.

Author
Yang K Park (theda.nosp@m.y79@.nosp@m.gmail.nosp@m..com)

Definition at line 46 of file rtkElektaXVI5GeometryXMLFile.h.

Member Typedef Documentation

Definition at line 57 of file rtkElektaXVI5GeometryXMLFile.h.

Convenient typedefs

Definition at line 56 of file rtkElektaXVI5GeometryXMLFile.h.

Definition at line 53 of file rtkElektaXVI5GeometryXMLFile.h.

Standard typedefs

Definition at line 51 of file rtkElektaXVI5GeometryXMLFile.h.

Definition at line 52 of file rtkElektaXVI5GeometryXMLFile.h.

Constructor & Destructor Documentation

rtk::ElektaXVI5GeometryXMLFileReader::ElektaXVI5GeometryXMLFileReader ( )
protected
virtual rtk::ElektaXVI5GeometryXMLFileReader::~ElektaXVI5GeometryXMLFileReader ( )
inlineoverrideprotectedvirtual

Definition at line 76 of file rtkElektaXVI5GeometryXMLFile.h.

rtk::ElektaXVI5GeometryXMLFileReader::ElektaXVI5GeometryXMLFileReader ( const Self )
private

Member Function Documentation

int rtk::ElektaXVI5GeometryXMLFileReader::CanReadFile ( const char *  name)
override

Determine if a file can be read

void rtk::ElektaXVI5GeometryXMLFileReader::CharacterDataHandler ( const char *  inData,
int  inLength 
)
overrideprotected
virtual::itk::LightObject::Pointer rtk::ElektaXVI5GeometryXMLFileReader::CreateAnother ( ) const
void rtk::ElektaXVI5GeometryXMLFileReader::EndElement ( const char *  name)
overrideprotected
virtual GeometryPointer rtk::ElektaXVI5GeometryXMLFileReader::GetGeometry ( )
virtual

Get smart pointer to projection geometry.

virtual const char* rtk::ElektaXVI5GeometryXMLFileReader::GetNameOfClass ( ) const
virtual

Run-time type information (and related methods).

Reimplemented from itk::LightProcessObject.

static Pointer rtk::ElektaXVI5GeometryXMLFileReader::New ( )
static

Method for creation through the object factory.

void rtk::ElektaXVI5GeometryXMLFileReader::operator= ( const Self )
private
void rtk::ElektaXVI5GeometryXMLFileReader::StartElement ( const char *  name,
const char **  atts 
)
overrideprotected

Callback function – called from XML parser with start-of-element information.

void rtk::ElektaXVI5GeometryXMLFileReader::StartElement ( const char *  name)
protected

Member Data Documentation

const unsigned int rtk::ElektaXVI5GeometryXMLFileReader::CurrentVersion = 2
static

Latest version

Definition at line 60 of file rtkElektaXVI5GeometryXMLFile.h.

std::string rtk::ElektaXVI5GeometryXMLFileReader::m_CurCharacterData
private

Definition at line 96 of file rtkElektaXVI5GeometryXMLFile.h.

double rtk::ElektaXVI5GeometryXMLFileReader::m_GantryAngle
private

Definition at line 101 of file rtkElektaXVI5GeometryXMLFile.h.

GeometryPointer rtk::ElektaXVI5GeometryXMLFileReader::m_Geometry
private

Definition at line 94 of file rtkElektaXVI5GeometryXMLFile.h.

double rtk::ElektaXVI5GeometryXMLFileReader::m_InPlaneAngle
private

Projection parameters

Definition at line 99 of file rtkElektaXVI5GeometryXMLFile.h.

ThreeDCircularProjectionGeometry::MatrixType rtk::ElektaXVI5GeometryXMLFileReader::m_Matrix
private

Projection matrix

Definition at line 110 of file rtkElektaXVI5GeometryXMLFile.h.

double rtk::ElektaXVI5GeometryXMLFileReader::m_OutOfPlaneAngle
private

Definition at line 100 of file rtkElektaXVI5GeometryXMLFile.h.

double rtk::ElektaXVI5GeometryXMLFileReader::m_ProjectionOffsetX
private

Definition at line 106 of file rtkElektaXVI5GeometryXMLFile.h.

double rtk::ElektaXVI5GeometryXMLFileReader::m_ProjectionOffsetY
private

Definition at line 107 of file rtkElektaXVI5GeometryXMLFile.h.

double rtk::ElektaXVI5GeometryXMLFileReader::m_SourceOffsetX
private

Definition at line 103 of file rtkElektaXVI5GeometryXMLFile.h.

double rtk::ElektaXVI5GeometryXMLFileReader::m_SourceOffsetY
private

Definition at line 104 of file rtkElektaXVI5GeometryXMLFile.h.

double rtk::ElektaXVI5GeometryXMLFileReader::m_SourceToDetectorDistance
private

Definition at line 105 of file rtkElektaXVI5GeometryXMLFile.h.

double rtk::ElektaXVI5GeometryXMLFileReader::m_SourceToIsocenterDistance
private

Definition at line 102 of file rtkElektaXVI5GeometryXMLFile.h.

unsigned int rtk::ElektaXVI5GeometryXMLFileReader::m_Version
private

File format version

Definition at line 113 of file rtkElektaXVI5GeometryXMLFile.h.


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