OpenVDB
1.2.0
|
#include <Stencils.h>
Inherits BaseStencil< GridType, GradStencil< GridType > >.
Public Types | |
typedef BaseStencil< GridType, GradStencil< GridType > > | BaseType |
typedef BaseType::BufferType | BufferType |
typedef GridType::ValueType | ValueType |
typedef math::Vec3< ValueType > | Vec3Type |
typedef GridType | GridType |
typedef GridType::TreeType | TreeType |
typedef BufferType::iterator | IterType |
Public Member Functions | |
GradStencil (const GridType &grid) | |
GradStencil (const GridType &grid, Real dx) | |
ValueType | normSqGrad () const |
Return the norm square of the single-sided upwind gradient (computed via Gudonov's scheme) at the previously buffered location. More... | |
Vec3Type | gradient () const |
Return the gradient computed at the previously buffered location by second order central differencing. More... | |
Vec3Type | gradient (const Vec3Type &V) const |
Return the first-order upwind gradient corresponding to the direction V. More... | |
ValueType | laplacian () const |
bool | zeroCrossing () const |
Vec3Type | cpt () |
Compute the closest-point transform to a level set. More... | |
void | moveTo (const Coord &ijk) |
Initialize the stencil buffer with the values of voxel (x, y, z) and its neighbors. More... | |
void | moveTo (const IterType &iter) |
Initialize the stencil buffer with the values of voxel (x, y, z) and its neighbors. More... | |
ValueType | getValue (unsigned int pos=0) const |
Return the value from the stencil buffer with linear offset pos. More... | |
const ValueType & | getValue () const |
Return the value at the specified location relative to the center of the stencil. More... | |
void | setValue (const ValueType &value) |
Set the value at the specified location relative to the center of the stencil. More... | |
int | size () |
Return the size of the stencil buffer. More... | |
ValueType | median () const |
Return the median value of the current stencil. More... | |
ValueType | mean () const |
Return the mean value of the current stencil. More... | |
ValueType | min () const |
Return the smallest value in the stencil buffer. More... | |
ValueType | max () const |
Return the largest value in the stencil buffer. More... | |
const Coord & | getCenterCoord () const |
Return the coordinates of the center point of the stencil. More... | |
const ValueType & | getCenterValue () const |
Return the value at the center of the stencil. More... | |
bool | intersects (const ValueType &isoValue=zeroVal< ValueType >()) const |
Return true if the center of the stencil intersects the iso-contour specified by the isoValue. More... | |
Static Public Attributes | |
static const int | SIZE = 7 |
Protected Attributes | |
GridType::ConstAccessor | mCache |
BufferType | mStencil |
Coord | mCenter |
Friends | |
template<typename , typename > | |
class | BaseStencil |
This is a simple 7-point nearest neighbor stencil that supports gradient by second-order central differencing, first-order upwinding, Laplacian, closest-point transform and zero-crossing test.
typedef BaseStencil<GridType, GradStencil<GridType> > BaseType |
typedef BaseType::BufferType BufferType |
|
inherited |
|
inherited |
typedef GridType::ValueType ValueType |
typedef math::Vec3<ValueType> Vec3Type |
|
inline |
|
inline |
|
inline |
Compute the closest-point transform to a level set.
|
inlineinherited |
Return the coordinates of the center point of the stencil.
|
inlineinherited |
Return the value at the center of the stencil.
|
inlineinherited |
Return the value from the stencil buffer with linear offset pos.
|
inlineinherited |
Return the value at the specified location relative to the center of the stencil.
|
inline |
Return the gradient computed at the previously buffered location by second order central differencing.
Return the first-order upwind gradient corresponding to the direction V.
Return true if the center of the stencil intersects the iso-contour specified by the isoValue.
|
inline |
Return the Laplacian computed at the previously buffered location by second-order central differencing.
|
inlineinherited |
Return the largest value in the stencil buffer.
|
inlineinherited |
Return the mean value of the current stencil.
|
inlineinherited |
Return the median value of the current stencil.
|
inlineinherited |
Return the smallest value in the stencil buffer.
|
inlineinherited |
Initialize the stencil buffer with the values of voxel (x, y, z) and its neighbors.
|
inlineinherited |
Initialize the stencil buffer with the values of voxel (x, y, z) and its neighbors.
|
inline |
Return the norm square of the single-sided upwind gradient (computed via Gudonov's scheme) at the previously buffered location.
|
inlineinherited |
Set the value at the specified location relative to the center of the stencil.
|
inlineinherited |
Return the size of the stencil buffer.
|
inline |
Return true
if the sign of the value at the center point of the stencil is different from the signs of any of its six nearest neighbors.
|
friend |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
static |