|
| ChannelAccessor (const IndexGrid &grid, uint32_t channelID=0u) |
| Ctor from an IndexGrid and an integer ID of an internal channel that is assumed to exist as blind data in the IndexGrid.
|
|
| ChannelAccessor (const IndexGrid &grid, ChannelT *channelPtr) |
| Ctor from an IndexGrid and an external channel.
|
|
const IndexGrid & | grid () const |
| Return a const reference to the IndexGrid.
|
|
const IndexTree & | tree () const |
| Return a const reference to the tree of the IndexGrid.
|
|
const Vec3R & | voxelSize () const |
| Return a vector of the axial voxel sizes.
|
|
const uint64_t & | valueCount () const |
| Return total number of values indexed by the IndexGrid.
|
|
void | setChannel (ChannelT *channelPtr) |
| Change to an external channel.
|
|
void | setChannel (uint32_t channelID) |
| Change to an internal channel, assuming it exists as as blind data in the IndexGrid.
|
|
uint64_t | getIndex (const Coord &ijk) const |
| Return the linear offset into a channel that maps to the specified coordinate.
|
|
uint64_t | idx (int i, int j, int k) const |
|
ChannelT & | getValue (const Coord &ijk) const |
| Return the value from a cached channel that maps to the specified coordinate.
|
|
ChannelT & | operator() (const Coord &ijk) const |
|
ChannelT & | operator() (int i, int j, int k) const |
|
bool | probeValue (const CoordType &ijk, typename remove_const< ChannelT >::type &v) const |
| return the state and updates the value of the specified voxel
|
|
template<typename T > |
T & | getValue (const Coord &ijk, T *channelPtr) const |
| Return the value from a specified channel that maps to the specified coordinate.
|
|
const RootT & | root () const |
|
template<typename NodeT > |
const NodeT * | getNode () const |
| Return a const point to the cached node of the specified type.
|
|
template<int LEVEL> |
const NodeTrait< TreeT, LEVEL >::type * | getNode () const |
|
void | clear () |
| Reset this access to its initial state, i.e. with an empty cache.
|
|
template<typename NodeT > |
bool | isCached (const CoordType &ijk) const |
|
ValueType | getValue (const CoordType &ijk) const |
|
ValueType | operator() (const CoordType &ijk) const |
|
NodeInfo | getNodeInfo (const CoordType &ijk) const |
|
bool | isActive (const CoordType &ijk) const |
|
bool | probeValue (const CoordType &ijk, ValueType &v) const |
|
const LeafT * | probeLeaf (const CoordType &ijk) const |
|
template<typename RayT > |
uint32_t | getDim (const CoordType &ijk, const RayT &ray) const |
|
Class to access values in channels at a specific voxel location.
- Note
- The ChannelT template parameter can be either const and non-const.