OpenStructure
Public Member Functions | Friends
ConstImageHandle Class Reference

#include <image_handle.hh>

Inherits ConstData.

Public Member Functions

 operator const Data & () const
 
 ConstImageHandle ()
 
 ConstImageHandle (const ConstImageHandle &h)
 
 ConstImageHandle (const ImageHandle &h)
 
ConstImageHandleoperator= (const ConstImageHandle &h)
 
ConstImageHandleoperator= (const ImageHandle &h)
 
ImageHandle Copy (bool cc=true) const
 
ImageHandle Extract (const Extent &e) const
 
bool IsValid () const
 
long MemSize () const
 
Properties interface
DataType GetType () const
 
DataDomain GetDomain () const
 
Extent GetExtent () const
 
Point GetSpatialOrigin () const
 
Vec3 GetAbsoluteOrigin () const
 
Vec3 IndexToCoord (const Point &p) const
 
Vec3 CoordToIndex (const Vec3 &c) const
 
Vec3 FractionalIndexToCoord (const Vec3 &p) const
 
Value access
Real GetReal (const Point &p) const
 
Complex GetComplex (const Point &p) const
 
virtual Real GetIntpolReal (const Vec3 &v) const
 
virtual Real GetIntpolReal (const Vec2 &v) const
 
virtual Real GetIntpolReal (const Real &d) const
 
virtual Complex GetIntpolComplex (const Vec3 &v) const
 
virtual Complex GetIntpolComplex (const Vec2 &v) const
 
virtual Complex GetIntpolComplex (const Real &d) const
 
DataObserver interface
void Attach (DataObserver *o) const
 
void Detach (DataObserver *o) const
 
void Notify () const
 
void Notify (const Extent &e) const
 
void Notify (const Point &p) const
 
DataAlgorithm interface

Only the out-of-place functionality is available

void Apply (NonModAlgorithm &a) const
 
void ApplyIP (NonModAlgorithm &a) const
 
ImageHandle Apply (ModIPAlgorithm &a) const
 
ImageHandle Apply (const ConstModIPAlgorithm &a) const
 
ImageHandle Apply (ModOPAlgorithm &a) const
 
ImageHandle Apply (const ConstModOPAlgorithm &a) const
 
StateVisitor interface

Only the out-of-place functionality is available

void StateApply (ImageStateNonModVisitorBase &v) const
 
ImageHandle StateApply (ImageStateModIPVisitorBase &v) const
 
ImageHandle StateApply (const ImageStateConstModIPVisitorBase &v) const
 
ImageHandle StateApply (ImageStateModOPVisitorBase &v) const
 
ImageHandle StateApply (const ImageStateConstModOPVisitorBase &v) const
 
ImageHandle StateApply (ImageStateMorphVisitorBase &v) const
 
ExtentIterator GetIterator () const
 
- Public Member Functions inherited from ConstData
 ConstData ()
 
virtual ~ConstData ()
 
bool IsSpatial () const
 
bool IsFrequency () const
 
bool IsReal () const
 
bool IsComplex () const
 
Size GetSize () const
 
virtual Real OverallDifference (const ConstData &d) const
 
virtual Real NormDifference (const ConstData &d) const
 
Vec3 GetPixelSampling () const
 
Vec3 GetSpatialSampling () const
 
Vec3 GetFrequencySampling () const
 

Friends

class ImageHandle
 

Comparison

bool operator== (const ConstImageHandle &ih) const
 
bool operator== (const ImageHandle &ih) const
 
bool operator!= (const ConstImageHandle &ih) const
 
bool operator!= (const ImageHandle &ih) const
 
const ImageStateBasePtr & ImageStatePtr () const
 
PixelSamplingSampling ()
 
const PixelSamplingSampling () const
 

Additional Inherited Members

- Protected Member Functions inherited from ConstData
void CalcIntpolWeights (Vec3 v, Real w[8], Point p[8]) const
 
 ConstData (const ConstData &d)
 
ConstDataoperator= (const ConstData &d)
 

Detailed Description

read-only ImageHandle implementation

ConstImageHandle offers only the read-only (const) interface of ImageHandle. Any sort of out-of-place manipulation will return the result as a non-const ImageHandle again!

ConstImageHandle provides two different 'upcasting' characteristics. First, it is derived from ConstData, and may thus be used as such. Second, it provides an implicit conversion to const Data&.

Definition at line 516 of file image_handle.hh.

Constructor & Destructor Documentation

◆ ConstImageHandle() [1/3]

Empty, ie invalid handle.

◆ ConstImageHandle() [2/3]

Initialize with an existing handle.

The newly created handle will share the image with the existing one

◆ ConstImageHandle() [3/3]

ConstImageHandle ( const ImageHandle h)

Initialize with an existing non-const handle.

Provides implicit ImageHandle -> ConstImageHandle conversion. The newly created const handle will still share the image with the non-const one.

Member Function Documentation

◆ Apply() [1/5]

ImageHandle Apply ( const ConstModIPAlgorithm a) const

see ImageHandle::Apply(const ConstModIPAlgorithm&)

◆ Apply() [2/5]

ImageHandle Apply ( const ConstModOPAlgorithm a) const

see ImageHandle::Apply(const ConstModOPAlgorithm)

◆ Apply() [3/5]

ImageHandle Apply ( ModIPAlgorithm a) const

see ImageHandle::Apply(ModIPAlgorithm&)

◆ Apply() [4/5]

