HDK
|
Efficient rasterization of one or more VDB Points grids into a linear or frustum volume with the option to bake in camera or geometry motion blur. More...
#include <PointRasterizeFrustum.h>
Public Types | |
using | GridPtr = typename PointDataGridT::Ptr |
using | GridConstPtr = typename PointDataGridT::ConstPtr |
using | GridToRasterize = point_rasterize_internal::GridToRasterize< PointDataGridT > |
Public Member Functions | |
FrustumRasterizer (const FrustumRasterizerSettings &settings, const FrustumRasterizerMask &mask=FrustumRasterizerMask(), util::NullInterrupter *interrupt=nullptr) | |
main constructor More... | |
void | addPoints (GridConstPtr &points) |
Append a PointDataGrid to the rasterizer (but don't rasterize yet). More... | |
void | addPoints (GridPtr &points, bool stream=false) |
Append a PointDataGrid to the rasterizer (but don't rasterize yet). More... | |
void | clear () |
Clear all PointDataGrids in the rasterizer. More... | |
size_t | size () const |
Return number of PointDataGrids in the rasterizer. More... | |
size_t | memUsage () const |
Return memory usage of the rasterizer. More... | |
template<typename FilterT = points::NullFilter> | |
FloatGrid::Ptr | rasterizeUniformDensity (RasterMode mode=RasterMode::MAXIMUM, bool reduceMemory=false, float scale=1.0f, const FilterT &filter=FilterT()) |
template<typename FilterT = points::NullFilter> | |
FloatGrid::Ptr | rasterizeDensity (const openvdb::Name &attribute, RasterMode mode=RasterMode::MAXIMUM, bool reduceMemory=false, float scale=1.0f, const FilterT &filter=FilterT()) |
template<typename FilterT = points::NullFilter> | |
GridBase::Ptr | rasterizeAttribute (const Name &attribute, RasterMode mode=RasterMode::ACCUMULATE, bool reduceMemory=false, float scale=1.0f, const FilterT &filter=FilterT()) |
template<typename GridT , typename AttributeT , typename FilterT = points::NullFilter> | |
GridT::Ptr | rasterizeAttribute (const Name &attribute, RasterMode mode=RasterMode::ACCUMULATE, bool reduceMemory=false, float scale=1.0f, const FilterT &filter=FilterT()) |
template<typename GridT , typename FilterT = points::NullFilter> | |
GridT::Ptr | rasterizeMask (bool reduceMemory=false, const FilterT &filter=FilterT()) |
Efficient rasterization of one or more VDB Points grids into a linear or frustum volume with the option to bake in camera or geometry motion blur.
The camera transform can be provided using a RasterCamera object to offer linear camera motion blur and geometry motion blur is computed from reading a velocity attribute on the points. Sub-sampled camera motion blur is planned.
Definition at line 163 of file PointRasterizeFrustum.h.
using openvdb::OPENVDB_VERSION_NAME::points::FrustumRasterizer< PointDataGridT >::GridConstPtr = typename PointDataGridT::ConstPtr |
Definition at line 167 of file PointRasterizeFrustum.h.
using openvdb::OPENVDB_VERSION_NAME::points::FrustumRasterizer< PointDataGridT >::GridPtr = typename PointDataGridT::Ptr |
Definition at line 166 of file PointRasterizeFrustum.h.
using openvdb::OPENVDB_VERSION_NAME::points::FrustumRasterizer< PointDataGridT >::GridToRasterize = point_rasterize_internal::GridToRasterize<PointDataGridT> |
Definition at line 168 of file PointRasterizeFrustum.h.
|
explicit |
main constructor
settings | the shared settings for rasterizing, see class for more details |
mask | a spatial mask to use to define the areas of rasterization |
interrupt | a pointer adhering to the util::NullInterrupter interface |
Definition at line 1265 of file PointRasterizeFrustumImpl.h.
void openvdb::OPENVDB_VERSION_NAME::points::FrustumRasterizer< PointDataGridT >::addPoints | ( | GridConstPtr & | points | ) |
Append a PointDataGrid to the rasterizer (but don't rasterize yet).
points | the PointDataGrid |
Definition at line 1280 of file PointRasterizeFrustumImpl.h.
void openvdb::OPENVDB_VERSION_NAME::points::FrustumRasterizer< PointDataGridT >::addPoints | ( | GridPtr & | points, |
bool | stream = false |
||
) |
Append a PointDataGrid to the rasterizer (but don't rasterize yet).
points | the non-const PointDataGrid |
stream | if true, will destructively collapse attributes while accessing so as to minimize the memory footprint. |
Definition at line 1291 of file PointRasterizeFrustumImpl.h.
void openvdb::OPENVDB_VERSION_NAME::points::FrustumRasterizer< PointDataGridT >::clear | ( | void | ) |
Clear all PointDataGrids in the rasterizer.
Definition at line 1301 of file PointRasterizeFrustumImpl.h.
size_t openvdb::OPENVDB_VERSION_NAME::points::FrustumRasterizer< PointDataGridT >::memUsage | ( | ) | const |
Return memory usage of the rasterizer.
Definition at line 1315 of file PointRasterizeFrustumImpl.h.
GridBase::Ptr openvdb::OPENVDB_VERSION_NAME::points::FrustumRasterizer< PointDataGridT >::rasterizeAttribute | ( | const Name & | attribute, |
RasterMode | mode = RasterMode::ACCUMULATE , |
||
bool | reduceMemory = false , |
||
float | scale = 1.0f , |
||
const FilterT & | filter = FilterT() |
||
) |
Definition at line 1352 of file PointRasterizeFrustumImpl.h.
GridT::Ptr openvdb::OPENVDB_VERSION_NAME::points::FrustumRasterizer< PointDataGridT >::rasterizeAttribute | ( | const Name & | attribute, |
RasterMode | mode = RasterMode::ACCUMULATE , |
||
bool | reduceMemory = false , |
||
float | scale = 1.0f , |
||
const FilterT & | filter = FilterT() |
||
) |
Definition at line 1421 of file PointRasterizeFrustumImpl.h.
FloatGrid::Ptr openvdb::OPENVDB_VERSION_NAME::points::FrustumRasterizer< PointDataGridT >::rasterizeDensity | ( | const openvdb::Name & | attribute, |
RasterMode | mode = RasterMode::MAXIMUM , |
||
bool | reduceMemory = false , |
||
float | scale = 1.0f , |
||
const FilterT & | filter = FilterT() |
||
) |
Definition at line 1340 of file PointRasterizeFrustumImpl.h.
GridT::Ptr openvdb::OPENVDB_VERSION_NAME::points::FrustumRasterizer< PointDataGridT >::rasterizeMask | ( | bool | reduceMemory = false , |
const FilterT & | filter = FilterT() |
||
) |
Definition at line 1440 of file PointRasterizeFrustumImpl.h.
FloatGrid::Ptr openvdb::OPENVDB_VERSION_NAME::points::FrustumRasterizer< PointDataGridT >::rasterizeUniformDensity | ( | RasterMode | mode = RasterMode::MAXIMUM , |
bool | reduceMemory = false , |
||
float | scale = 1.0f , |
||
const FilterT & | filter = FilterT() |
||
) |
Definition at line 1327 of file PointRasterizeFrustumImpl.h.
size_t openvdb::OPENVDB_VERSION_NAME::points::FrustumRasterizer< PointDataGridT >::size | ( | void | ) | const |
Return number of PointDataGrids in the rasterizer.
Definition at line 1308 of file PointRasterizeFrustumImpl.h.