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

#include <rtkGeometricPhantom.h>

Detailed Description

Container for a geometric phantom, i.e., a set of ConvexShapes.

Test
rtkforbildtest.cxx
Author
Simon Rit

Definition at line 37 of file rtkGeometricPhantom.h.

+ Inheritance diagram for rtk::GeometricPhantom:
+ Collaboration diagram for rtk::GeometricPhantom:

Public Types

using ConstPointer = itk::SmartPointer<const Self>
 
using ConvexShapePointer = ConvexShape::Pointer
 
using ConvexShapeVector = std::vector<ConvexShapePointer>
 
using Pointer = itk::SmartPointer<Self>
 
using PointType = ConvexShape::PointType
 
using RotationMatrixType = ConvexShape::RotationMatrixType
 
using ScalarType = ConvexShape::ScalarType
 
using Self = GeometricPhantom
 
using Superclass = itk::DataObject
 
using VectorType = ConvexShape::VectorType
 
- Public Types inherited from itk::DataObject
using ConstPointer = SmartPointer<const Self>
 
using DataObjectIdentifierType = std::string
 
using DataObjectPointerArraySizeType = std::vector<Pointer>::size_type
 
using Pointer = SmartPointer<Self>
 
using Self = DataObject
 
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

void AddClipPlane (const VectorType &dir, const ScalarType &pos)
 
void AddConvexShape (const ConvexShape *co)
 
virtual::itk::LightObject::Pointer CreateAnother () const
 
virtual const ConvexShapeVector & GetConvexShapes () const
 
virtual const char * GetNameOfClass () const
 
virtual void Rescale (const VectorType &r)
 
virtual void Rotate (const RotationMatrixType &r)
 
virtual void Translate (const VectorType &t)
 
- Public Member Functions inherited from itk::DataObject
virtual void CopyInformation (const DataObject *)
 
virtual void DataHasBeenGenerated ()
 
void DisconnectPipeline ()
 
bool GetDataReleased () const
 
virtual const bool & GetReleaseDataFlag () const
 
SmartPointer< ProcessObject > GetSource () const
 
DataObjectPointerArraySizeType GetSourceOutputIndex () const
 
const DataObjectIdentifierType & GetSourceOutputName () const
 
virtual ModifiedTimeType GetUpdateMTime () const
 
virtual void Graft (const DataObject *)
 
virtual void Initialize ()
 
virtual void PrepareForNewData ()
 
virtual void PropagateRequestedRegion ()
 
void ReleaseData ()
 
virtual void ReleaseDataFlagOff ()
 
virtual void ReleaseDataFlagOn ()
 
virtual bool RequestedRegionIsOutsideOfTheBufferedRegion ()
 
virtual void ResetPipeline ()
 
void SetReleaseDataFlag (bool flag)
 
virtual void SetRequestedRegion (const DataObject *)
 
virtual void SetRequestedRegionToLargestPossibleRegion ()
 
bool ShouldIReleaseData () const
 
virtual void Update ()
 
virtual void UpdateOutputData ()
 
virtual void UpdateOutputInformation ()
 
void UpdateSource () const
 
virtual bool VerifyRequestedRegion ()
 
void SetPipelineMTime (ModifiedTimeType time)
 
virtual const ModifiedTimeType & GetPipelineMTime () const
 
virtual void SetRealTimeStamp (RealTimeStamp _arg)
 
virtual const RealTimeStamp & GetRealTimeStamp () 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::DataObject
static bool GetGlobalReleaseDataFlag ()
 
static void GlobalReleaseDataFlagOff ()
 
static void GlobalReleaseDataFlagOn ()
 
static Pointer New ()
 
static void SetGlobalReleaseDataFlag (bool val)
 
- 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 ()
 

Protected Member Functions

 GeometricPhantom ()=default
 
 ~GeometricPhantom () override=default
 
- Protected Member Functions inherited from itk::DataObject
 DataObject ()
 
void PrintSelf (std::ostream &os, Indent indent) const override
 
virtual void PropagateResetPipeline ()
 
 ~DataObject () 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 ()
 

Private Attributes

ConvexShapeVector m_ConvexShapes
 
std::vector< VectorType > m_PlaneDirections
 
std::vector< ScalarType > m_PlanePositions
 

Additional Inherited Members

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

Member Typedef Documentation

◆ ConstPointer

◆ ConvexShapePointer

Convenient type alias.

Definition at line 49 of file rtkGeometricPhantom.h.

◆ ConvexShapeVector

Definition at line 50 of file rtkGeometricPhantom.h.

◆ Pointer

◆ PointType

◆ RotationMatrixType

◆ ScalarType

◆ Self

Standard class type alias.

Definition at line 43 of file rtkGeometricPhantom.h.

◆ Superclass

◆ VectorType

Constructor & Destructor Documentation

◆ GeometricPhantom()

rtk::GeometricPhantom::GeometricPhantom ( )
protecteddefault

Referenced by GetNameOfClass().

◆ ~GeometricPhantom()

rtk::GeometricPhantom::~GeometricPhantom ( )
overrideprotecteddefault

Member Function Documentation

◆ AddClipPlane()

void rtk::GeometricPhantom::AddClipPlane ( const VectorType & dir,
const ScalarType & pos )

Add clipping plane to the object. The plane is defined by the equation dir * (x,y,z)' + pos = 0.

◆ AddConvexShape()

void rtk::GeometricPhantom::AddConvexShape ( const ConvexShape * co)

Add convex object to phantom.

◆ CreateAnother()

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

Reimplemented in rtk::SheppLoganPhantom.

◆ GetConvexShapes()

virtual const ConvexShapeVector & rtk::GeometricPhantom::GetConvexShapes ( ) const
virtual

Get reference to vector of objects.

◆ GetNameOfClass()

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

Run-time type information (and related methods).

Reimplemented from itk::DataObject.

Reimplemented in rtk::SheppLoganPhantom.

References GeometricPhantom().

◆ New()

static Pointer rtk::GeometricPhantom::New ( )
static

Method for creation through the object factory.

◆ Rescale()

virtual void rtk::GeometricPhantom::Rescale ( const VectorType & r)
virtual

Rescale object along each direction by a 3D vector.

◆ Rotate()

virtual void rtk::GeometricPhantom::Rotate ( const RotationMatrixType & r)
virtual

Rotate object according to a 3D rotation matrix.

◆ Translate()

virtual void rtk::GeometricPhantom::Translate ( const VectorType & t)
virtual

Translate object by a given 3D vector.

Member Data Documentation

◆ m_ConvexShapes

ConvexShapeVector rtk::GeometricPhantom::m_ConvexShapes
private

Definition at line 92 of file rtkGeometricPhantom.h.

◆ m_PlaneDirections

std::vector<VectorType> rtk::GeometricPhantom::m_PlaneDirections
private

Definition at line 93 of file rtkGeometricPhantom.h.

◆ m_PlanePositions

std::vector<ScalarType> rtk::GeometricPhantom::m_PlanePositions
private

Definition at line 94 of file rtkGeometricPhantom.h.


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