NullData Class Reference

null data singleton More...

#include <null_data.hh>

Inherits ost::img::Data.

Public Member Functions

virtual DataType GetType () const
virtual DataDomain GetDomain () const
virtual Extent GetExtent () const
virtual Real GetReal (const Point &p) const
virtual 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
virtual void Apply (NonModAlgorithm &a) const
virtual void ApplyIP (NonModAlgorithm &a) const
virtual void SetSpatialOrigin (const Point &o)
virtual Point GetSpatialOrigin () const
virtual void Attach (DataObserver *o) const
virtual void Detach (DataObserver *o) const
virtual void Notify () const
virtual ImageHandle Crop (const Extent &e) const

Static Public Member Functions

static DataInstance ()

Protected Member Functions

virtual PixelSamplingSampling ()
virtual const PixelSamplingSampling () const

Detailed Description

null data singleton

Provides a full implementation of the Data interface, but without providing any real functionality; all writes are ignored, and all reads return zero or otherwise null defaults.

Definition at line 44 of file null_data.hh.


Member Function Documentation

virtual void Apply ( NonModAlgorithm a  )  const [inline, virtual]

Algorithm interface: NonModAlgorithm.

Implements Data.

Definition at line 65 of file null_data.hh.

virtual void ApplyIP ( NonModAlgorithm a  )  const [inline, virtual]

Implements Data.

Definition at line 66 of file null_data.hh.

virtual void Attach ( DataObserver o  )  const [inline, virtual]

DataObserver interface: attach observer.

Implements ConstData.

Definition at line 72 of file null_data.hh.

virtual ImageHandle Crop ( const Extent e  )  const [inline, virtual]

Definition at line 78 of file null_data.hh.

virtual void Detach ( DataObserver o  )  const [inline, virtual]

DataObserver interface: detach observer.

Implements ConstData.

Definition at line 74 of file null_data.hh.

virtual Complex GetComplex ( const Point p  )  const [inline, virtual]

Get explicit complex value.

Implements ConstData.

Definition at line 55 of file null_data.hh.

virtual DataDomain GetDomain (  )  const [inline, virtual]

Return domain: SPATIAL, FREQUENCY or HALF_FREQUENCY.

Implements ConstData.

Definition at line 49 of file null_data.hh.

virtual Extent GetExtent (  )  const [inline, virtual]

Return (logical) extent of data.

Implements ConstData.

Definition at line 51 of file null_data.hh.

virtual Complex GetIntpolComplex ( const Real d  )  const [inline, virtual]

Implements ConstData.

Definition at line 63 of file null_data.hh.

virtual Complex GetIntpolComplex ( const Vec2 &  v  )  const [inline, virtual]

Implements ConstData.

Definition at line 62 of file null_data.hh.

virtual Complex GetIntpolComplex ( const Vec3 &  v  )  const [inline, virtual]

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

Implements ConstData.

Definition at line 61 of file null_data.hh.

virtual Real GetIntpolReal ( const Real d  )  const [inline, virtual]

Implements ConstData.

Definition at line 59 of file null_data.hh.

virtual Real GetIntpolReal ( const Vec2 &  v  )  const [inline, virtual]

Implements ConstData.

Definition at line 58 of file null_data.hh.

virtual Real GetIntpolReal ( const Vec3 &  v  )  const [inline, virtual]

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

Implements ConstData.

Definition at line 57 of file null_data.hh.

virtual Real GetReal ( const Point p  )  const [inline, virtual]

Get explicit real value.

Implements ConstData.

Definition at line 53 of file null_data.hh.

virtual Point GetSpatialOrigin (  )  const [inline, virtual]

Retrieve spatial origin.

Implements ConstData.

Definition at line 70 of file null_data.hh.

virtual DataType GetType (  )  const [inline, virtual]

Return type of data: REAL or COMPLEX.

Implements ConstData.

Definition at line 47 of file null_data.hh.

static Data& Instance (  )  [inline, static]

Definition at line 82 of file null_data.hh.

virtual void Notify (  )  const [inline, virtual]

Notify each observer that state has changed.

Implements ConstData.

Definition at line 76 of file null_data.hh.

virtual const PixelSampling& Sampling (  )  const [inline, protected, virtual]

Implements ConstData.

Definition at line 91 of file null_data.hh.

virtual PixelSampling& Sampling (  )  [inline, protected, virtual]

Implements ConstData.

Definition at line 88 of file null_data.hh.

virtual void SetSpatialOrigin ( const Point o  )  [inline, virtual]

Set the spatial origin.

Implements Data.

Definition at line 68 of file null_data.hh.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines

Generated on 10 Nov 2016 for OpenStructure by  doxygen 1.6.1