OpenVDB  12.0.0
Public Member Functions | Public Attributes | List of all members
TileData< ValueType > Struct Template Reference

Struct that encodes a bounding box, value and level of a tile. More...

#include <openvdb/tools/FindActiveValues.h>

Public Member Functions

 TileData ()=default
 Default constructor. More...
 
 TileData (const CoordBBox &b, const ValueType &v, Index l, bool active=true)
 Member data constructor. More...
 
template<typename ParentNodeT >
 TileData (const ParentNodeT &parent, Index childIdx)
 Constructor from a parent node and the linear offset to one of its tiles. More...
 
template<typename ParentNodeT >
 TileData (const ParentNodeT &parent, const Coord &ijk, const ValueType &v)
 Constructor form a parent node, the coordinate of the origin of one of its tiles, and said tiles value. More...
 

Public Attributes

CoordBBox bbox
 
ValueType value
 
Index level
 
bool state
 

Detailed Description

template<typename ValueType>
struct openvdb::v12_0::tools::TileData< ValueType >

Struct that encodes a bounding box, value and level of a tile.

The bbox of a tiles is trimmed to the bounding box that probed it. The level is typically defined as: 1 is 8^3, 2 is 128^3, and 3 is 4096^3.

Constructor & Destructor Documentation

TileData ( )
default

Default constructor.

TileData ( const CoordBBox &  b,
const ValueType &  v,
Index  l,
bool  active = true 
)
inline

Member data constructor.

TileData ( const ParentNodeT &  parent,
Index  childIdx 
)
inline

Constructor from a parent node and the linear offset to one of its tiles.

Warning
This is an expert-only method since it assumes the linear offset to be valid, i.e. within the rand of the dimension of the parent node and NOT corresponding to a child node.
TileData ( const ParentNodeT &  parent,
const Coord &  ijk,
const ValueType &  v 
)
inline

Constructor form a parent node, the coordinate of the origin of one of its tiles, and said tiles value.

Member Data Documentation

CoordBBox bbox
Index level
bool state
ValueType value