RTK  2.6.0
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
 
std::vector< int > m_UnionWith
 

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 42 of file rtkForbildPhantomFileReader.h.

Member Typedef Documentation

◆ ConstPointer

Definition at line 51 of file rtkForbildPhantomFileReader.h.

◆ ConvexShapeVectorType

Definition at line 60 of file rtkForbildPhantomFileReader.h.

◆ GeometricPhantomPointer

Definition at line 55 of file rtkForbildPhantomFileReader.h.

◆ Pointer

Definition at line 50 of file rtkForbildPhantomFileReader.h.

◆ PointType

Definition at line 57 of file rtkForbildPhantomFileReader.h.

◆ RotationMatrixType

Definition at line 59 of file rtkForbildPhantomFileReader.h.

◆ ScalarType

Definition at line 56 of file rtkForbildPhantomFileReader.h.

◆ Self

Standard class type alias.

Definition at line 48 of file rtkForbildPhantomFileReader.h.

◆ Superclass

Definition at line 49 of file rtkForbildPhantomFileReader.h.

◆ VectorType

Definition at line 58 of file rtkForbildPhantomFileReader.h.

Constructor & Destructor Documentation

◆ ForbildPhantomFileReader()

rtk::ForbildPhantomFileReader::ForbildPhantomFileReader ( )
protecteddefault

Constructor.

◆ ~ForbildPhantomFileReader()

rtk::ForbildPhantomFileReader::~ForbildPhantomFileReader ( )
overrideprotecteddefault

Destructor.

Member Function Documentation

◆ ComputeRotationMatrixBetweenVectors()

RotationMatrixType rtk::ForbildPhantomFileReader::ComputeRotationMatrixBetweenVectors ( const VectorType source,
const VectorType dest 
) const
protected

◆ CreateAnother()

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

Reimplemented from itk::Object.

◆ CreateForbildBox()

void rtk::ForbildPhantomFileReader::CreateForbildBox ( const std::string &  s)
protected

◆ CreateForbildCone()

void rtk::ForbildPhantomFileReader::CreateForbildCone ( const std::string &  s,
const std::string &  fig 
)
protected

◆ CreateForbildCylinder()

void rtk::ForbildPhantomFileReader::CreateForbildCylinder ( const std::string &  s,
const std::string &  fig 
)
protected

◆ CreateForbildEllipsoid()

void rtk::ForbildPhantomFileReader::CreateForbildEllipsoid ( const std::string &  s,
const std::string &  fig 
)
protected

◆ CreateForbildElliptCyl()

void rtk::ForbildPhantomFileReader::CreateForbildElliptCyl ( const std::string &  s,
const std::string &  fig 
)
protected

◆ CreateForbildSphere()

void rtk::ForbildPhantomFileReader::CreateForbildSphere ( const std::string &  s)
protected

◆ CreateForbildTetrahedron()

void rtk::ForbildPhantomFileReader::CreateForbildTetrahedron ( const std::string &  s)
protected

◆ FindClipPlanes()

void rtk::ForbildPhantomFileReader::FindClipPlanes ( const std::string &  s)
protected

◆ FindParameterInString()

bool rtk::ForbildPhantomFileReader::FindParameterInString ( const std::string &  name,
const std::string &  s,
ScalarType param 
)
protected

◆ FindUnions()

void rtk::ForbildPhantomFileReader::FindUnions ( const std::string &  s)
protected

◆ FindVectorInString()

bool rtk::ForbildPhantomFileReader::FindVectorInString ( const std::string &  name,
const std::string &  s,
VectorType vec 
)
protected

◆ GenerateOutputInformation()

virtual void rtk::ForbildPhantomFileReader::GenerateOutputInformation ( )
virtual

do the actual parsing of the input file

◆ GetFilename()

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

Get/Set path to phantom definition file.

◆ GetGeometricPhantom()

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

Get / Set the object pointer to geometric phantom.

◆ GetModifiableGeometricPhantom()

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

Get / Set the object pointer to geometric phantom.

◆ GetNameOfClass()

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

Run-time type information (and related methods).

Reimplemented from itk::LightProcessObject.

◆ New()

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

Method for creation through the object factory.

◆ SetFilename()

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

Get/Set path to phantom definition file.

◆ SetGeometricPhantom()

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

Get / Set the object pointer to geometric phantom.

Member Data Documentation

◆ Dimension

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

Convenient type alias.

Definition at line 54 of file rtkForbildPhantomFileReader.h.

◆ m_Center

PointType rtk::ForbildPhantomFileReader::m_Center
private

Definition at line 123 of file rtkForbildPhantomFileReader.h.

◆ m_ConvexShape

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

Definition at line 124 of file rtkForbildPhantomFileReader.h.

◆ m_Filename

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

Definition at line 122 of file rtkForbildPhantomFileReader.h.

◆ m_GeometricPhantom

GeometricPhantomPointer rtk::ForbildPhantomFileReader::m_GeometricPhantom
private

Definition at line 121 of file rtkForbildPhantomFileReader.h.

◆ m_Unions

ConvexShapeVectorType rtk::ForbildPhantomFileReader::m_Unions
private

Definition at line 125 of file rtkForbildPhantomFileReader.h.

◆ m_UnionWith

std::vector<int> rtk::ForbildPhantomFileReader::m_UnionWith
private

Definition at line 126 of file rtkForbildPhantomFileReader.h.


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