RTK  2.6.0
Reconstruction Toolkit
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
rtk::ThreeDCircularProjectionGeometryXMLFileWriter Class Reference

#include <rtkThreeDCircularProjectionGeometryXMLFileWriter.h>

+ Inheritance diagram for rtk::ThreeDCircularProjectionGeometryXMLFileWriter:
+ Collaboration diagram for rtk::ThreeDCircularProjectionGeometryXMLFileWriter:

Public Types

using Pointer = itk::SmartPointer< Self >
 
using Self = ThreeDCircularProjectionGeometryXMLFileWriter
 
using Superclass = itk::XMLWriterBase< ThreeDCircularProjectionGeometry >
 

Public Member Functions

int CanWriteFile (const char *name) override
 
virtual ::itk::LightObject::Pointer CreateAnother () const
 
int WriteFile () override
 
virtual const char * GetNameOfClass () const
 

Static Public Member Functions

static Pointer New ()
 

Protected Member Functions

 ThreeDCircularProjectionGeometryXMLFileWriter ()=default
 
bool WriteGlobalParameter (std::ofstream &output, const std::string &indent, const std::vector< double > &v, const std::string &s, bool convertToDegrees=false, double defval=0.)
 
void WriteLocalParameter (std::ofstream &output, const std::string &indent, const double &v, const std::string &s)
 
 ~ThreeDCircularProjectionGeometryXMLFileWriter () override=default
 

Detailed Description

Writes an XML-format file containing geometry for reconstruction

Author
Simon Rit

Definition at line 41 of file rtkThreeDCircularProjectionGeometryXMLFileWriter.h.

Member Typedef Documentation

◆ Pointer

◆ Self

◆ Superclass

standard type alias

Definition at line 48 of file rtkThreeDCircularProjectionGeometryXMLFileWriter.h.

Constructor & Destructor Documentation

◆ ThreeDCircularProjectionGeometryXMLFileWriter()

rtk::ThreeDCircularProjectionGeometryXMLFileWriter::ThreeDCircularProjectionGeometryXMLFileWriter ( )
protecteddefault

◆ ~ThreeDCircularProjectionGeometryXMLFileWriter()

rtk::ThreeDCircularProjectionGeometryXMLFileWriter::~ThreeDCircularProjectionGeometryXMLFileWriter ( )
overrideprotecteddefault

Member Function Documentation

◆ CanWriteFile()

int rtk::ThreeDCircularProjectionGeometryXMLFileWriter::CanWriteFile ( const char *  name)
override

Test whether a file is writable.

◆ CreateAnother()

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

Reimplemented from itk::Object.

◆ GetNameOfClass()

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

Run-time type information (and related methods).

Reimplemented from itk::LightProcessObject.

◆ New()

static Pointer rtk::ThreeDCircularProjectionGeometryXMLFileWriter::New ( )
static

Method for creation through the object factory.

Referenced by rtk::WriteGeometry().

◆ WriteFile()

int rtk::ThreeDCircularProjectionGeometryXMLFileWriter::WriteFile ( )
override

Actually write out the file in question

◆ WriteGlobalParameter()

bool rtk::ThreeDCircularProjectionGeometryXMLFileWriter::WriteGlobalParameter ( std::ofstream &  output,
const std::string &  indent,
const std::vector< double > &  v,
const std::string &  s,
bool  convertToDegrees = false,
double  defval = 0. 
)
protected

If all values are equal in v, write first value (if not 0.) in output file with parameter value s and return true. Return false otherwise.

◆ WriteLocalParameter()

void rtk::ThreeDCircularProjectionGeometryXMLFileWriter::WriteLocalParameter ( std::ofstream &  output,
const std::string &  indent,
const double &  v,
const std::string &  s 
)
protected

Write projection specific parameter with name s.


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