ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
rtk::ThreeDCircularProjectionGeometryXMLFileReader Class Reference

#include <rtkThreeDCircularProjectionGeometryXMLFileReader.h>

Detailed Description

Reads an XML-format file containing geometry for reconstruction

Test
rtkgeometryfiletest.cxx, rtkvariantest.cxx, rtkxradtest.cxx, rtkdigisenstest.cxx, rtkelektatest.cxx
Author
Simon Rit

Definition at line 44 of file rtkThreeDCircularProjectionGeometryXMLFileReader.h.

+ Inheritance diagram for rtk::ThreeDCircularProjectionGeometryXMLFileReader:
+ Collaboration diagram for rtk::ThreeDCircularProjectionGeometryXMLFileReader:

Public Types

using GeometryPointer = GeometryType::Pointer
 
using GeometryType = ThreeDCircularProjectionGeometry
 
using Pointer = itk::SmartPointer<Self>
 
using Self = ThreeDCircularProjectionGeometryXMLFileReader
 
using Superclass = itk::XMLReader<ThreeDCircularProjectionGeometry>
 
- Public Types inherited from itk::XMLReader< ThreeDCircularProjectionGeometry >
using Self
 
- Public Types inherited from itk::XMLReaderBase
using Self = XMLReaderBase
 
- Public Types inherited from itk::LightProcessObject
using ConstPointer = SmartPointer<const Self>
 
using Pointer = SmartPointer<Self>
 
using Self = LightProcessObject
 
using Superclass = Object
 
- Public Types inherited from itk::Object
using ConstPointer = SmartPointer<const Self>
 
using Pointer = SmartPointer<Self>
 
using Self = Object
 
using Superclass = LightObject
 
- Public Types inherited from itk::LightObject
using ConstPointer = SmartPointer<const Self>
 
using Pointer = SmartPointer<Self>
 
using Self = LightObject
 

Public Member Functions

int CanReadFile (const char *name) override
 
virtual::itk::LightObject::Pointer CreateAnother () const
 
virtual const GeometryType * GetGeometry () const
 
virtual GeometryType * GetModifiableGeometry ()
 
virtual const char * GetNameOfClass () const
 
- Public Member Functions inherited from itk::XMLReader< ThreeDCircularProjectionGeometry >
ThreeDCircularProjectionGeometry * GetOutputObject ()
 
ThreeDCircularProjectionGeometry * GetOutputObject ()
 
void SetOutputObject (ThreeDCircularProjectionGeometry *obj)
 
void SetOutputObject (ThreeDCircularProjectionGeometry *obj)
 
- Public Member Functions inherited from itk::XMLReaderBase
virtual void GenerateOutputInformation ()
 
virtual const char * GetFilename () const
 
virtual void SetFilename (const char *_arg)
 
- Public Member Functions inherited from itk::LightProcessObject
virtual void AbortGenerateDataOff ()
 
virtual void AbortGenerateDataOn ()
 
virtual const bool & GetAbortGenerateData () const
 
virtual void SetAbortGenerateData (bool _arg)
 
virtual void UpdateOutputData ()
 
void UpdateProgress (float amount)
 
virtual void SetProgress (float _arg)
 
virtual const float & GetProgress () const
 
- Public Member Functions inherited from itk::Object
unsigned long AddObserver (const EventObject &event, Command *cmd) const
 
unsigned long AddObserver (const EventObject &event, std::function< void(const EventObject &)> function) const
 
virtual void DebugOff () const
 
virtual void DebugOn () const
 
Command * GetCommand (unsigned long tag)
 
bool GetDebug () const
 
MetaDataDictionary & GetMetaDataDictionary ()
 
const MetaDataDictionary & GetMetaDataDictionary () const
 
virtual ModifiedTimeType GetMTime () const
 
virtual const TimeStamp & GetTimeStamp () const
 
bool HasObserver (const EventObject &event) const
 
void InvokeEvent (const EventObject &)
 
void InvokeEvent (const EventObject &) const
 
virtual void Modified () const
 
void Register () const override
 
void RemoveAllObservers ()
 
void RemoveObserver (unsigned long tag) const
 
void SetDebug (bool debugFlag) const
 
void SetReferenceCount (int) override
 
void UnRegister () const noexcept override
 
void SetMetaDataDictionary (const MetaDataDictionary &rhs)
 
void SetMetaDataDictionary (MetaDataDictionary &&rrhs)
 
virtual void SetObjectName (std::string _arg)
 
virtual const std::string & GetObjectName () const
 
- Public Member Functions inherited from itk::LightObject
Pointer Clone () const
 
virtual void Delete ()
 
virtual int GetReferenceCount () const
 
void Print (std::ostream &os, Indent indent=0) const
 

Static Public Member Functions

static Pointer New ()
 
- Static Public Member Functions inherited from itk::LightProcessObject
static Pointer New ()
 
