OpenVDB: FindActiveValues< TreeT >::RootChild Struct Reference

OpenVDB 12.0.0 |

Loading...
Searching...
No Matches
Public Types | Public Member Functions | Public Attributes | List of all members
FindActiveValues< TreeT >::RootChild Struct Reference

`#include <openvdb/tools/FindActiveValues.h>`

## Public Types
using | TileDataT

## Public Member Functions
| RootChild (const Coord &ijk=Coord(), const RootChildType *ptr=nullptr)
| FindActiveValues (const TreeT &tree)
| Constructor from a const tree, which is assumed not to be modified after construction.
| ~FindActiveValues ()
| Default destructor.
void | update (const TreeT &tree)
| Initiate this class with a new (or modified) tree.
bool | anyActiveValues (const CoordBBox &bbox, bool useAccessor=false) const
| Returns true if the specified bounding box intersects any active values.
bool | anyActiveVoxels (const CoordBBox &bbox) const
| Returns true if the specified bounding box intersects any active tiles only.
bool | anyActiveTiles (const CoordBBox &bbox) const
| Returns true if the specified bounding box intersects any active tiles only.
bool | noActiveValues (const CoordBBox &bbox, bool useAccessor=false) const
| Returns true if the specified bounding box does not intersect any active values.
Index64 | count (const CoordBBox &bbox) const
| Returns the number of active voxels intersected by the specified bounding box.
std::vector< TileDataT > | activeTiles (const CoordBBox &bbox) const
| Return a vector with bounding boxes that represents all the intersections between active tiles in the tree and the specified bounding box.

## Public Attributes
const CoordBBox | bbox
const RootChildType * | child

## Member Typedef Documentation

## ◆ TileDataT

using TileDataT

## Constructor & Destructor Documentation

## ◆ RootChild()

template<typename TreeT>

RootChild | ( | const Coord & | ijk = Coord(),
|  | const RootChildType * | ptr = nullptr )
| inline

## ◆ ~FindActiveValues()

~FindActiveValues | ( |  | ) |

Default destructor.

## Member Function Documentation

## ◆ activeTiles()

std::vector< TileData< typename TreeT::ValueType > > activeTiles | ( | const CoordBBox & | bbox | ) | const

Return a vector with bounding boxes that represents all the intersections between active tiles in the tree and the specified bounding box.

## ◆ anyActiveTiles()

bool anyActiveTiles | ( | const CoordBBox & | bbox | ) | const

Returns true if the specified bounding box intersects any active tiles only.

## ◆ anyActiveValues()

bool anyActiveValues | ( | const CoordBBox & | bbox,
|  | bool | useAccessor = false ) const

Returns true if the specified bounding box intersects any active values.

Warning
  Using a ValueAccessor (i.e. useAccessor = true) can improve performance for especially small bounding boxes, but at the cost of no thread-safety. So if multiple threads are calling this method concurrently use the default setting, useAccessor = false.

## ◆ anyActiveVoxels()

bool anyActiveVoxels | ( | const CoordBBox & | bbox | ) | const

Returns true if the specified bounding box intersects any active tiles only.

## ◆ count()

Index64 count | ( | const CoordBBox & | bbox | ) | const

Returns the number of active voxels intersected by the specified bounding box.

## ◆ FindActiveValues()

FindActiveValues | ( | const TreeT & | tree | ) |

Constructor from a const tree, which is assumed not to be modified after construction.

## ◆ noActiveValues()

bool noActiveValues | ( | const CoordBBox & | bbox,
|  | bool | useAccessor = false ) const
| inline

Returns true if the specified bounding box does not intersect any active values.

Warning
  Using a ValueAccessor (i.e. useAccessor = true) can improve performance for especially small bounding boxes, but at the cost of no thread-safety. So if multiple threads are calling this method concurrently use the default setting, useAccessor = false.

## ◆ update()

void update | ( | const TreeT & | tree | ) |

Initiate this class with a new (or modified) tree.

## Member Data Documentation

## ◆ bbox

template<typename TreeT>

const CoordBBox bbox

## ◆ child

template<typename TreeT>

const RootChildType* child