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

#include <rtkForbildPhantomFileReader.h>

Detailed Description

Reads GeometricPhantom from a Forbild file.

See https://docs.openrtk.org/en/latest/documentation/docs/Phantom.html. 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.

+ 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 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

virtual::itk::LightObject::Pointer CreateAnother () const
 
virtual void GenerateOutputInformation ()
 
virtual const char * GetFilename () const
 
virtual const GeometricPhantom * GetGeometricPhantom () const
 
virtual GeometricPhantom * GetModifiableGeometricPhantom ()
 
virtual const char * GetNameOfClass () const
 
virtual void SetFilename (const char *_arg)
 
virtual void SetGeometricPhantom (GeometricPhantom *_arg)
 
- Public Member Functions inherited from itk::LightProcessObject
virtual void AbortGenerateDataOff ()
 
virtual void AbortGenerateDataOn ()
 
virtual::itk::LightObject::Pointer CreateAnother () const
 
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
 
LightObject::Pointer CreateAnother () const override
 
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 constexpr unsigned int Dimension = ConvexShape::Dimension
 

Protected Member Functions

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
 
- Protected Member Functions inherited from itk::LightProcessObject
virtual void GenerateData ()
 
 LightProcessObject ()
 
void PrintSelf (std::ostream &os, Indent indent) const override
 
 ~LightProcessObject () override
 
- Protected Member Functions inherited from itk::Object
 Object ()
 
bool PrintObservers (std::ostream &os, Indent indent) const
 
void PrintSelf (std::ostream &os, Indent indent) const override
 
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 ()
 

Static Protected Member Functions

static RotationMatrixType ComputeRotationMatrixBetweenVectors (const VectorType &source, const VectorType &dest)
 

Private Attributes

PointType m_Center {}
 
ConvexShape::Pointer m_ConvexShape
 
std::string m_Filename
 
GeometricPhantomPointer m_GeometricPhantom
 
ConvexShapeVectorType m_Unions
 
std::vector< int > m_UnionWith
 

Additional Inherited Members

- Protected Attributes inherited from itk::LightObject
std::atomic< int > m_ReferenceCount {}
 

Member Typedef Documentation

◆ ConstPointer

◆ ConvexShapeVectorType

◆ GeometricPhantomPointer

◆ Pointer

◆ PointType

◆ RotationMatrixType

◆ ScalarType

◆ Self

Standard class type alias.

Definition at line 48 of file rtkForbildPhantomFileReader.h.

◆ Superclass

◆ VectorType

Constructor & Destructor Documentation

◆ ForbildPhantomFileReader()

rtk::ForbildPhantomFileReader::ForbildPhantomFileReader ( )
protecteddefault

Constructor.

Referenced by GetNameOfClass().

◆ ~ForbildPhantomFileReader()

rtk::ForbildPhantomFileReader::~ForbildPhantomFileReader ( )
overrideprotecteddefault

Destructor.

Member Function Documentation

◆ ComputeRotationMatrixBetweenVectors()

static RotationMatrixType rtk::ForbildPhantomFileReader::ComputeRotationMatrixBetweenVectors ( const VectorType & source,
const VectorType & dest )
staticprotected

◆ CreateAnother()

virtual::itk::LightObject::Pointer rtk::ForbildPhantomFileReader::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::LightObject.

◆ 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

◆ 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.

References ForbildPhantomFileReader().

◆ New()

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

Method for creation through the object factory.

◆ SetFilename()

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

◆ SetGeometricPhantom()

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

Member Data Documentation

◆ Dimension

unsigned int rtk::ForbildPhantomFileReader::Dimension = ConvexShape::Dimension
staticconstexpr

Convenient type alias.

Definition at line 54 of file rtkForbildPhantomFileReader.h.

◆ m_Center

PointType rtk::ForbildPhantomFileReader::m_Center {}
private

Definition at line 116 of file rtkForbildPhantomFileReader.h.

◆ m_ConvexShape

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

Definition at line 117 of file rtkForbildPhantomFileReader.h.

◆ m_Filename

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

Definition at line 115 of file rtkForbildPhantomFileReader.h.

◆ m_GeometricPhantom

GeometricPhantomPointer rtk::ForbildPhantomFileReader::m_GeometricPhantom
private

Definition at line 114 of file rtkForbildPhantomFileReader.h.

◆ m_Unions

ConvexShapeVectorType rtk::ForbildPhantomFileReader::m_Unions
private

Definition at line 118 of file rtkForbildPhantomFileReader.h.

◆ m_UnionWith

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

Definition at line 119 of file rtkForbildPhantomFileReader.h.


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