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 |
Protected Member Functions | |
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 |
void | CalcIntpolWeights (Vec3 v, Real w[8], Point p[8]) const |
Sampling interface | |
The pixel sampling depends on the current domain ( | |
Vec3 | GetPixelSampling () const |
Vec3 | GetSpatialSampling () const |
Vec3 | GetFrequencySampling () const |
ConstData (const ConstData &d) | |
ConstData & | operator= (const ConstData &d) |
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 Data, NullData, ConstImageHandle, and ImageHandle.
|
pure virtual |
Implemented in Data, NullData, ConstImageHandle, and ImageHandle.
|
pure virtual |
DataObserver interface: attach observer.
Implemented in NullData, ConstImageHandle, and ImageHandle.
|
pure virtual |
DataObserver interface: detach observer.
Implemented in NullData, ConstImageHandle, and ImageHandle.
Get explicit complex value.
Implemented in NullData, ConstImageHandle, and ImageHandle.
|
pure virtual |
Return domain: SPATIAL
, FREQUENCY
or HALF_FREQUENCY
.
Implemented in NullData, ConstImageHandle, and ImageHandle.
|
pure virtual |
Return (logical) extent of data.
Implemented in NullData, ConstImageHandle, and ImageHandle.
Vec3 GetFrequencySampling | ( | ) | const |
return frequency pixel dimensions
Implemented in NullData, ConstImageHandle, and ImageHandle.
|
pure virtual |
Implemented in NullData, ConstImageHandle, and ImageHandle.
|
pure virtual |
Get interpolated complex value from 3D,2D or 1D vec.
Implemented in NullData, ConstImageHandle, and ImageHandle.
Implemented in NullData, ConstImageHandle, and ImageHandle.
|
pure virtual |
Implemented in NullData, ConstImageHandle, and ImageHandle.
|
pure virtual |
Get interpolated real value from 3D,2D or 1D vec.
Implemented in NullData, ConstImageHandle, and ImageHandle.
Vec3 GetPixelSampling | ( | ) | const |
return pixel sampling of the current domain
Get explicit real value.
Implemented in NullData, ConstImageHandle, and ImageHandle.
|
inline |
|
pure virtual |
Retrieve spatial origin.
Implemented in NullData, ConstImageHandle, and ImageHandle.
Vec3 GetSpatialSampling | ( | ) | const |
return spatial pixel dimensions
|
pure virtual |
Return type of data: REAL
or COMPLEX
.
Implemented in NullData, ConstImageHandle, and ImageHandle.
|
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 NullData, ConstImageHandle, and ImageHandle.
|
protectedpure virtual |
Implemented in NullData, ConstImageHandle, and ImageHandle.
|
protectedpure virtual |
Implemented in NullData, ConstImageHandle, and ImageHandle.