Aim: VectorField represents a discrete vector field in the dec package. Vector field values are attached to 0-cells with the same duality as the vector field.
More...
#include <DGtal/dec/VectorField.h>
template<typename TCalculus, Duality duality>
class DGtal::VectorField< TCalculus, duality >
Aim: VectorField represents a discrete vector field in the dec package. Vector field values are attached to 0-cells with the same duality as the vector field.
Description of template class 'VectorField'
- Template Parameters
-
Definition at line 67 of file VectorField.h.
◆ Calculus
template<typename TCalculus , Duality duality>
◆ Container
template<typename TCalculus , Duality duality>
◆ Coordinates
template<typename TCalculus , Duality duality>
◆ Index
template<typename TCalculus , Duality duality>
◆ Scalar
template<typename TCalculus , Duality duality>
◆ SCell
template<typename TCalculus , Duality duality>
◆ Vector
template<typename TCalculus , Duality duality>
◆ VectorField() [1/3]
template<typename TCalculus , Duality duality>
Constructor.
- Parameters
-
calculus | the discrete exterior calculus to use. |
◆ VectorField() [2/3]
template<typename TCalculus , Duality duality>
Constructor.
- Parameters
-
calculus | the discrete exterior calculus to use. |
container | the container to copy. |
◆ VectorField() [3/3]
template<typename TCalculus , Duality duality>
Constructor. Forbidden by default (protected to avoid g++ warnings).
◆ className()
template<typename TCalculus , Duality duality>
Get class name string "VectorField".
◆ clear()
template<typename TCalculus , Duality duality>
Clear current vector field.
◆ coordAlongDirection()
template<typename TCalculus , Duality duality>
Create zero form by projecting the vector field along basis vector.
- Parameters
-
dir | direction along wich the vector field is projected. |
◆ getSCell()
template<typename TCalculus , Duality duality>
Get signed k-cell from index.
- Parameters
-
- Returns
- associated Khalimsky cell.
◆ getVector()
template<typename TCalculus , Duality duality>
Get vector from index.
- Parameters
-
index | of the corresponding 0-cell. |
◆ intensity()
template<typename TCalculus , Duality duality>
Create zero from with field intensity.
- Parameters
-
◆ isValid()
template<typename TCalculus , Duality duality>
Checks the validity/consistency of the object.
- Returns
- 'true' if the object is valid, 'false' otherwise.
◆ length()
template<typename TCalculus , Duality duality>
Get k-form length.
- Returns
- k-form length.
◆ normalized()
template<typename TCalculus , Duality duality>
Return the normalized vector field. Scale vector field to norm 1 at each point.
- Parameters
-
epsilon | vectors with norm lower than epsilon are set to zero. |
◆ operator=()
template<typename TCalculus , Duality duality>
Assignment.
- Parameters
-
- Returns
- a reference on 'this'.
◆ selfDisplay()
template<typename TCalculus , Duality duality>
Writes/Displays the object on an output stream.
- Parameters
-
out | the output stream where the object is written. |
◆ setVector()
template<typename TCalculus , Duality duality>
Set vector at index.
- Parameters
-
index | of the corresponding 0-cell. |
vector | value of the vector field to set at this index. |
◆ myCalculus
template<typename TCalculus , Duality duality>
◆ myCoordinates
template<typename TCalculus , Duality duality>
Container used to actually hold the kform data.
Definition at line 133 of file VectorField.h.
The documentation for this class was generated from the following file: