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

#include <rtkForbildPhantomFileReader.h>

+ Inheritance diagram for rtk::ForbildPhantomFileReader:
+ Collaboration diagram for rtk::ForbildPhantomFileReader:

Public Types

using ConstPointer = itk::SmartPointer< const Self >
 
using ConvexShapeVectorType = GeometricPhantom::ConvexShapeVector
 
using GeometricPhantomPointer = GeometricPhantom::Pointer
 
using Pointer = itk::SmartPointer< Self >
 
using PointType = ConvexShape::PointType
 
using RotationMatrixType = ConvexShape::RotationMatrixType
 
using ScalarType = ConvexShape::ScalarType
 
using Self = ForbildPhantomFileReader
 
using Superclass = itk::Object
 
using VectorType = ConvexShape::VectorType
 

Public Member Functions

virtual ::itk::LightObject::Pointer CreateAnother () const
 
virtual void GenerateOutputInformation ()
 
virtual const char * GetNameOfClass () const
 
virtual GeometricPhantomGetModifiableGeometricPhantom ()
 
virtual const GeometricPhantomGetGeometricPhantom () const
 
virtual void SetGeometricPhantom (GeometricPhantom *_arg)
 
virtual const char * GetFilename () const
 
virtual void SetFilename (const char *_arg)
 

Static Public Member Functions

static Pointer New ()
 

Static Public Attributes

static constexpr unsigned int Dimension = ConvexShape::Dimension
 

Protected Member Functions

RotationMatrixType ComputeRotationMatrixBetweenVectors (const VectorType &source, const VectorType &dest) const
 
void CreateForbildBox (const std::string &s)
 
void CreateForbildCone (const std::string &s, const std::string &fig)
 
void CreateForbildCylinder (const std::string &s, const std::string &fig)
 
void CreateForbildEllipsoid (const std::string &s, const std::string &fig)
 
void CreateForbildElliptCyl (const std::string &s, const std::string &fig)
 
void CreateForbildSphere (const std::string &s)
 
void CreateForbildTetrahedron (const std::string &s)
 
void FindClipPlanes (const std::string &s)
 
bool FindParameterInString (const std::string &name, const std::string &s, ScalarType &param)
 
void FindUnions (const std::string &s)
 
bool FindVectorInString (const std::string &name, const std::string &s, VectorType &vec)
 
 ForbildPhantomFileReader ()=default
 
 ~ForbildPhantomFileReader () override=default
 

Private Attributes

PointType m_Center
 
ConvexShape::Pointer m_ConvexShape
 
std::string m_Filename
 
GeometricPhantomPointer m_GeometricPhantom
 
ConvexShapeVectorType m_Unions
 

Detailed Description

Reads GeometricPhantom from a Forbild file.

See http://www.imp.uni-erlangen.de/phantoms/. In addition to the original parameters, the parameter "union=N", allows defining the union with a previous shape. For example, union=-1 will create a union with the previous shape.

Test:
rtkforbildtest.cxx
Author
Simon Rit

Definition at line 41 of file rtkForbildPhantomFileReader.h.

Member Typedef Documentation

Definition at line 51 of file rtkForbildPhantomFileReader.h.

Definition at line 60 of file rtkForbildPhantomFileReader.h.

Definition at line 55 of file rtkForbildPhantomFileReader.h.

Definition at line 50 of file rtkForbildPhantomFileReader.h.

Definition at line 57 of file rtkForbildPhantomFileReader.h.

Definition at line 59 of file rtkForbildPhantomFileReader.h.

Definition at line 56 of file rtkForbildPhantomFileReader.h.

Standard class type alias.

Definition at line 48 of file rtkForbildPhantomFileReader.h.

Definition at line 49 of file rtkForbildPhantomFileReader.h.

Definition at line 58 of file rtkForbildPhantomFileReader.h.

Constructor & Destructor Documentation

rtk::ForbildPhantomFileReader::ForbildPhantomFileReader ( )
protecteddefault

