OpenStructure
|
#include <data.hh>
Inherited by ConstImageHandle, and Data.
Public Member Functions | |
Initialization and Deconstruction | |
ConstData () | |
virtual | ~ConstData () |
Properties | |
virtual DataType | GetType () const =0 |
virtual DataDomain | GetDomain () const =0 |
bool | IsSpatial () const |
bool | IsFrequency () const |
bool | IsReal () const |
bool | IsComplex () const |
virtual Extent | GetExtent () const =0 |
virtual Point | GetSpatialOrigin () const =0 |
Size | GetSize () const |
Value retrieval | |
The pure virtual methods GetReal() and GetComplex() form the basis for the interpolation and normalization methods. | |
virtual Real | GetReal (const Point &p) const =0 |
virtual Complex | GetComplex (const Point &p) const =0 |
virtual Real | GetIntpolReal (const Vec3 &v) const =0 |
virtual Real | GetIntpolReal (const Vec2 &v) const =0 |
virtual Real | GetIntpolReal (const Real &d) const =0 |
virtual Complex | GetIntpolComplex (const Vec3 &v) const =0 |
virtual Complex | GetIntpolComplex (const Vec2 &v) const =0 |
virtual Complex | GetIntpolComplex (const Real &d) const =0 |
Algorithm interface | |
On the level of Data, only NonModAlgorithms may be applied | |
virtual void | Apply (NonModAlgorithm &a) const =0 |
virtual void | ApplyIP (NonModAlgorithm &a) const =0 |
Observer interface | |
virtual void | Attach (DataObserver *o) const =0 |
virtual void | Detach (DataObserver *o) const =0 |
virtual void | Notify () const =0 |
Misc | |
should really be located somewhere else... | |
virtual Real | OverallDifference (const ConstData &d) const |
virtual Real | NormDifference (const ConstData &d) const |
Sampling interface | |
The pixel sampling depends on the current domain ( | |
Vec3 | GetPixelSampling () const |
Vec3 | GetSpatialSampling () const |
Vec3 | GetFrequencySampling () const |
Protected Member Functions | |
ConstData (const ConstData &d) | |
ConstData & | operator= (const ConstData &d) |
void | CalcIntpolWeights (Vec3 v, Real w[8], Point p[8]) const |
Sampling implementation | |
A reference to a PixelSampling instance must be provided by subclasses in order for the sampling interface to work. | |
virtual PixelSampling & | Sampling ()=0 |
virtual const PixelSampling & | Sampling () const =0 |
Abstract base class for read-only data.
This class represents the abstract concept of a read-only (const) data source which allows:
In addition, a meta-info (InfoHandle) is associated with this data
ConstData | ( | ) |
|
virtual |
|
pure virtual |
Algorithm interface: NonModAlgorithm.
Implemented in ConstImageHandle, ImageHandle, Data, and NullData.
|
pure virtual |
Implemented in ConstImageHandle, ImageHandle, Data, and NullData.
|
pure virtual |
DataObserver interface: attach observer.
Implemented in ConstImageHandle, ImageHandle, and NullData.
|
pure virtual |
DataObserver interface: detach observer.
Implemented in ConstImageHandle, ImageHandle, and NullData.
Get explicit complex value.
Implemented in ConstImageHandle, ImageHandle, and NullData.
|
pure virtual |
Return domain: SPATIAL
, FREQUENCY
or HALF_FREQUENCY
.
Implemented in ConstImageHandle, ImageHandle, and NullData.
|
pure virtual |
Return (logical) extent of data.
Implemented in ConstImageHandle, ImageHandle, and NullData.
Vec3 GetFrequencySampling | ( | ) | const |
return frequency pixel dimensions
|
pure virtual |
Get interpolated complex value from 3D,2D or 1D vec.
Implemented in ConstImageHandle, ImageHandle, and NullData.
|
pure virtual |
Implemented in ConstImageHandle, ImageHandle, and NullData.
Implemented in ConstImageHandle, ImageHandle, and NullData.
|
pure virtual |
Get interpolated real value from 3D,2D or 1D vec.
Implemented in ConstImageHandle, ImageHandle, and NullData.
|
pure virtual |
Implemented in ConstImageHandle, ImageHandle, and NullData.
Implemented in ConstImageHandle, ImageHandle, and NullData.
Vec3 GetPixelSampling | ( | ) | const |
return pixel sampling of the current domain
Get explicit real value.
Implemented in ConstImageHandle, ImageHandle, and NullData.
|
inline |
|
pure virtual |
Retrieve spatial origin.
Implemented in ConstImageHandle, ImageHandle, and NullData.
Vec3 GetSpatialSampling | ( | ) | const |
return spatial pixel dimensions
|
pure virtual |
Return type of data: REAL
or COMPLEX
.
Implemented in ConstImageHandle, ImageHandle, and NullData.
|
inline |
|
inline |
Returns true if data is currently in frequency domain.
Convenience wrapper around GetDomain()
|
inline |
|
inline |
Returns true if data is currently in spatial domain.
Convenience wrapper around GetDomain()
|
pure virtual |
Notify each observer that state has changed.
Implemented in ConstImageHandle, ImageHandle, and NullData.
|
protectedpure virtual |
Implemented in ConstImageHandle, ImageHandle, and NullData.
|
protectedpure virtual |
Implemented in ConstImageHandle, ImageHandle, and NullData.