|
OpenVDB 13.0.0
|
Classes | |
| struct | FileHeader |
| Data encoded at the head of each segment of a file or stream. More... | |
| struct | FileMetaData |
Enumerations | |
| enum class | Codec : uint16_t { NONE = 0 , ZIP = 1 , BLOSC = 2 , End = 3 , StrLen = 6 + End } |
| Define compression codecs. More... | |
Functions | |
| __hostdev__ const char * | toStr (char *dst, Codec codec) |
| __hostdev__ Codec | toCodec (const char *str) |
| template<typename StreamT> | |
| void | writeUncompressedGrid (StreamT &os, const GridData *gridData, bool raw=false) |
| This is a standalone alternative to io::writeGrid(...,Codec::NONE) defined in util/IO.h Unlike the latter this function has no dependencies at all, not even NanoVDB.h, so it also works if client code only includes PNanoVDB.h! | |
| template<typename StreamT, typename ValueT> | |
| void | writeUncompressedGrid (StreamT &os, const GridData *gridData, const ValueT *blindData, GridBlindDataSemantic semantic=GridBlindDataSemantic::Unknown, bool raw=false) |
| Write an IndexGrid to a stream and append blind data. | |
| template<typename GridHandleT, template< typename... > class VecT> | |
| void | writeUncompressedGrids (const char *fileName, const VecT< GridHandleT > &handles, bool raw=false) |
| write multiple NanoVDB grids to a single file, without compression. | |
| template<typename GridHandleT, typename StreamT, template< typename... > class VecT> | |
| VecT< GridHandleT > | readUncompressedGrids (StreamT &is, const typename GridHandleT::BufferType &pool=typename GridHandleT::BufferType()) |
| read all uncompressed grids from a stream and return their handles. | |
| template<typename GridHandleT, template< typename... > class VecT> | |
| VecT< GridHandleT > | readUncompressedGrids (const char *fileName, const typename GridHandleT::BufferType &buffer=typename GridHandleT::BufferType()) |
| Read a multiple un-compressed NanoVDB grids from a file and return them as a vector. | |
|
strong |
| VecT< GridHandleT > readUncompressedGrids | ( | const char * | fileName, |
| const typename GridHandleT::BufferType & | buffer = typename GridHandleT::BufferType() ) |
Read a multiple un-compressed NanoVDB grids from a file and return them as a vector.
| VecT< GridHandleT > readUncompressedGrids | ( | StreamT & | is, |
| const typename GridHandleT::BufferType & | pool = typename GridHandleT::BufferType() ) |
read all uncompressed grids from a stream and return their handles.
| std::invalid_argument | if stream does not contain a single uncompressed valid NanoVDB grid |
StreamT class must support: "bool read(char*, size_t)" and "void skip(uint32_t)"
|
inline |
|
inline |
| void writeUncompressedGrid | ( | StreamT & | os, |
| const GridData * | gridData, | ||
| bool | raw = false ) |
This is a standalone alternative to io::writeGrid(...,Codec::NONE) defined in util/IO.h Unlike the latter this function has no dependencies at all, not even NanoVDB.h, so it also works if client code only includes PNanoVDB.h!
Writes a raw NanoVDB buffer, possibly with multiple grids, to a stream WITHOUT compression. It follows all the conventions in util/IO.h so the stream can be read by all existing client code of NanoVDB.
| std::invalid_argument | if buffer does not point to a valid NanoVDB grid. |
| void writeUncompressedGrid | ( | StreamT & | os, |
| const GridData * | gridData, | ||
| const ValueT * | blindData, | ||
| GridBlindDataSemantic | semantic = GridBlindDataSemantic::Unknown, | ||
| bool | raw = false ) |
Write an IndexGrid to a stream and append blind data.
| StreamT | Type of stream to write the IndexGrid and blind data to |
| ValueT | Type of the blind data |
| os | Output stream to write to |
| gridData | GridData containing an IndexGrid WITHOUT existing blind data |
| blindData | Raw point to array of blind data |
| semantic | GridBlindDataSemantic of the blind data |
| raw | If true the IndexGrid and blind data are streamed raw, i.e. without a file header. |
| void writeUncompressedGrids | ( | const char * | fileName, |
| const VecT< GridHandleT > & | handles, | ||
| bool | raw = false ) |
write multiple NanoVDB grids to a single file, without compression.