- Static Public Member Functions inherited from itk::Object
static bool GetGlobalWarningDisplay ()
 
static void GlobalWarningDisplayOff ()
 
static void GlobalWarningDisplayOn ()
 
static Pointer New ()
 
static void SetGlobalWarningDisplay (bool val)
 
- Static Public Member Functions inherited from itk::LightObject
static void BreakOnError ()
 
static Pointer New ()
 

Static Public Attributes

static const unsigned int CurrentVersion = 3
 

Protected Member Functions

void CharacterDataHandler (const char *inData, int inLength) override
 
void EndElement (const char *name) override
 
void StartElement (const char *name)
 
void StartElement (const char *name, const char **atts) override
 
 ThreeDCircularProjectionGeometryXMLFileReader ()
 
 ~ThreeDCircularProjectionGeometryXMLFileReader () override=default
 
- Protected Member Functions inherited from itk::XMLReader< ThreeDCircularProjectionGeometry >
 XMLReader ()
 
 XMLReader ()
 
 ~XMLReader () override=default
 
 ~XMLReader () override=default
 
- Protected Member Functions inherited from itk::XMLReaderBase
void parse ()
 
void PrintSelf (std::ostream &os, Indent indent) const override
 
 XMLReaderBase ()=default
 
 ~XMLReaderBase () override=default
 
- Protected Member Functions inherited from itk::LightProcessObject
virtual void GenerateData ()
 
 LightProcessObject ()
 
 ~LightProcessObject () override
 
- Protected Member Functions inherited from itk::Object
 Object ()
 
bool PrintObservers (std::ostream &os, Indent indent) const
 
virtual void SetTimeStamp (const TimeStamp &timeStamp)
 
 ~Object () override
 
- Protected Member Functions inherited from itk::LightObject
virtual LightObject::Pointer InternalClone () const
 
 LightObject ()
 
virtual void PrintHeader (std::ostream &os, Indent indent) const
 
virtual void PrintTrailer (std::ostream &os, Indent indent) const
 
virtual ~LightObject ()
 

Private Attributes

double m_CollimationUInf { std::numeric_limits<double>::max() }
 
double m_CollimationUSup { std::numeric_limits<double>::max() }
 
double m_CollimationVInf { std::numeric_limits<double>::max() }
 
double m_CollimationVSup { std::numeric_limits<double>::max() }
 
std::string m_CurCharacterData
 
double m_GantryAngle { 0. }
 
GeometryPointer m_Geometry { GeometryType::New() }
 
double m_InPlaneAngle { 0. }
 
ThreeDCircularProjectionGeometry::MatrixType m_Matrix
 
double m_OutOfPlaneAngle { 0. }
 
double m_ProjectionOffsetX { 0. }
 
double m_ProjectionOffsetY { 0. }
 
double m_SourceOffsetX { 0. }
 
double m_SourceOffsetY { 0. }
 
double m_SourceToDetectorDistance { 0. }
 
double m_SourceToIsocenterDistance { 0. }
 
unsigned int m_Version { 0 }
 

Additional Inherited Members

- Protected Attributes inherited from itk::XMLReader< ThreeDCircularProjectionGeometry >
ThreeDCircularProjectionGeometry * m_OutputObject
 
ThreeDCircularProjectionGeometry * m_OutputObject
 
- Protected Attributes inherited from itk::XMLReaderBase
std::string m_Filename {}
 
- Protected Attributes inherited from itk::LightObject
std::atomic< int > m_ReferenceCount {}
 

Member Typedef Documentation

◆ GeometryPointer

◆ GeometryType

◆ Pointer

◆ Self

◆ Superclass

Constructor & Destructor Documentation

◆ ThreeDCircularProjectionGeometryXMLFileReader()

rtk::ThreeDCircularProjectionGeometryXMLFileReader::ThreeDCircularProjectionGeometryXMLFileReader ( )
protected

Referenced by GetNameOfClass().

◆ ~ThreeDCircularProjectionGeometryXMLFileReader()

rtk::ThreeDCircularProjectionGeometryXMLFileReader::~ThreeDCircularProjectionGeometryXMLFileReader ( )
overrideprotecteddefault

Member Function Documentation

◆ CanReadFile()

int rtk::ThreeDCircularProjectionGeometryXMLFileReader::CanReadFile ( const char * name)
overridevirtual

Determine if a file can be read

Implements itk::XMLReaderBase.

◆ CharacterDataHandler()

void rtk::ThreeDCircularProjectionGeometryXMLFileReader::CharacterDataHandler ( const char * inData,
int inLength )
overrideprotectedvirtual

Callback function – called from XML parser with the character data for an XML element

Implements itk::XMLReaderBase.

◆ CreateAnother()

virtual::itk::LightObject::Pointer rtk::ThreeDCircularProjectionGeometryXMLFileReader::CreateAnother ( ) const
virtual

