OpenVDB  12.1.0
Public Types | Public Member Functions | Static Public Attributes | Protected Attributes | List of all members
WeightPosSumsTransfer< PointDataTreeT > Struct Template Reference

#include <openvdb/points/impl/PrincipalComponentAnalysisImpl.h>

Inherits PcaTransfer< PointDataTreeT >.

Public Types

using BaseT = PcaTransfer< PointDataTreeT >
 
using LeafNodeType = typename PointDataTreeT::LeafNodeType
 
using PositionHandleT = points::AttributeHandle< Vec3d, NullCodec >
 
using TreeTupleT = std::tuple< TreeTypes *... >
 
using TreeType = typename std::tuple_element< Idx, std::tuple< TreeTypes... >>::type
 
using ValueType = typename TreeType< Idx >::ValueType
 
using NodeMaskT = typename TreeType< 0 >::LeafNodeType::NodeMaskType
 

Public Member Functions

 WeightPosSumsTransfer (const AttrIndices &indices, const PcaSettings &settings, const Real vs, tree::LeafManager< PointDataTreeT > &manager, util::NullInterrupter *interrupt)
 
 WeightPosSumsTransfer (const WeightPosSumsTransfer &other)
 
void initialize (const Coord &origin, const size_t idx, const CoordBBox &bounds)
 
void rasterizePoints (const Coord &, const Index start, const Index end, const CoordBBox &bounds)
 
bool finalize (const Coord &, size_t idx)
 
float searchRadius () const
 
size_t neighbourThreshold () const
 
size_t maxSourcePointsPerVoxel () const
 
size_t maxTargetPointsPerVoxel () const
 
Vec3i range (const Coord &, size_t) const
 
Vec3i range () const
 
bool startPointLeaf (const typename PointDataTreeT::LeafNodeType &leaf)
 
bool endPointLeaf (const typename PointDataTreeT::LeafNodeType &)
 
TreeType< 0 > & topology ()
 
ValueType< Idx > * buffer ()
 
const ValueType< Idx > * buffer () const
 
NodeMaskTmask ()
 
NodeMaskTmask (const size_t idx)
 
const NodeMaskTmask () const
 
const NodeMaskTmask (const size_t idx) const
 
void foreach (const FunctorT &functor)
 
bool interrupted () const
 

Static Public Attributes

static const Index DIM = PointDataTreeT::LeafNodeType::DIM
 
static const Index LOG2DIM = PointDataTreeT::LeafNodeType::LOG2DIM
 
static const size_t Size
 

Protected Attributes

const AttrIndicesmIndices
 
const PcaSettingsmSettings
 
const Real mDxInv
 
const tree::LeafManager< PointDataTreeT > & mManager
 
std::unique_ptr< PositionHandleTmTargetPosition
 
std::unique_ptr< PositionHandleTmSourcePosition
 

Member Typedef Documentation

using BaseT = PcaTransfer<PointDataTreeT>
using LeafNodeType = typename PointDataTreeT::LeafNodeType
inherited
using NodeMaskT = typename TreeType<0>::LeafNodeType::NodeMaskType
inherited
using TreeTupleT = std::tuple<TreeTypes*...>
inherited
using TreeType = typename std::tuple_element<Idx, std::tuple<TreeTypes...>>::type
inherited
using ValueType = typename TreeType<Idx>::ValueType
inherited

Constructor & Destructor Documentation

WeightPosSumsTransfer ( const AttrIndices indices,
const PcaSettings settings,
const Real  vs,
tree::LeafManager< PointDataTreeT > &  manager,
util::NullInterrupter interrupt 
)
inline
WeightPosSumsTransfer ( const WeightPosSumsTransfer< PointDataTreeT > &  other)
inline

Member Function Documentation

ValueType<Idx>* buffer ( )
inlineinherited
const ValueType<Idx>* buffer ( ) const
inlineinherited
bool endPointLeaf ( const typename PointDataTreeT::LeafNodeType &  )
inlineinherited
bool finalize ( const Coord &  ,
size_t  idx 
)
inline
void foreach ( const FunctorT &  functor)
inlineinherited
void initialize ( const Coord &  origin,
const size_t  idx,
const CoordBBox &  bounds 
)
inline
bool interrupted ( ) const
inlineinherited
NodeMaskT* mask ( )
inlineinherited
NodeMaskT* mask ( const size_t  idx)
inlineinherited
const NodeMaskT* mask ( ) const
inlineinherited
const NodeMaskT* mask ( const size_t  idx) const
inlineinherited
size_t maxSourcePointsPerVoxel ( ) const
inlineinherited
size_t maxTargetPointsPerVoxel ( ) const
inlineinherited
size_t neighbourThreshold ( ) const
inlineinherited
Vec3i range ( const Coord &  ,
size_t   
) const
inlineinherited
Vec3i range ( ) const
inlineinherited
void rasterizePoints ( const Coord &  ,
const Index  start,
const Index  end,
const CoordBBox &  bounds 
)
inline
float searchRadius ( ) const
inlineinherited
bool startPointLeaf ( const typename PointDataTreeT::LeafNodeType &  leaf)
inlineinherited
TreeType<0>& topology ( )
inlineinherited

Member Data Documentation

const Index DIM = PointDataTreeT::LeafNodeType::DIM
static
const Index LOG2DIM = PointDataTreeT::LeafNodeType::LOG2DIM
static
const Real mDxInv
protectedinherited
const AttrIndices& mIndices
protectedinherited
const tree::LeafManager<PointDataTreeT>& mManager
protectedinherited
const PcaSettings& mSettings
protectedinherited
std::unique_ptr<PositionHandleT> mSourcePosition
protectedinherited
std::unique_ptr<PositionHandleT> mTargetPosition
protectedinherited
const size_t Size
staticinherited