OpenStructure
|
#include <image_state_impl.hh>
Inherits ImageStateBase.
Public Types | |
typedef ImageStateImpl< T, D > | StateType |
typedef boost::shared_ptr < ImageStateImpl< T, D > > | SharedPtrType |
Public Member Functions | |
ImageStateImpl () | |
ImageStateImpl (const ImageStateImpl< T, D > &s) | |
ImageStateImpl< T, D > & | operator= (const ImageStateImpl< T, D > &s) |
ImageStateImpl (const Extent &e, const PixelSampling &s) | |
ImageStateImpl (const Extent &e, const PixelSampling &s, const Vec3 &c) | |
template<typename U > | |
ImageStateImpl (const Extent &e, ValueHolder< U > &d, const PixelSampling &s) | |
virtual | ~ImageStateImpl () |
SharedPtrType | CloneState (bool cc=true) const |
virtual ImageStateBasePtr | Clone (bool cc=true) const |
virtual long | MemSize () const |
virtual DataType | GetType () const |
virtual DataDomain | GetDomain () const |
virtual void | SetSpatialOrigin (const Point &o) |
virtual void | CenterSpatialOrigin () |
virtual Point | GetSpatialOrigin () const |
virtual Extent | GetExtent () const |
virtual Extent | GetLogicalExtent () const |
virtual Real | GetReal (const Point &p) const |
virtual void | SetReal (const Point &p, const Real &r) |
virtual Complex | GetComplex (const Point &p) const |
virtual void | SetComplex (const Point &p, const Complex &c) |
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 |
virtual PixelSampling & | GetSampling () |
virtual const PixelSampling & | GetSampling () const |
virtual void | SetSampling (const PixelSampling &s) |
virtual Vec3 | GetAbsoluteOrigin () const |
virtual void | SetAbsoluteOrigin (const Vec3 &c) |
virtual Vec3 | IndexToCoord (const Point &p) const |
virtual Vec3 | CoordToIndex (const Vec3 &c) const |
virtual Vec3 | FractionalIndexToCoord (const Vec3 &p) const |
void | AdjustPhaseOrigin (const Point &p) |
T & | Value (const Point &p) |
const T & | Value (const Point &p) const |
T | GetCheckedValue (const Point &p) const |
void | SetCheckedValue (const Point &p, const T &v) |
T | CalcIntpolValue (const Vec3 &v) const |
T | CalcIntpolValue (const Vec2 &v) const |
T | CalcIntpolValue (const Real &v) const |
T & | Value (const Index &i) |
const T & | Value (const Index &i) const |
T & | Value (unsigned int i) |
const T & | Value (unsigned int i) const |
ValueHolder< T > & | Data () |
const ValueHolder< T > & | Data () const |
Size | GetSize () const |
virtual void | ApplyIP (ImageStateNonModVisitorBase &v) const |
virtual void | Apply (ImageStateNonModVisitorBase &v) const |
virtual void | ApplyIP (ImageStateModIPVisitorBase &v) |
virtual void | ApplyIP (const ImageStateConstModIPVisitorBase &v) |
virtual ImageStateBasePtr | Apply (ImageStateModIPVisitorBase &v) const |
virtual ImageStateBasePtr | Apply (const ImageStateConstModIPVisitorBase &v) const |
virtual ImageStateBasePtr | Apply (ImageStateModOPVisitorBase &v) const |
virtual ImageStateBasePtr | Apply (const ImageStateConstModOPVisitorBase &v) const |
virtual ImageStateBasePtr | Apply (ImageStateMorphVisitorBase &v) |
virtual ImageStateBase & | operator+= (Real v) |
virtual ImageStateBase & | operator+= (const Complex &v) |
virtual ImageStateBase & | operator-= (Real v) |
virtual ImageStateBase & | operator-= (const Complex &v) |
virtual ImageStateBase & | operator*= (Real v) |
virtual ImageStateBase & | operator*= (const Complex &v) |
virtual ImageStateBase & | operator/= (Real v) |
virtual ImageStateBase & | operator/= (const Complex &v) |
virtual void | operator+= (const Function &b) |
virtual void | operator-= (const Function &b) |
virtual void | operator*= (const Function &b) |
virtual void | operator/= (const Function &b) |
Public Member Functions inherited from ImageStateBase | |
virtual | ~ImageStateBase () |
ImageStateBase & | operator+= (const ImageStateBase &b) |
ImageStateBase & | operator-= (const ImageStateBase &b) |
ImageStateBase & | operator*= (const ImageStateBase &b) |
ImageStateBase & | operator/= (const ImageStateBase &b) |
Protected Member Functions | |
template<typename U > | |
void | add_scalar (const U &v) |
template<typename U > | |
void | mul_scalar (const U &v) |
Protected Member Functions inherited from ImageStateBase | |
ImageStateBase () | |
ImageStateBase (const ImageStateBase &s) |
Definition at line 59 of file image_state_impl.hh.
typedef boost::shared_ptr<ImageStateImpl<T,D> > SharedPtrType |
Definition at line 63 of file image_state_impl.hh.
typedef ImageStateImpl<T,D> StateType |
Definition at line 62 of file image_state_impl.hh.
ImageStateImpl | ( | ) |
ImageStateImpl | ( | const ImageStateImpl< T, D > & | s | ) |
ImageStateImpl | ( | const Extent & | e, |
const PixelSampling & | s | ||
) |
ImageStateImpl | ( | const Extent & | e, |
const PixelSampling & | s, | ||
const Vec3 & | c | ||
) |
|
inline |
Definition at line 82 of file image_state_impl.hh.
|
virtual |
|
protected |
void AdjustPhaseOrigin | ( | const Point & | p | ) |
|
virtual |
Implements ImageStateBase.
|
virtual |
Implements ImageStateBase.
|
virtual |
Implements ImageStateBase.
|
virtual |
Implements ImageStateBase.
|
virtual |
Implements ImageStateBase.
|
virtual |
Implements ImageStateBase.
|
virtual |
Implements ImageStateBase.
|
virtual |
Implements ImageStateBase.
|
virtual |
Implements ImageStateBase.
T CalcIntpolValue | ( | const Vec3 & | v | ) | const |
T CalcIntpolValue | ( | const Vec2 & | v | ) | const |
T CalcIntpolValue | ( | const Real & | v | ) | const |
|
virtual |
|
virtual |
Implements ImageStateBase.
SharedPtrType CloneState | ( | bool | cc = true | ) | const |
|
virtual |
Implements ImageStateBase.
ValueHolder<T>& Data | ( | ) |
direct access to value holder
const ValueHolder<T>& Data | ( | ) | const |
direct access to value holder
|
virtual |
Implements ImageStateBase.
|
virtual |
Implements ImageStateBase.
T GetCheckedValue | ( | const Point & | p | ) | const |
retrieve boundary checked value
Implements ImageStateBase.
|
virtual |
Retrieve domain.
Implements ImageStateBase.
|
virtual |
Retrieve Extent.
Given by size, spatial origin and data domain, therefore the extent is a read-only property. The extent that is returned here corresponds to the physical extent, ie for half-frequency data only one half
Implements ImageStateBase.
|
virtual |
Implements ImageStateBase.
|
virtual |
Implements ImageStateBase.
Implements ImageStateBase.
|
virtual |
Implements ImageStateBase.
|
virtual |
Implements ImageStateBase.
Implements ImageStateBase.
|
virtual |
Retrieve logical extent.
For half-frequency data, returns the full, virtual extent. For spatial and frequency domain equivalent to GetExtent().
Implements ImageStateBase.
retrieve value at Point as Real
This call is potentially slow, but boundary checked
Implements ImageStateBase.
|
virtual |
Implements ImageStateBase.
|
virtual |
Implements ImageStateBase.
Size GetSize | ( | ) | const |
|
virtual |
Retrieve spatial origin.
Implements ImageStateBase.
|
virtual |
Retrieve data type: REAL or COMPLEX.
Implements ImageStateBase.
|
virtual |
Implements ImageStateBase.
|
virtual |
Implements ImageStateBase.
|
protected |
|
virtual |
Implements ImageStateBase.
|
virtual |
Implements ImageStateBase.
|
virtual |
Implements ImageStateBase.
|
virtual |
Implements ImageStateBase.
|
virtual |
Implements ImageStateBase.
|
virtual |
Implements ImageStateBase.
|
virtual |
Implements ImageStateBase.
|
virtual |
Implements ImageStateBase.
|
virtual |
Implements ImageStateBase.
|
virtual |
Implements ImageStateBase.
|
virtual |
Implements ImageStateBase.
|
virtual |
Implements ImageStateBase.
ImageStateImpl<T,D>& operator= | ( | const ImageStateImpl< T, D > & | s | ) |
|
virtual |
Implements ImageStateBase.
void SetCheckedValue | ( | const Point & | p, |
const T & | v | ||
) |
set boundary checked value
set complex value at Point
This call is potentially slow, but boundary checked
Implements ImageStateBase.
set real value at Point
This call is potentially slow, but boundary checked
Implements ImageStateBase.
|
virtual |
Implements ImageStateBase.
|
virtual |
Set spatial origin.
Implements ImageStateBase.
T& Value | ( | const Point & | p | ) |
const T& Value | ( | const Point & | p | ) | const |
T& Value | ( | const Index & | i | ) |
const T& Value | ( | const Index & | i | ) | const |
T& Value | ( | unsigned int | i | ) |
const T& Value | ( | unsigned int | i | ) | const |