Create an object from an instance, potentially deferring to a factory. This method allows you to create an instance of an object that is exactly the same type as the referring object. This is useful in cases where an object has been cast back to a base class.

Reimplemented from itk::LightProcessObject.

◆ EndElement()

void rtk::ThreeDCircularProjectionGeometryXMLFileReader::EndElement ( const char * name)
overrideprotectedvirtual

Callback function – called from XML parser when ending tag encountered

Implements itk::XMLReaderBase.

◆ GetGeometry()

virtual const GeometryType * rtk::ThreeDCircularProjectionGeometryXMLFileReader::GetGeometry ( ) const
virtual

◆ GetModifiableGeometry()

virtual GeometryType * rtk::ThreeDCircularProjectionGeometryXMLFileReader::GetModifiableGeometry ( )
virtual

Get smart pointer to projection geometry.

◆ GetNameOfClass()

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

Run-time type information (and related methods).

Reimplemented from itk::LightProcessObject.

References ThreeDCircularProjectionGeometryXMLFileReader().

◆ New()

static Pointer rtk::ThreeDCircularProjectionGeometryXMLFileReader::New ( )
static

Method for creation through the object factory.

◆ StartElement() [1/2]

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

◆ StartElement() [2/2]

void rtk::ThreeDCircularProjectionGeometryXMLFileReader::StartElement ( const char * name,
const char ** atts )
overrideprotectedvirtual

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

Implements itk::XMLReaderBase.

Member Data Documentation

◆ CurrentVersion

const unsigned int rtk::ThreeDCircularProjectionGeometryXMLFileReader::CurrentVersion = 3
static

Latest version

Definition at line 59 of file rtkThreeDCircularProjectionGeometryXMLFileReader.h.

◆ m_CollimationUInf

double rtk::ThreeDCircularProjectionGeometryXMLFileReader::m_CollimationUInf { std::numeric_limits<double>::max() }
private

◆ m_CollimationUSup

double rtk::ThreeDCircularProjectionGeometryXMLFileReader::m_CollimationUSup { std::numeric_limits<double>::max() }
private

◆ m_CollimationVInf

double rtk::ThreeDCircularProjectionGeometryXMLFileReader::m_CollimationVInf { std::numeric_limits<double>::max() }
private

◆ m_CollimationVSup

double rtk::ThreeDCircularProjectionGeometryXMLFileReader::m_CollimationVSup { std::numeric_limits<double>::max() }
private

◆ m_CurCharacterData

std::string rtk::ThreeDCircularProjectionGeometryXMLFileReader::m_CurCharacterData
private

◆ m_GantryAngle

double rtk::ThreeDCircularProjectionGeometryXMLFileReader::m_GantryAngle { 0. }
private

◆ m_Geometry

GeometryPointer rtk::ThreeDCircularProjectionGeometryXMLFileReader::m_Geometry { GeometryType::New() }
private

◆ m_InPlaneAngle

double rtk::ThreeDCircularProjectionGeometryXMLFileReader::m_InPlaneAngle { 0. }
private

Projection parameters

Definition at line 99 of file rtkThreeDCircularProjectionGeometryXMLFileReader.h.

◆ m_Matrix

ThreeDCircularProjectionGeometry::MatrixType rtk::ThreeDCircularProjectionGeometryXMLFileReader::m_Matrix
private

Projection matrix

Definition at line 114 of file rtkThreeDCircularProjectionGeometryXMLFileReader.h.

◆ m_OutOfPlaneAngle

double rtk::ThreeDCircularProjectionGeometryXMLFileReader::m_OutOfPlaneAngle { 0. }
private

◆ m_ProjectionOffsetX

double rtk::ThreeDCircularProjectionGeometryXMLFileReader::m_ProjectionOffsetX { 0. }
private

◆ m_ProjectionOffsetY

double rtk::ThreeDCircularProjectionGeometryXMLFileReader::m_ProjectionOffsetY { 0. }
private

◆ m_SourceOffsetX

double rtk::ThreeDCircularProjectionGeometryXMLFileReader::m_SourceOffsetX { 0. }
private

◆ m_SourceOffsetY

double rtk::ThreeDCircularProjectionGeometryXMLFileReader::m_SourceOffsetY { 0. }
private

◆ m_SourceToDetectorDistance

double rtk::ThreeDCircularProjectionGeometryXMLFileReader::m_SourceToDetectorDistance { 0. }
private

◆ m_SourceToIsocenterDistance

double rtk::ThreeDCircularProjectionGeometryXMLFileReader::m_SourceToIsocenterDistance { 0. }
private

◆ m_Version

unsigned int rtk::ThreeDCircularProjectionGeometryXMLFileReader::m_Version { 0 }
private

File format version

Definition at line 117 of file rtkThreeDCircularProjectionGeometryXMLFileReader.h.


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