Constructor.

rtk::ForbildPhantomFileReader::~ForbildPhantomFileReader ( )
overrideprotecteddefault

Destructor.

Member Function Documentation

RotationMatrixType rtk::ForbildPhantomFileReader::ComputeRotationMatrixBetweenVectors ( const VectorType source,
const VectorType dest 
) const
protected
virtual::itk::LightObject::Pointer rtk::ForbildPhantomFileReader::CreateAnother ( ) const
void rtk::ForbildPhantomFileReader::CreateForbildBox ( const std::string &  s)
protected
void rtk::ForbildPhantomFileReader::CreateForbildCone ( const std::string &  s,
const std::string &  fig 
)
protected
void rtk::ForbildPhantomFileReader::CreateForbildCylinder ( const std::string &  s,
const std::string &  fig 
)
protected
void rtk::ForbildPhantomFileReader::CreateForbildEllipsoid ( const std::string &  s,
const std::string &  fig 
)
protected
void rtk::ForbildPhantomFileReader::CreateForbildElliptCyl ( const std::string &  s,
const std::string &  fig 
)
protected
void rtk::ForbildPhantomFileReader::CreateForbildSphere ( const std::string &  s)
protected
void rtk::ForbildPhantomFileReader::CreateForbildTetrahedron ( const std::string &  s)
protected
void rtk::ForbildPhantomFileReader::FindClipPlanes ( const std::string &  s)
protected
bool rtk::ForbildPhantomFileReader::FindParameterInString ( const std::string &  name,
const std::string &  s,
ScalarType param 
)
protected
void rtk::ForbildPhantomFileReader::FindUnions ( const std::string &  s)
protected
bool rtk::ForbildPhantomFileReader::FindVectorInString ( const std::string &  name,
const std::string &  s,
VectorType vec 
)
protected
virtual void rtk::ForbildPhantomFileReader::GenerateOutputInformation ( )
virtual

do the actual parsing of the input file

virtual const char* rtk::ForbildPhantomFileReader::GetFilename ( ) const
virtual

Get/Set path to phantom definition file.

virtual const GeometricPhantom* rtk::ForbildPhantomFileReader::GetGeometricPhantom ( ) const
virtual

Get / Set the object pointer to geometric phantom.

virtual GeometricPhantom* rtk::ForbildPhantomFileReader::GetModifiableGeometricPhantom ( )
virtual

Get / Set the object pointer to geometric phantom.

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

Run-time type information (and related methods).

Reimplemented from itk::LightProcessObject.

static Pointer rtk::ForbildPhantomFileReader::New ( )
static

Method for creation through the object factory.

virtual void rtk::ForbildPhantomFileReader::SetFilename ( const char *  _arg)
virtual

Get/Set path to phantom definition file.

virtual void rtk::ForbildPhantomFileReader::SetGeometricPhantom ( GeometricPhantom _arg)
virtual

Get / Set the object pointer to geometric phantom.

Member Data Documentation

constexpr unsigned int rtk::ForbildPhantomFileReader::Dimension = ConvexShape::Dimension
static

Convenient type alias.

Definition at line 54 of file rtkForbildPhantomFileReader.h.

PointType rtk::ForbildPhantomFileReader::m_Center
private

Definition at line 105 of file rtkForbildPhantomFileReader.h.

ConvexShape::Pointer rtk::ForbildPhantomFileReader::m_ConvexShape
private

Definition at line 106 of file rtkForbildPhantomFileReader.h.

std::string rtk::ForbildPhantomFileReader::m_Filename
private

Definition at line 104 of file rtkForbildPhantomFileReader.h.

GeometricPhantomPointer rtk::ForbildPhantomFileReader::m_GeometricPhantom
private

Definition at line 103 of file rtkForbildPhantomFileReader.h.

ConvexShapeVectorType rtk::ForbildPhantomFileReader::m_Unions
private

Definition at line 107 of file rtkForbildPhantomFileReader.h.


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