![]() |
Chemical Data Processing Library Python API - Version 1.4.0
|
Unbounded dense regular grid storing floating point values of type double.
More...
Inheritance diagram for CDPL.Math.DRegularSpatialGrid:Public Member Functions | |
| None | __init__ (DRegularSpatialGrid grid) |
Initializes a copy of the DRegularSpatialGrid instance grid. More... | |
| None | __init__ (DGrid data, float xs, float ys, float zs) |
| Constructs the grid with anisotropic per-axis step sizes initialized to the supplied grid data. More... | |
| None | __init__ (DGrid data, float s) |
| Constructs the grid with isotropic step size s and the supplied grid data. More... | |
| None | __init__ (float xs, float ys, float zs) |
| Constructs an empty grid with anisotropic per-axis step sizes. More... | |
| None | __init__ (float s) |
| Constructs an empty grid with isotropic step size s on all three axes. More... | |
| None | resize (int m, int n, int o, bool preserve=True, float v=0.0) |
| Resizes the grid to \( m \times n \times o \) cells. More... | |
| None | clear (float v=0.0) |
| Sets every cell of the grid to the value v. More... | |
| float | getXExtent () |
| Returns the spatial extent of the grid along the X axis ( \( (\mathrm{size}_1 - 1) \cdot \mathrm{xStep} \) for non-empty grids). More... | |
| float | getYExtent () |
| Returns the spatial extent of the grid along the Y axis. More... | |
| float | getZExtent () |
| Returns the spatial extent of the grid along the Z axis. More... | |
| float | getXStepSize () |
| Returns the per-cell step size along the X axis. More... | |
| float | getYStepSize () |
| Returns the per-cell step size along the Y axis. More... | |
| float | getZStepSize () |
| Returns the per-cell step size along the Z axis. More... | |
| None | setXStepSize (float xs) |
| Sets the per-cell step size along the X axis to xs. More... | |
| None | setYStepSize (float ys) |
| Sets the per-cell step size along the Y axis to ys. More... | |
| None | setZStepSize (float zs) |
| Sets the per-cell step size along the Z axis to zs. More... | |
| DGrid | getData () |
| Returns a mutable reference to the underlying grid data container. More... | |
| None | setCoordinatesTransform (Matrix4D xform) |
| Sets the cell-index to world-coordinate transformation to xform and caches its inverse. More... | |
| Matrix4D | getCoordinatesTransform () |
| Returns the coordinate transformation mapping cell-index coordinates to world coordinates. More... | |
| None | getCoordinates (int i, int j, int k, object coords) |
| Writes the world-space 3D position of the cell at (i, j, k) into coords. More... | |
| None | getCoordinates (int i, object coords) |
| Writes the world-space 3D position of the cell with linear index i into coords. More... | |
| None | getLocalCoordinates (int i, int j, int k, object coords) |
| Writes the local-space 3D position of the cell at (i, j, k) into coords. More... | |
| None | getLocalCoordinates (Vector3D world_coords, object local_coords) |
| Transforms the world-space point world_coords into the grid's local coordinate frame and stores the result in local_coords. More... | |
| bool | containsPoint (Vector3F pos) |
| Tells whether the world-space point pos lies within the grid bounds. More... | |
| bool | containsPoint (ConstFVectorExpression pos) |
| Tells whether the world-space point pos lies within the grid bounds. More... | |
| bool | containsPoint (Vector3D pos) |
| Tells whether the world-space point pos lies within the grid bounds. More... | |
| bool | containsPoint (ConstDVectorExpression pos) |
| Tells whether the world-space point pos lies within the grid bounds. More... | |
| bool | containsPoint (Vector3L pos) |
| Tells whether the world-space point pos lies within the grid bounds. More... | |
| bool | containsPoint (ConstLVectorExpression pos) |
| Tells whether the world-space point pos lies within the grid bounds. More... | |
| bool | containsPoint (Vector3UL pos) |
| Tells whether the world-space point pos lies within the grid bounds. More... | |
| bool | containsPoint (ConstULVectorExpression pos) |
| Tells whether the world-space point pos lies within the grid bounds. More... | |
| bool | containsLocalPoint (Vector3F pos) |
| Tells whether the local-space point pos lies within the grid bounds. More... | |
| bool | containsLocalPoint (ConstFVectorExpression pos) |
| Tells whether the local-space point pos lies within the grid bounds. More... | |
| bool | containsLocalPoint (Vector3D pos) |
| Tells whether the local-space point pos lies within the grid bounds. More... | |
| bool | containsLocalPoint (ConstDVectorExpression pos) |
| Tells whether the local-space point pos lies within the grid bounds. More... | |
| bool | containsLocalPoint (Vector3L pos) |
| Tells whether the local-space point pos lies within the grid bounds. More... | |
| bool | containsLocalPoint (ConstLVectorExpression pos) |
| Tells whether the local-space point pos lies within the grid bounds. More... | |
| bool | containsLocalPoint (Vector3UL pos) |
| Tells whether the local-space point pos lies within the grid bounds. More... | |
| bool | containsLocalPoint (ConstULVectorExpression pos) |
| Tells whether the local-space point pos lies within the grid bounds. More... | |
| None | getContainingCell (Vector3F pos, object indices) |
| Writes the (i, j, k) cell indices of the cell containing the world-space point pos into indices. More... | |
| None | getContainingCell (ConstFVectorExpression pos, object indices) |
| Writes the (i, j, k) cell indices of the cell containing the world-space point pos into indices. More... | |
| None | getContainingCell (Vector3D pos, object indices) |
| Writes the (i, j, k) cell indices of the cell containing the world-space point pos into indices. More... | |
| None | getContainingCell (ConstDVectorExpression pos, object indices) |
| Writes the (i, j, k) cell indices of the cell containing the world-space point pos into indices. More... | |
| None | getContainingCell (Vector3L pos, object indices) |
| Writes the (i, j, k) cell indices of the cell containing the world-space point pos into indices. More... | |
| None | getContainingCell (ConstLVectorExpression pos, object indices) |
| Writes the (i, j, k) cell indices of the cell containing the world-space point pos into indices. More... | |
| None | getContainingCell (Vector3UL pos, object indices) |
| Writes the (i, j, k) cell indices of the cell containing the world-space point pos into indices. More... | |
| None | getContainingCell (ConstULVectorExpression pos, object indices) |
| Writes the (i, j, k) cell indices of the cell containing the world-space point pos into indices. More... | |
| None | getLocalContainingCell (Vector3F pos, object indices) |
| Writes the (i, j, k) cell indices of the cell containing the local-space point pos into indices. More... | |
| None | getLocalContainingCell (ConstFVectorExpression pos, object indices) |
| Writes the (i, j, k) cell indices of the cell containing the local-space point pos into indices. More... | |
| None | getLocalContainingCell (Vector3D pos, object indices) |
| Writes the (i, j, k) cell indices of the cell containing the local-space point pos into indices. More... | |
| None | getLocalContainingCell (ConstDVectorExpression pos, object indices) |
| Writes the (i, j, k) cell indices of the cell containing the local-space point pos into indices. More... | |
| None | getLocalContainingCell (Vector3L pos, object indices) |
| Writes the (i, j, k) cell indices of the cell containing the local-space point pos into indices. More... | |
| None | getLocalContainingCell (ConstLVectorExpression pos, object indices) |
| Writes the (i, j, k) cell indices of the cell containing the local-space point pos into indices. More... | |
| None | getLocalContainingCell (Vector3UL pos, object indices) |
| Writes the (i, j, k) cell indices of the cell containing the local-space point pos into indices. More... | |
| None | getLocalContainingCell (ConstULVectorExpression pos, object indices) |
| Writes the (i, j, k) cell indices of the cell containing the local-space point pos into indices. More... | |
| int | getObjectID () |
| Returns the numeric identifier (ID) of the wrapped C++ class instance. More... | |
| DRegularSpatialGrid | assign (ConstFGridExpression e) |
| Assigns the grid expression e to the underlying grid data without intermediate temporary. More... | |
| DRegularSpatialGrid | assign (ConstDGridExpression e) |
| Assigns the grid expression e to the underlying grid data without intermediate temporary. More... | |
| DRegularSpatialGrid | assign (object e) |
| Assigns the grid expression e to the underlying grid data without intermediate temporary. More... | |
| DRegularSpatialGrid | assign (DRegularSpatialGrid g) |
Replaces the current state of self with a copy of the state of the DRegularSpatialGrid instance g. More... | |
| int | getSize1 () |
| Returns the size of the grid along the first dimension. More... | |
| int | getSize2 () |
| Returns the size of the grid along the second dimension. More... | |
| int | getSize3 () |
| Returns the size of the grid along the third dimension. More... | |
| bool | isEmpty () |
| Tells whether the grid is empty (zero cells along any dimension). More... | |
| float | getElement (int i, int j, int k) |
| float | getElement (int i) |
| object | toArray () |
| int | getSize () |
| Returns the total number of cells of the grid. More... | |
| None | swap (DRegularSpatialGrid g) |
| None | setElement (int i, int j, int k, float v) |
| None | setElement (int i, float v) |
| float | __call__ (int i, int j, int k) |
| Returns a reference to the cell at the (i, j, k) position. More... | |
| float | __call__ (int i) |
| Returns a reference to the cell at the linear index i. More... | |
| float | __getitem__ (tuple ijk) |
| float | __getitem__ (int i) |
| int | __len__ () |
| bool | __eq__ (DRegularSpatialGrid g) |
Returns the result of the comparison operation self == g. More... | |
| bool | __eq__ (ConstDGridExpression e) |
Returns the result of the comparison operation self == e. More... | |
| bool | __ne__ (DRegularSpatialGrid g) |
Returns the result of the comparison operation self != g. More... | |
| bool | __ne__ (ConstDGridExpression e) |
Returns the result of the comparison operation self != e. More... | |
| str | __str__ () |
Returns a string representation of the DRegularSpatialGrid instance. More... | |
| DRegularSpatialGrid | __pos__ () |
| ConstDGridExpression | __neg__ () |
| ConstDGridExpression | __add__ (ConstDGridExpression e) |
Returns the result of the addition operation self + e. More... | |
| ConstDGridExpression | __sub__ (ConstDGridExpression e) |
Returns the result of the subtraction operation self - e. More... | |
| ConstDGridExpression | __mul__ (float t) |
Returns the result of the multiplication operation self * t. More... | |
| ConstDGridExpression | __div__ (float t) |
Returns the result of the division operation self // t. More... | |
| ConstDGridExpression | __truediv__ (float t) |
Returns the result of the true division operation self / t. More... | |
| ConstDGridExpression | __rmul__ (float t) |
Returns the result of the multiplication operation t * self. More... | |
| None | __setitem__ (tuple ijk, float v) |
| None | __setitem__ (int i, float v) |
| DRegularSpatialGrid | __iadd__ (DRegularSpatialGrid g) |
Performs the in-place addition operation self += g. More... | |
| DRegularSpatialGrid | __iadd__ (ConstDGridExpression e) |
Performs the in-place addition operation self += e. More... | |
| DRegularSpatialGrid | __isub__ (DRegularSpatialGrid g) |
Performs the in-place subtraction operation self -= g. More... | |
| DRegularSpatialGrid | __isub__ (ConstDGridExpression e) |
Performs the in-place subtraction operation self -= e. More... | |
| DRegularSpatialGrid | __imul__ (float t) |
Performs the in-place multiplication operation self *= t. More... | |
| DRegularSpatialGrid | __idiv__ (float t) |
Performs the in-place division operation self /= t. More... | |
| DRegularSpatialGrid | __itruediv__ (float t) |
Properties | |
| data = property(getData) | |
| coordsTransform = property(getCoordinatesTransform, setCoordinatesTransform) | |
| xStepSize = property(getXStepSize, setXStepSize) | |
| yStepSize = property(getYStepSize, setYStepSize) | |
| zStepSize = property(getZStepSize, setZStepSize) | |
| xExtent = property(getXExtent) | |
| yExtent = property(getYExtent) | |
| zExtent = property(getZExtent) | |
| objectID = property(getObjectID) | |
| size1 = property(getSize1) | |
| size2 = property(getSize2) | |
| size3 = property(getSize3) | |
Unbounded dense regular grid storing floating point values of type double.
| None CDPL.Math.DRegularSpatialGrid.__init__ | ( | DRegularSpatialGrid | grid | ) |
Initializes a copy of the DRegularSpatialGrid instance grid.
| grid | The DRegularSpatialGrid instance to copy. |
| None CDPL.Math.DRegularSpatialGrid.__init__ | ( | DGrid | data, |
| float | xs, | ||
| float | ys, | ||
| float | zs | ||
| ) |
Constructs the grid with anisotropic per-axis step sizes initialized to the supplied grid data.
| data | The grid data container. |
| xs | The step size along the X axis. |
| ys | The step size along the Y axis. |
| zs | The step size along the Z axis. |
| None CDPL.Math.DRegularSpatialGrid.__init__ | ( | DGrid | data, |
| float | s | ||
| ) |
Constructs the grid with isotropic step size s and the supplied grid data.
| data | The grid data container. |
| s | The step size used on every axis. |
| None CDPL.Math.DRegularSpatialGrid.__init__ | ( | float | xs, |
| float | ys, | ||
| float | zs | ||
| ) |
Constructs an empty grid with anisotropic per-axis step sizes.
| xs | The step size along the X axis. |
| ys | The step size along the Y axis. |
| zs | The step size along the Z axis. |
Reimplemented in CDPL.Grid.DRegularGrid.
| None CDPL.Math.DRegularSpatialGrid.__init__ | ( | float | s | ) |
Constructs an empty grid with isotropic step size s on all three axes.
| s | The step size used on every axis. |
Reimplemented in CDPL.Grid.DRegularGrid.
| None CDPL.Math.DRegularSpatialGrid.resize | ( | int | m, |
| int | n, | ||
| int | o, | ||
| bool | preserve = True, |
||
| float | v = 0.0 |
||
| ) |
Resizes the grid to \( m \times n \times o \) cells.
| m | The new first-dimension size. |
| n | The new second-dimension size. |
| o | The new third-dimension size. |
| preserve | If True, existing cell values are kept where the indices remain valid. If False, all cells are set to v. |
| v | The fill value used for newly added cells (and for all cells if preserve is False). |
| None CDPL.Math.DRegularSpatialGrid.clear | ( | float | v = 0.0 | ) |
Sets every cell of the grid to the value v.
| v | The fill value. |
| float CDPL.Math.DRegularSpatialGrid.getXExtent | ( | ) |
Returns the spatial extent of the grid along the X axis ( \( (\mathrm{size}_1 - 1) \cdot \mathrm{xStep} \) for non-empty grids).
| float CDPL.Math.DRegularSpatialGrid.getYExtent | ( | ) |
Returns the spatial extent of the grid along the Y axis.
| float CDPL.Math.DRegularSpatialGrid.getZExtent | ( | ) |
Returns the spatial extent of the grid along the Z axis.
| float CDPL.Math.DRegularSpatialGrid.getXStepSize | ( | ) |
Returns the per-cell step size along the X axis.
| float CDPL.Math.DRegularSpatialGrid.getYStepSize | ( | ) |
Returns the per-cell step size along the Y axis.
| float CDPL.Math.DRegularSpatialGrid.getZStepSize | ( | ) |
Returns the per-cell step size along the Z axis.
| None CDPL.Math.DRegularSpatialGrid.setXStepSize | ( | float | xs | ) |
Sets the per-cell step size along the X axis to xs.
| xs | The new X-axis step size. |
| None CDPL.Math.DRegularSpatialGrid.setYStepSize | ( | float | ys | ) |
Sets the per-cell step size along the Y axis to ys.
| ys | The new Y-axis step size. |
| None CDPL.Math.DRegularSpatialGrid.setZStepSize | ( | float | zs | ) |
Sets the per-cell step size along the Z axis to zs.
| zs | The new Z-axis step size. |
| DGrid CDPL.Math.DRegularSpatialGrid.getData | ( | ) |
Returns a mutable reference to the underlying grid data container.
| None CDPL.Math.DRegularSpatialGrid.setCoordinatesTransform | ( | Matrix4D | xform | ) |
Sets the cell-index to world-coordinate transformation to xform and caches its inverse.
| xform | The new transformation. |
| Base.CalculationFailed | if the transformation cannot be inverted (only when math checks are enabled). |
| Matrix4D CDPL.Math.DRegularSpatialGrid.getCoordinatesTransform | ( | ) |
Returns the coordinate transformation mapping cell-index coordinates to world coordinates.
| None CDPL.Math.DRegularSpatialGrid.getCoordinates | ( | int | i, |
| int | j, | ||
| int | k, | ||
| object | coords | ||
| ) |
Writes the world-space 3D position of the cell at (i, j, k) into coords.
| i | The first-dimension cell index. |
| j | The second-dimension cell index. |
| k | The third-dimension cell index. |
| coords | The output vector receiving the X/Y/Z position. |
Reimplemented in CDPL.Grid.DRegularGrid.
| None CDPL.Math.DRegularSpatialGrid.getCoordinates | ( | int | i, |
| object | coords | ||
| ) |
Writes the world-space 3D position of the cell with linear index i into coords.
| i | The zero-based linear cell index. |
| coords | The output vector receiving the X/Y/Z position. |
Reimplemented in CDPL.Grid.DRegularGrid.
| None CDPL.Math.DRegularSpatialGrid.getLocalCoordinates | ( | int | i, |
| int | j, | ||
| int | k, | ||
| object | coords | ||
| ) |
Writes the local-space 3D position of the cell at (i, j, k) into coords.
Local coordinates are centered at the grid origin (the cell-center cell-index coordinate system before applying the world-space transformation).
| i | The first-dimension cell index. |
| j | The second-dimension cell index. |
| k | The third-dimension cell index. |
| coords | The output vector receiving the local X/Y/Z position. |
| None CDPL.Math.DRegularSpatialGrid.getLocalCoordinates | ( | Vector3D | world_coords, |
| object | local_coords | ||
| ) |
Transforms the world-space point world_coords into the grid's local coordinate frame and stores the result in local_coords.
| world_coords | The input world-space 3D position. |
| local_coords | The output vector receiving the local-frame 3D position. |
| bool CDPL.Math.DRegularSpatialGrid.containsPoint | ( | Vector3F | pos | ) |
Tells whether the world-space point pos lies within the grid bounds.
| pos | The world-space 3D position to test. |
True if pos is inside the grid, and False otherwise. | bool CDPL.Math.DRegularSpatialGrid.containsPoint | ( | ConstFVectorExpression | pos | ) |
Tells whether the world-space point pos lies within the grid bounds.
| pos | The world-space 3D position to test. |
True if pos is inside the grid, and False otherwise. | bool CDPL.Math.DRegularSpatialGrid.containsPoint | ( | Vector3D | pos | ) |
Tells whether the world-space point pos lies within the grid bounds.
| pos | The world-space 3D position to test. |
True if pos is inside the grid, and False otherwise. | bool CDPL.Math.DRegularSpatialGrid.containsPoint | ( | ConstDVectorExpression | pos | ) |
Tells whether the world-space point pos lies within the grid bounds.
| pos | The world-space 3D position to test. |
True if pos is inside the grid, and False otherwise. | bool CDPL.Math.DRegularSpatialGrid.containsPoint | ( | Vector3L | pos | ) |
Tells whether the world-space point pos lies within the grid bounds.
| pos | The world-space 3D position to test. |
True if pos is inside the grid, and False otherwise. | bool CDPL.Math.DRegularSpatialGrid.containsPoint | ( | ConstLVectorExpression | pos | ) |
Tells whether the world-space point pos lies within the grid bounds.
| pos | The world-space 3D position to test. |
True if pos is inside the grid, and False otherwise. | bool CDPL.Math.DRegularSpatialGrid.containsPoint | ( | Vector3UL | pos | ) |
Tells whether the world-space point pos lies within the grid bounds.
| pos | The world-space 3D position to test. |
True if pos is inside the grid, and False otherwise. | bool CDPL.Math.DRegularSpatialGrid.containsPoint | ( | ConstULVectorExpression | pos | ) |
Tells whether the world-space point pos lies within the grid bounds.
| pos | The world-space 3D position to test. |
True if pos is inside the grid, and False otherwise. | bool CDPL.Math.DRegularSpatialGrid.containsLocalPoint | ( | Vector3F | pos | ) |
Tells whether the local-space point pos lies within the grid bounds.
| pos | The local-frame 3D position to test. |
True if pos is inside the grid, and False otherwise. | bool CDPL.Math.DRegularSpatialGrid.containsLocalPoint | ( | ConstFVectorExpression | pos | ) |
Tells whether the local-space point pos lies within the grid bounds.
| pos | The local-frame 3D position to test. |
True if pos is inside the grid, and False otherwise. | bool CDPL.Math.DRegularSpatialGrid.containsLocalPoint | ( | Vector3D | pos | ) |
Tells whether the local-space point pos lies within the grid bounds.
| pos | The local-frame 3D position to test. |
True if pos is inside the grid, and False otherwise. | bool CDPL.Math.DRegularSpatialGrid.containsLocalPoint | ( | ConstDVectorExpression | pos | ) |
Tells whether the local-space point pos lies within the grid bounds.
| pos | The local-frame 3D position to test. |
True if pos is inside the grid, and False otherwise. | bool CDPL.Math.DRegularSpatialGrid.containsLocalPoint | ( | Vector3L | pos | ) |
Tells whether the local-space point pos lies within the grid bounds.
| pos | The local-frame 3D position to test. |
True if pos is inside the grid, and False otherwise. | bool CDPL.Math.DRegularSpatialGrid.containsLocalPoint | ( | ConstLVectorExpression | pos | ) |
Tells whether the local-space point pos lies within the grid bounds.
| pos | The local-frame 3D position to test. |
True if pos is inside the grid, and False otherwise. | bool CDPL.Math.DRegularSpatialGrid.containsLocalPoint | ( | Vector3UL | pos | ) |
Tells whether the local-space point pos lies within the grid bounds.
| pos | The local-frame 3D position to test. |
True if pos is inside the grid, and False otherwise. | bool CDPL.Math.DRegularSpatialGrid.containsLocalPoint | ( | ConstULVectorExpression | pos | ) |
Tells whether the local-space point pos lies within the grid bounds.
| pos | The local-frame 3D position to test. |
True if pos is inside the grid, and False otherwise. | None CDPL.Math.DRegularSpatialGrid.getContainingCell | ( | Vector3F | pos, |
| object | indices | ||
| ) |
Writes the (i, j, k) cell indices of the cell containing the world-space point pos into indices.
| pos | The world-space 3D position. |
| indices | The output vector receiving the three cell indices. |
| None CDPL.Math.DRegularSpatialGrid.getContainingCell | ( | ConstFVectorExpression | pos, |
| object | indices | ||
| ) |
Writes the (i, j, k) cell indices of the cell containing the world-space point pos into indices.
| pos | The world-space 3D position. |
| indices | The output vector receiving the three cell indices. |
| None CDPL.Math.DRegularSpatialGrid.getContainingCell | ( | Vector3D | pos, |
| object | indices | ||
| ) |
Writes the (i, j, k) cell indices of the cell containing the world-space point pos into indices.
| pos | The world-space 3D position. |
| indices | The output vector receiving the three cell indices. |
| None CDPL.Math.DRegularSpatialGrid.getContainingCell | ( | ConstDVectorExpression | pos, |
| object | indices | ||
| ) |
Writes the (i, j, k) cell indices of the cell containing the world-space point pos into indices.
| pos | The world-space 3D position. |
| indices | The output vector receiving the three cell indices. |
| None CDPL.Math.DRegularSpatialGrid.getContainingCell | ( | Vector3L | pos, |
| object | indices | ||
| ) |
Writes the (i, j, k) cell indices of the cell containing the world-space point pos into indices.
| pos | The world-space 3D position. |
| indices | The output vector receiving the three cell indices. |
| None CDPL.Math.DRegularSpatialGrid.getContainingCell | ( | ConstLVectorExpression | pos, |
| object | indices | ||
| ) |
Writes the (i, j, k) cell indices of the cell containing the world-space point pos into indices.
| pos | The world-space 3D position. |
| indices | The output vector receiving the three cell indices. |
| None CDPL.Math.DRegularSpatialGrid.getContainingCell | ( | Vector3UL | pos, |
| object | indices | ||
| ) |
Writes the (i, j, k) cell indices of the cell containing the world-space point pos into indices.
| pos | The world-space 3D position. |
| indices | The output vector receiving the three cell indices. |
| None CDPL.Math.DRegularSpatialGrid.getContainingCell | ( | ConstULVectorExpression | pos, |
| object | indices | ||
| ) |
Writes the (i, j, k) cell indices of the cell containing the world-space point pos into indices.
| pos | The world-space 3D position. |
| indices | The output vector receiving the three cell indices. |
| None CDPL.Math.DRegularSpatialGrid.getLocalContainingCell | ( | Vector3F | pos, |
| object | indices | ||
| ) |
Writes the (i, j, k) cell indices of the cell containing the local-space point pos into indices.
| pos | The local-frame 3D position. |
| indices | The output vector receiving the three cell indices. |
| None CDPL.Math.DRegularSpatialGrid.getLocalContainingCell | ( | ConstFVectorExpression | pos, |
| object | indices | ||
| ) |
Writes the (i, j, k) cell indices of the cell containing the local-space point pos into indices.
| pos | The local-frame 3D position. |
| indices | The output vector receiving the three cell indices. |
| None CDPL.Math.DRegularSpatialGrid.getLocalContainingCell | ( | Vector3D | pos, |
| object | indices | ||
| ) |
Writes the (i, j, k) cell indices of the cell containing the local-space point pos into indices.
| pos | The local-frame 3D position. |
| indices | The output vector receiving the three cell indices. |
| None CDPL.Math.DRegularSpatialGrid.getLocalContainingCell | ( | ConstDVectorExpression | pos, |
| object | indices | ||
| ) |
Writes the (i, j, k) cell indices of the cell containing the local-space point pos into indices.
| pos | The local-frame 3D position. |
| indices | The output vector receiving the three cell indices. |
| None CDPL.Math.DRegularSpatialGrid.getLocalContainingCell | ( | Vector3L | pos, |
| object | indices | ||
| ) |
Writes the (i, j, k) cell indices of the cell containing the local-space point pos into indices.
| pos | The local-frame 3D position. |
| indices | The output vector receiving the three cell indices. |
| None CDPL.Math.DRegularSpatialGrid.getLocalContainingCell | ( | ConstLVectorExpression | pos, |
| object | indices | ||
| ) |
Writes the (i, j, k) cell indices of the cell containing the local-space point pos into indices.
| pos | The local-frame 3D position. |
| indices | The output vector receiving the three cell indices. |
| None CDPL.Math.DRegularSpatialGrid.getLocalContainingCell | ( | Vector3UL | pos, |
| object | indices | ||
| ) |
Writes the (i, j, k) cell indices of the cell containing the local-space point pos into indices.
| pos | The local-frame 3D position. |
| indices | The output vector receiving the three cell indices. |
| None CDPL.Math.DRegularSpatialGrid.getLocalContainingCell | ( | ConstULVectorExpression | pos, |
| object | indices | ||
| ) |
Writes the (i, j, k) cell indices of the cell containing the local-space point pos into indices.
| pos | The local-frame 3D position. |
| indices | The output vector receiving the three cell indices. |
| int CDPL.Math.DRegularSpatialGrid.getObjectID | ( | ) |
Returns the numeric identifier (ID) of the wrapped C++ class instance.
Different Python DRegularSpatialGrid instances may reference the same underlying C++ class instance. The commonly used Python expression a is not b thus cannot tell reliably whether the two DRegularSpatialGrid instances a and b reference different C++ objects. The numeric identifier returned by this method allows to correctly implement such an identity test via the simple expression a.getObjectID() != b.getObjectID().
| DRegularSpatialGrid CDPL.Math.DRegularSpatialGrid.assign | ( | ConstFGridExpression | e | ) |
Assigns the grid expression e to the underlying grid data without intermediate temporary.
| e | The source grid expression. |
| DRegularSpatialGrid CDPL.Math.DRegularSpatialGrid.assign | ( | ConstDGridExpression | e | ) |
Assigns the grid expression e to the underlying grid data without intermediate temporary.
| e | The source grid expression. |
| DRegularSpatialGrid CDPL.Math.DRegularSpatialGrid.assign | ( | object | e | ) |
Assigns the grid expression e to the underlying grid data without intermediate temporary.
| e | The source grid expression. |
Reimplemented in CDPL.Grid.DRegularGrid.
| DRegularSpatialGrid CDPL.Math.DRegularSpatialGrid.assign | ( | DRegularSpatialGrid | g | ) |
Replaces the current state of self with a copy of the state of the DRegularSpatialGrid instance g.
| g | The DRegularSpatialGrid instance to copy. |
| int CDPL.Math.DRegularSpatialGrid.getSize1 | ( | ) |
Returns the size of the grid along the first dimension.
Reimplemented in CDPL.Grid.DRegularGrid.
| int CDPL.Math.DRegularSpatialGrid.getSize2 | ( | ) |
Returns the size of the grid along the second dimension.
Reimplemented in CDPL.Grid.DRegularGrid.
| int CDPL.Math.DRegularSpatialGrid.getSize3 | ( | ) |
Returns the size of the grid along the third dimension.
Reimplemented in CDPL.Grid.DRegularGrid.
| bool CDPL.Math.DRegularSpatialGrid.isEmpty | ( | ) |
Tells whether the grid is empty (zero cells along any dimension).
True if the grid is empty, and False otherwise. Reimplemented in CDPL.Grid.DRegularGrid.
| float CDPL.Math.DRegularSpatialGrid.getElement | ( | int | i, |
| int | j, | ||
| int | k | ||
| ) |
| float CDPL.Math.DRegularSpatialGrid.getElement | ( | int | i | ) |
| object CDPL.Math.DRegularSpatialGrid.toArray | ( | ) |
Reimplemented in CDPL.Grid.DRegularGrid.
| int CDPL.Math.DRegularSpatialGrid.getSize | ( | ) |
Returns the total number of cells of the grid.
Reimplemented in CDPL.Grid.DRegularGrid.
| None CDPL.Math.DRegularSpatialGrid.swap | ( | DRegularSpatialGrid | g | ) |
| g |
| None CDPL.Math.DRegularSpatialGrid.setElement | ( | int | i, |
| int | j, | ||
| int | k, | ||
| float | v | ||
| ) |
| i | |
| j | |
| k | |
| v |
Reimplemented in CDPL.Grid.DRegularGrid.
| None CDPL.Math.DRegularSpatialGrid.setElement | ( | int | i, |
| float | v | ||
| ) |
| i | |
| v |
Reimplemented in CDPL.Grid.DRegularGrid.
| float CDPL.Math.DRegularSpatialGrid.__call__ | ( | int | i, |
| int | j, | ||
| int | k | ||
| ) |
Returns a reference to the cell at the (i, j, k) position.
| i | The zero-based first-dimension index. |
| j | The zero-based second-dimension index. |
| k | The zero-based third-dimension index. |
Reimplemented in CDPL.Grid.DRegularGrid.
| float CDPL.Math.DRegularSpatialGrid.__call__ | ( | int | i | ) |
Returns a reference to the cell at the linear index i.
| i | The zero-based linear cell index. |
Reimplemented in CDPL.Grid.DRegularGrid.
| float CDPL.Math.DRegularSpatialGrid.__getitem__ | ( | tuple | ijk | ) |
| float CDPL.Math.DRegularSpatialGrid.__getitem__ | ( | int | i | ) |
| int CDPL.Math.DRegularSpatialGrid.__len__ | ( | ) |
Reimplemented in CDPL.Grid.DRegularGrid.
| bool CDPL.Math.DRegularSpatialGrid.__eq__ | ( | DRegularSpatialGrid | g | ) |
Returns the result of the comparison operation self == g.
| g | The DRegularSpatialGrid instance to be compared with. |
| bool CDPL.Math.DRegularSpatialGrid.__eq__ | ( | ConstDGridExpression | e | ) |
Returns the result of the comparison operation self == e.
| e | The ConstDGridExpression instance to be compared with. |
| bool CDPL.Math.DRegularSpatialGrid.__ne__ | ( | DRegularSpatialGrid | g | ) |
Returns the result of the comparison operation self != g.
| g | The DRegularSpatialGrid instance to be compared with. |
| bool CDPL.Math.DRegularSpatialGrid.__ne__ | ( | ConstDGridExpression | e | ) |
Returns the result of the comparison operation self != e.
| e | The ConstDGridExpression instance to be compared with. |
| str CDPL.Math.DRegularSpatialGrid.__str__ | ( | ) |
Returns a string representation of the DRegularSpatialGrid instance.
Reimplemented in CDPL.Grid.DRegularGrid.
| DRegularSpatialGrid CDPL.Math.DRegularSpatialGrid.__pos__ | ( | ) |
Reimplemented in CDPL.Grid.DRegularGrid.
| ConstDGridExpression CDPL.Math.DRegularSpatialGrid.__neg__ | ( | ) |
Reimplemented in CDPL.Grid.DRegularGrid.
| ConstDGridExpression CDPL.Math.DRegularSpatialGrid.__add__ | ( | ConstDGridExpression | e | ) |
Returns the result of the addition operation self + e.
| e | Specifies the second addend. |
ConstDGridExpression instance holding the result of the addition. | ConstDGridExpression CDPL.Math.DRegularSpatialGrid.__sub__ | ( | ConstDGridExpression | e | ) |
Returns the result of the subtraction operation self - e.
| e | Specifies the subtrahend. |
DRegularSpatialGrid instance holding the result of the subtraction. | ConstDGridExpression CDPL.Math.DRegularSpatialGrid.__mul__ | ( | float | t | ) |
Returns the result of the multiplication operation self * t.
| t | Specifies the multiplier. |
ConstDGridExpression instance holding the result of the multiplication. Reimplemented in CDPL.Grid.DRegularGrid.
| ConstDGridExpression CDPL.Math.DRegularSpatialGrid.__div__ | ( | float | t | ) |
Returns the result of the division operation self // t.
| t | Specifies the divisor. |
ConstDGridExpression instance holding the result of the division. Reimplemented in CDPL.Grid.DRegularGrid.
| ConstDGridExpression CDPL.Math.DRegularSpatialGrid.__truediv__ | ( | float | t | ) |
Returns the result of the true division operation self / t.
| t | Specifies the divisor. |
ConstDGridExpression instance holding the result of the division. Reimplemented in CDPL.Grid.DRegularGrid.
| ConstDGridExpression CDPL.Math.DRegularSpatialGrid.__rmul__ | ( | float | t | ) |
Returns the result of the multiplication operation t * self.
| t | Specifies the multiplicand. |
ConstDGridExpression instance holding the result of the multiplication. Reimplemented in CDPL.Grid.DRegularGrid.
| None CDPL.Math.DRegularSpatialGrid.__setitem__ | ( | tuple | ijk, |
| float | v | ||
| ) |
| ijk | |
| v |
Reimplemented in CDPL.Grid.DRegularGrid.
| None CDPL.Math.DRegularSpatialGrid.__setitem__ | ( | int | i, |
| float | v | ||
| ) |
| i | |
| v |
Reimplemented in CDPL.Grid.DRegularGrid.
| DRegularSpatialGrid CDPL.Math.DRegularSpatialGrid.__iadd__ | ( | DRegularSpatialGrid | g | ) |
Performs the in-place addition operation self += g.
| g | Specifies the second addend. |
DRegularSpatialGrid instance self. | DRegularSpatialGrid CDPL.Math.DRegularSpatialGrid.__iadd__ | ( | ConstDGridExpression | e | ) |
Performs the in-place addition operation self += e.
| e | Specifies the second addend. |
DRegularSpatialGrid instance self. | DRegularSpatialGrid CDPL.Math.DRegularSpatialGrid.__isub__ | ( | DRegularSpatialGrid | g | ) |
Performs the in-place subtraction operation self -= g.
| g | Specifies the subtrahend. |
DRegularSpatialGrid instance self. | DRegularSpatialGrid CDPL.Math.DRegularSpatialGrid.__isub__ | ( | ConstDGridExpression | e | ) |
Performs the in-place subtraction operation self -= e.
| e | Specifies the subtrahend. |
DRegularSpatialGrid instance self. | DRegularSpatialGrid CDPL.Math.DRegularSpatialGrid.__imul__ | ( | float | t | ) |
Performs the in-place multiplication operation self *= t.
| t | Specifies the multiplier. |
DRegularSpatialGrid instance self. Reimplemented in CDPL.Grid.DRegularGrid.
| DRegularSpatialGrid CDPL.Math.DRegularSpatialGrid.__idiv__ | ( | float | t | ) |
Performs the in-place division operation self /= t.
| t | Specifies the divisor. |
DRegularSpatialGrid instance self. Reimplemented in CDPL.Grid.DRegularGrid.
| DRegularSpatialGrid CDPL.Math.DRegularSpatialGrid.__itruediv__ | ( | float | t | ) |