#include <Field3DImpl.h>


Public Member Functions | |
| Field3DImpl (const Dim3D dim, const T &initialValue) | |
| virtual | ~Field3DImpl () |
| virtual void | set (const Point3D &pt, const T value) |
| virtual void | setDim (const Dim3D theDim) |
| T | getQuick (const Point3D &pt) const |
| void | setQuick (const Point3D &pt, const T _value) |
| virtual T | get (const Point3D &pt) const |
| virtual T | getByIndex (long _offset) const |
| virtual void | setByIndex (long _offset, const T _value) |
| virtual Dim3D | getDim () const |
| virtual bool | isValid (const Point3D &pt) const |
Private Attributes | |
| Dim3D | dim |
| T * | field |
| T | initialValue |
| long | len |
Definition at line 46 of file Field3DImpl.h.
| CompuCell3D::Field3DImpl< T >::Field3DImpl | ( | const Dim3D | dim, | |
| const T & | initialValue | |||
| ) | [inline] |
| dim | The field dimensions | |
| initialValue | The initial value of all data elements in the field. |
Definition at line 57 of file Field3DImpl.h.
| virtual CompuCell3D::Field3DImpl< T >::~Field3DImpl | ( | ) | [inline, virtual] |
Definition at line 75 of file Field3DImpl.h.
| virtual void CompuCell3D::Field3DImpl< T >::set | ( | const Point3D & | pt, | |
| const T | value | |||
| ) | [inline, virtual] |
Set a field element. If the value was already set it will be overwritten. If pt is out of range then a BasicException will be thrown.
| pt | The coordinate of the element. | |
| value | The new value. |
Implements CompuCell3D::Field3D< T >.
Reimplemented in CompuCell3D::Array3DField3DAdapter< T >, CompuCell3D::Array3DBordersField3DAdapter< T >, CompuCell3D::Array2DBordersField3DAdapter< T >, and CompuCell3D::WatchableField3D< T >.
Definition at line 83 of file Field3DImpl.h.
| virtual void CompuCell3D::Field3DImpl< T >::setDim | ( | const Dim3D | theDim | ) | [inline, virtual] |
Change the dimensions of the field dynamically
| theDim | New dimensions. |
Reimplemented from CompuCell3D::Field3D< T >.
Reimplemented in CompuCell3D::Array3DField3DAdapter< T >, CompuCell3D::Array3DBordersField3DAdapter< T >, and CompuCell3D::Array2DBordersField3DAdapter< T >.
Definition at line 88 of file Field3DImpl.h.
| T CompuCell3D::Field3DImpl< T >::getQuick | ( | const Point3D & | pt | ) | const [inline] |
Definition at line 107 of file Field3DImpl.h.
| void CompuCell3D::Field3DImpl< T >::setQuick | ( | const Point3D & | pt, | |
| const T | _value | |||
| ) | [inline] |
Definition at line 113 of file Field3DImpl.h.
| virtual T CompuCell3D::Field3DImpl< T >::get | ( | const Point3D & | pt | ) | const [inline, virtual] |
If pt is out of range a BasicException will be thrown.
| pt | The coordinates of the field element. |
Implements CompuCell3D::Field3D< T >.
Reimplemented in CompuCell3D::Array3DField3DAdapter< T >, CompuCell3D::Array3DBordersField3DAdapter< T >, and CompuCell3D::Array2DBordersField3DAdapter< T >.
Definition at line 119 of file Field3DImpl.h.
Referenced by CompuCell3D::OrientedContactPlugin::changeEnergy(), CompuCell3D::ContactMultiCadPlugin::changeEnergy(), CompuCell3D::ContactLocalProductPlugin::changeEnergy(), CompuCell3D::ContactLocalFlexPlugin::changeEnergy(), CompuCell3D::ContactPlugin::changeEnergy(), CompuCell3D::CompartmentPlugin::changeEnergy(), CompuCell3D::ChemotaxisDictyPlugin::changeEnergy(), CompuCell3D::MitosisPlugin::doMitosis(), CompuCell3D::BoundaryPixelTrackerPlugin::field3DChange(), CompuCell3D::GlobalBoundaryPixelTrackerPlugin::field3DChange(), CompuCell3D::ChemotaxisDictyPlugin::getConcentration(), CompuCell3D::BlobFieldInitializer::initializeEngulfment(), CompuCell3D::KernelDiffusionSolver::secreteOnContactSingleField(), CompuCell3D::FlexibleDiffusionSolverFE::secreteOnContactSingleField(), CompuCell3D::FastDiffusionSolver2DFE::secreteOnContactSingleField(), and CompuCell3D::DictyChemotaxisSteppable::step().
| virtual T CompuCell3D::Field3DImpl< T >::getByIndex | ( | long | _offset | ) | const [inline, virtual] |
If _offset is out of range either a BasicException will be thrown or a function will return default value for the field element
| _offset | offset of the field element in the internal field array. |
Reimplemented from CompuCell3D::Field3D< T >.
Reimplemented in CompuCell3D::Array3DField3DAdapter< T >, CompuCell3D::Array3DBordersField3DAdapter< T >, and CompuCell3D::Array2DBordersField3DAdapter< T >.
Definition at line 124 of file Field3DImpl.h.
| virtual void CompuCell3D::Field3DImpl< T >::setByIndex | ( | long | _offset, | |
| const T | value | |||
| ) | [inline, virtual] |
If _offset is out of range either nothing is done
| _offset | offset of the field element in the internal field array. |
Reimplemented from CompuCell3D::Field3D< T >.
Reimplemented in CompuCell3D::Array3DField3DAdapter< T >, CompuCell3D::Array3DBordersField3DAdapter< T >, and CompuCell3D::Array2DBordersField3DAdapter< T >.
Definition at line 129 of file Field3DImpl.h.
| virtual Dim3D CompuCell3D::Field3DImpl< T >::getDim | ( | ) | const [inline, virtual] |
Implements CompuCell3D::Field3D< T >.
Reimplemented in CompuCell3D::Array3DField3DAdapter< T >, CompuCell3D::Array3DBordersField3DAdapter< T >, and CompuCell3D::Array2DBordersField3DAdapter< T >.
Definition at line 136 of file Field3DImpl.h.
Referenced by CompuCell3D::DictyChemotaxisSteppable::extraInit(), CompuCell3D::UniformFieldInitializer::init(), CompuCell3D::BlobFieldInitializer::init(), CompuCell3D::BlobFieldInitializer::initializeEngulfment(), CompuCell3D::UniformFieldInitializer::layOutCells(), CompuCell3D::BlobFieldInitializer::layOutCells(), CompuCell3D::UniformFieldInitializer::start(), and CompuCell3D::BlobFieldInitializer::start().
| virtual bool CompuCell3D::Field3DImpl< T >::isValid | ( | const Point3D & | pt | ) | const [inline, virtual] |
| pt | A coordinate in 3D space. |
Implements CompuCell3D::Field3D< T >.
Reimplemented in CompuCell3D::Array3DField3DAdapter< T >, CompuCell3D::Array3DBordersField3DAdapter< T >, and CompuCell3D::Array2DBordersField3DAdapter< T >.
Definition at line 138 of file Field3DImpl.h.
Referenced by CompuCell3D::Field3DImpl< precision >::get(), and CompuCell3D::Field3DImpl< precision >::set().
Dim3D CompuCell3D::Field3DImpl< T >::dim [private] |
Reimplemented in CompuCell3D::Array3DField3DAdapter< T >.
Definition at line 47 of file Field3DImpl.h.
Referenced by CompuCell3D::Field3DImpl< precision >::getDim(), CompuCell3D::Field3DImpl< precision >::isValid(), and CompuCell3D::Field3DImpl< precision >::setDim().
T* CompuCell3D::Field3DImpl< T >::field [private] |
Definition at line 48 of file Field3DImpl.h.
Referenced by CompuCell3D::Field3DImpl< precision >::Field3DImpl(), CompuCell3D::Field3DImpl< precision >::get(), CompuCell3D::Field3DImpl< precision >::getByIndex(), CompuCell3D::Field3DImpl< precision >::getQuick(), CompuCell3D::Field3DImpl< precision >::set(), CompuCell3D::Field3DImpl< precision >::setByIndex(), CompuCell3D::Field3DImpl< precision >::setDim(), CompuCell3D::Field3DImpl< precision >::setQuick(), and CompuCell3D::Field3DImpl< precision >::~Field3DImpl().
T CompuCell3D::Field3DImpl< T >::initialValue [private] |
Definition at line 49 of file Field3DImpl.h.
Referenced by CompuCell3D::Field3DImpl< precision >::get(), CompuCell3D::Field3DImpl< precision >::getByIndex(), and CompuCell3D::Field3DImpl< precision >::setDim().
long CompuCell3D::Field3DImpl< T >::len [private] |
Definition at line 50 of file Field3DImpl.h.
Referenced by CompuCell3D::Field3DImpl< precision >::Field3DImpl(), CompuCell3D::Field3DImpl< precision >::getByIndex(), and CompuCell3D::Field3DImpl< precision >::setByIndex().
1.5.6