ImageHandle Apply ( ModOPAlgorithm a) const

see ImageHandle::Apply(ModOPAlgorithm)

◆ Apply() [5/5]

void Apply ( NonModAlgorithm a) const
virtual

see ImageHandle::Apply(NonModAlgorithm&)

Implements ConstData.

◆ ApplyIP()

void ApplyIP ( NonModAlgorithm a) const
virtual

Implements ConstData.

◆ Attach()

void Attach ( DataObserver o) const
virtual

◆ CoordToIndex()

Vec3 CoordToIndex ( const Vec3 &  c) const

◆ Copy()

ImageHandle Copy ( bool  cc = true) const

see ImageHandle::Copy(bool)

◆ Detach()

void Detach ( DataObserver o) const
virtual

◆ Extract()

ImageHandle Extract ( const Extent e) const

see ImageHandle::Copy(const Extent&)

◆ FractionalIndexToCoord()

Vec3 FractionalIndexToCoord ( const Vec3 &  p) const

◆ GetAbsoluteOrigin()

Vec3 GetAbsoluteOrigin ( ) const

◆ GetComplex()

Complex GetComplex ( const Point p) const
virtual

◆ GetDomain()

DataDomain GetDomain ( ) const
virtual

◆ GetExtent()

Extent GetExtent ( ) const
virtual

◆ GetIntpolComplex() [1/3]

virtual Complex GetIntpolComplex ( const Real d) const
virtual

Implements ConstData.

◆ GetIntpolComplex() [2/3]

virtual Complex GetIntpolComplex ( const Vec2 &  v) const
virtual

Implements ConstData.

◆ GetIntpolComplex() [3/3]

virtual Complex GetIntpolComplex ( const Vec3 &  v) const
virtual

Get interpolated complex value from 3D,2D or 1D vec.

Implements ConstData.

◆ GetIntpolReal() [1/3]

virtual Real GetIntpolReal ( const Real d) const
virtual

Implements ConstData.

◆ GetIntpolReal() [2/3]

virtual Real GetIntpolReal ( const Vec2 &  v) const
virtual

Implements ConstData.

◆ GetIntpolReal() [3/3]

virtual Real GetIntpolReal ( const Vec3 &  v) const
virtual

Get interpolated real value from 3D,2D or 1D vec.

Implements ConstData.

◆ GetIterator()

ExtentIterator GetIterator ( ) const

◆ GetReal()

Real GetReal ( const Point p) const
virtual

◆ GetSpatialOrigin()

Point GetSpatialOrigin ( ) const
virtual

◆ GetType()

DataType GetType ( ) const
virtual

◆ ImageStatePtr()

const ImageStateBasePtr& ImageStatePtr ( ) const

◆ IndexToCoord()

Vec3 IndexToCoord ( const Point p) const

◆ IsValid()

bool IsValid ( ) const

Returns true if handle is valid.

◆ MemSize()

long MemSize ( ) const

Returns size in bytes of allocated memory.

◆ Notify() [1/3]

void Notify ( ) const
virtual

◆ Notify() [2/3]

void Notify ( const Extent e) const

◆ Notify() [3/3]

void Notify ( const Point p) const

◆ operator const Data &()

operator const Data & ( ) const
inline

pseudo 'upcasting' to const Data&

Definition at line 520 of file image_handle.hh.

◆ operator!=() [1/2]

bool operator!= ( const ConstImageHandle ih) const

◆ operator!=() [2/2]

bool operator!= ( const ImageHandle ih) const

◆ operator=() [1/2]

ConstImageHandle& operator= ( const ConstImageHandle h)

Assign another image based on handle.

The reference count the the previously shared images is decreased and the one of the assignee is increased

◆ operator=() [2/2]

ConstImageHandle& operator= ( const ImageHandle h)

Assign another image based on a non-const handle.

Implicit conversion of non-const to const image handle.

◆ operator==() [1/2]

bool operator== ( const ConstImageHandle ih) const

◆ operator==() [2/2]

bool operator== ( const ImageHandle ih) const

◆ Sampling() [1/2]

PixelSampling& Sampling ( )
protectedvirtual

◆ Sampling() [2/2]

const PixelSampling& Sampling ( ) const
protectedvirtual

◆ StateApply() [1/6]

ImageHandle StateApply ( const ImageStateConstModIPVisitorBase v) const

see ImageHandle::StateApply(ImageStateConstModIPVisitorBase&)

◆ StateApply() [2/6]

ImageHandle StateApply ( const ImageStateConstModOPVisitorBase v) const

see ImageHandle::StateApply(ImageStateConstModOPVisitorBase&)

◆ StateApply() [3/6]

ImageHandle StateApply ( ImageStateModIPVisitorBase v) const

see ImageHandle::StateApply(ImageStateModIPVisitorBase&)

◆ StateApply() [4/6]

ImageHandle StateApply ( ImageStateModOPVisitorBase v) const

see ImageHandle::StateApply(ImageStateModOPVisitorBase&)

◆ StateApply() [5/6]

ImageHandle StateApply ( ImageStateMorphVisitorBase v) const

see ImageHandle::StateApply(ImageStateMorphVisitorBase&)

◆ StateApply() [6/6]

void StateApply ( ImageStateNonModVisitorBase v) const

see ImageHandle::StateApply(ImageStateNonModVisitorBase&)

Friends And Related Function Documentation

◆ ImageHandle

friend class ImageHandle
friend

Definition at line 517 of file image_handle.hh.


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