Partial template specialization of DenseBase.
More...
#include <Dense.h>
|
size_t | coordToOffset (size_t i, size_t j, size_t k) const |
| Return the linear offset into this grid's value array given by unsigned coordinates (i, j, k), i.e., coordinates relative to the origin of this grid's bounding box. More...
|
|
size_t | xStride () const |
| Return the stride of the array in the x direction ( = dimY*dimZ). More...
|
|
size_t | yStride () const |
| Return the stride of the array in the y direction ( = dimZ). More...
|
|
|
static size_t | zStride () |
| Return the stride of the array in the z direction ( = 1). More...
|
|
|
| DenseBase (const CoordBBox &bbox) |
| Protected constructor so as to prevent direct instantiation. More...
|
|
|
const CoordBBox | mBBox |
|
const size_t | mY |
|
const size_t | mX |
|
template<typename ValueT>
class openvdb::v2_1_0::tools::DenseBase< ValueT, LayoutZYX >
Partial template specialization of DenseBase.
- Note
- ZYX is the memory-layout in VDB. It leads to nested for-loops of the order x, y, z which we find to be the most intuitive.
Protected constructor so as to prevent direct instantiation.
size_t coordToOffset |
( |
size_t |
i, |
|
|
size_t |
j, |
|
|
size_t |
k |
|
) |
| const |
|
inline |
Return the linear offset into this grid's value array given by unsigned coordinates (i, j, k), i.e., coordinates relative to the origin of this grid's bounding box.
Return the stride of the array in the x direction ( = dimY*dimZ).
- Note
- This method is required by both CopyToDense and CopyFromDense.
Return the stride of the array in the y direction ( = dimZ).
- Note
- This method is required by both CopyToDense and CopyFromDense.
static size_t zStride |
( |
| ) |
|
|
inlinestatic |
Return the stride of the array in the z direction ( = 1).
- Note
- This method is required by both CopyToDense and CopyFromDense.
The documentation for this class was generated from the following file: