10#ifndef OPENVDB_POINTS_POINT_RASTERIZE_FRUSTUM_HAS_BEEN_INCLUDED
11#define OPENVDB_POINTS_POINT_RASTERIZE_FRUSTUM_HAS_BEEN_INCLUDED
16#include <openvdb/thread/Threading.h>
43 bool isStatic()
const;
52 bool hasWeight(
Index i)
const;
53 float weight(
Index i)
const;
59 void setShutter(
float start,
float end);
60 float shutterStart()
const;
61 float shutterEnd()
const;
64 std::deque<math::Transform> mTransforms;
65 std::deque<float> mWeights;
67 float mShutterStart = -0.25f,
91 : transform(new math::Transform(_transform))
92 , camera(_transform) { }
96 bool scaleByVoxelVolume =
false,
98 accurateFrustumRadius =
false,
99 accurateSphereMotionBlur =
false,
100 velocityMotionBlur =
false,
102 float threshold = 1e-6f,
104 framesPerSecond = 24.0f;
106 radiusAttribute =
"pscale";
107 int motionSamples = 2;
121 const bool clipToFrustum =
true,
122 const bool invert =
false);
124 operator bool()
const;
135 bool mInvert =
false;
139namespace point_rasterize_internal {
141template <
typename Po
intDataGr
idT>
142class GridToRasterize;
162template<
typename Po
intDataGr
idT>
187 void addPoints(
GridPtr& points,
bool stream =
false);
196 size_t memUsage()
const;
198 template <
typename FilterT = po
ints::NullFilter>
200 rasterizeUniformDensity(
RasterMode mode=RasterMode::MAXIMUM,
201 bool reduceMemory =
false,
float scale = 1.0f,
const FilterT& filter = FilterT());
203 template <
typename FilterT = po
ints::NullFilter>
206 bool reduceMemory =
false,
float scale = 1.0f,
const FilterT& filter = FilterT());
208 template <
typename FilterT = po
ints::NullFilter>
210 rasterizeAttribute(
const Name& attribute,
RasterMode mode=RasterMode::ACCUMULATE,
211 bool reduceMemory =
false,
float scale = 1.0f,
const FilterT& filter = FilterT());
213 template <
typename Gr
idT,
typename AttributeT,
typename FilterT = po
ints::NullFilter>
215 rasterizeAttribute(
const Name& attribute,
RasterMode mode=RasterMode::ACCUMULATE,
216 bool reduceMemory =
false,
float scale = 1.0f,
const FilterT& filter = FilterT());
218 template <
typename Gr
idT,
typename FilterT = po
ints::NullFilter>
220 rasterizeMask(
bool reduceMemory =
false,
const FilterT& filter = FilterT());
223 template <
typename AttributeT,
typename Gr
idT,
typename FilterT>
225 performRasterization(
227 bool reduceMemory,
float scale,
const FilterT& filter);
234 std::vector<GridToRasterize> mPointGrids;
Digital Differential Analyzers specialized for VDB.
Methods for counting points in VDB Point grids.
Attribute-owned data structure for points. Point attributes are stored in leaf nodes and ordered by v...
SharedPtr< GridBase > Ptr
Definition Grid.h:80
Container class that associates a tree with a transform and metadata.
Definition Grid.h:571
SharedPtr< Grid > Ptr
Definition Grid.h:573
Axis-aligned bounding box of signed integer coordinates.
Definition Coord.h:249
Signed (x, y, z) 32-bit integer coordinates.
Definition Coord.h:25
Efficient rasterization of one or more VDB Points grids into a linear or frustum volume with the opti...
Definition PointRasterizeFrustum.h:164
typename PointDataGridT::ConstPtr GridConstPtr
Definition PointRasterizeFrustum.h:167
point_rasterize_internal::GridToRasterize< PointDataGridT > GridToRasterize
Definition PointRasterizeFrustum.h:168
typename PointDataGridT::Ptr GridPtr
Definition PointRasterizeFrustum.h:166
A camera class that provides an interface for camera motion blur when rasterizing.
Definition PointRasterizeFrustum.h:39
SharedPtr< const Tree > ConstPtr
Definition Tree.h:181
Definition ValueAccessor.h:191
RasterMode
How to composite points into a volume.
Definition PointRasterizeFrustum.h:30
std::string Name
Definition Name.h:17
Index32 Index
Definition Types.h:54
Definition Exceptions.h:13
Definition PointRasterizeFrustum.h:112
FrustumRasterizerMask()=default
A group of shared settings to be used in the Volume Rasterizer.
Definition PointRasterizeFrustum.h:87
FrustumRasterizerSettings()=delete
math::Transform::Ptr transform
Definition PointRasterizeFrustum.h:94
RasterCamera camera
Definition PointRasterizeFrustum.h:95
FrustumRasterizerSettings(const math::Transform &_transform)
Definition PointRasterizeFrustum.h:90
A struct that stores all include/exclude attribute names as strings and is internally converted into ...
Definition PointRasterizeFrustum.h:241
std::vector< Name > excludeNames
Definition PointRasterizeFrustum.h:243
std::vector< Name > includeNames
Definition PointRasterizeFrustum.h:242
Base class for interrupters.
Definition NullInterrupter.h:26
#define OPENVDB_VERSION_NAME
The version namespace name for this library version.
Definition version.h.in:121
#define OPENVDB_USE_VERSION_NAMESPACE
Definition version.h.in:212