Field3D
|
Classes | |
struct | ComputationType |
Used to delegate the choice of bit depth to process at. More... | |
struct | ComputationType< Field3D::half > |
Specialization for half float. More... | |
struct | LoadFields |
struct | LoadFields< 1 > |
struct | LoadFields< 3 > |
struct | MakeDense |
struct | MakeMIPDense |
struct | MakeMIPSparse |
struct | MakeSparse |
struct | MIPInstance |
We need to instantiate MIPSparseField rather than MIPField<SparseField>. This traits class does that. More... | |
struct | MIPInstance< DenseField< Data_T > > |
struct | MIPInstance< SparseField< Data_T > > |
Specialization for sparse field. More... | |
struct | MIPSeparableThreadOp |
Functions | |
FIELD3D_API FieldMapping::Ptr | adjustedMIPFieldMapping (const FieldMapping::Ptr baseMapping, const V3i &baseRes, const Box3i &extents, const size_t level) |
template<typename T > | |
FIELD3D_VEC3_T< T > | ceil (const FIELD3D_VEC3_T< T > &v) |
Ceil function for Vec3. More... | |
template<typename Data_T > | |
bool | checkInputEmpty (const SparseField< Data_T > &src, const SparseField< Data_T > &, const Box3i &tgtBox, const float support, const size_t dim) |
template<typename Field_T > | |
bool | checkInputEmpty (const Field_T &, const Field_T &, const Box3i &, const float, const size_t) |
Fallback version always returns false. More... | |
std::vector< V3d > | cornerPoints (const Box3d &box) |
template<typename T > | |
FIELD3D_VEC3_T< T > | floor (const FIELD3D_VEC3_T< T > &v) |
Floor function for Vec3. More... | |
V3f | getDist (const V3i &doUpres, const V3f &srcP, const V3f &tgtP, const V3f &srcSize, const V3f &tgtSize) |
float | getDist (const bool doUpres, const float &srcP, const float &tgtP, const float &srcSize, const float &tgtSize) |
bool | intersect (const Ray3d &ray, const Box3d &box, double &outT0, double &outT1) |
template<typename Field_T , typename FilterOp_T > | |
void | mipResample (const Field_T &base, const Field_T &src, Field_T &tgt, const size_t level, const FilterOp_T &filterOp, const size_t numThreads) |
FIELD3D_API V3i | mipResolution (const V3i &baseRes, const size_t level) |
template<typename Field_T , typename FilterOp_T > | |
void | mipSeparable (const Field_T &src, Field_T &tgt, const V3i &oldRes, const V3i &newRes, const size_t level, const FilterOp_T &filterOp, const size_t dim, const size_t numThreads) |
Threaded implementation of separable MIP filtering. More... | |
template<typename Field_T , typename FilterOp_T > | |
void | separable (const Field_T &src, Field_T &tgt, const V3i &newRes, const FilterOp_T &filterOp, const size_t dim) |
template<typename Field_T , typename FilterOp_T > | |
bool | separableResample (const Field_T &src, Field_T &tgt, const V3i &newRes, const FilterOp_T &filterOp) |
Resamples the source field into the target field, using separable execution, which is faster than resample(). More... | |
Box3i | srcSupportBBox (const V3f &tgtP, const float support, const V3i &doUpres, const V3f &srcSize, const V3f &tgtSize) |
std::pair< int, int > | srcSupportBBox (const float &tgtP, const float support, const bool doUpres, const float &srcSize, const float &tgtSize) |
template<typename Data_T > | |
size_t | threadingBlockSize (const DenseField< Data_T > &) |
Constant size for all dense fields. More... | |
template<typename Data_T > | |
size_t | threadingBlockSize (const SparseField< Data_T > &f) |
Use block size for sparse fields. More... | |
FIELD3D_VEC3_T<T> detail::floor | ( | const FIELD3D_VEC3_T< T > & | v | ) |
Floor function for Vec3.
Definition at line 95 of file CoordSys.h.
Referenced by contToDisc(), discreteBounds(), detail::MIPSeparableThreadOp< Field_T, FilterOp_T >::operator()(), LinearSparseFieldInterp< Data_T >::sample(), LinearFieldInterp< Data_T >::sample(), CubicFieldInterp< Data_T >::sample(), LinearGenericFieldInterp< Field_T >::sample(), LinearMACFieldInterp< Data_T >::sample(), CubicGenericFieldInterp< Field_T >::sample(), CubicMACFieldInterp< Data_T >::sample(), and srcSupportBBox().
FIELD3D_VEC3_T<T> detail::ceil | ( | const FIELD3D_VEC3_T< T > & | v | ) |
Ceil function for Vec3.
Definition at line 105 of file CoordSys.h.
Referenced by checkInputEmpty(), discreteBounds(), mipResample(), mipResolution(), detail::MIPSeparableThreadOp< Field_T, FilterOp_T >::operator()(), SparseField< Data_T >::setupBlocks(), and srcSupportBBox().
Definition at line 158 of file FieldGroup.h.
Referenced by FieldGroup< BaseTypeList_T, Dims_T >::GetIntersections::intersectFrustumMapping().
|
inline |
Definition at line 175 of file FieldGroup.h.
Referenced by FieldGroup< BaseTypeList_T, Dims_T >::GetIntersections::intersectMatrixMapping().
Definition at line 66 of file MIPUtil.cpp.
References ceil().
Referenced by mipResample(), MIPBase< Field_T::value_type >::staticClassType(), and MIPField< DenseField< Data_T > >::staticClassType().
size_t detail::threadingBlockSize | ( | const DenseField< Data_T > & | ) |
Constant size for all dense fields.
Definition at line 104 of file MIPUtil.h.
Referenced by mipSeparable().
size_t detail::threadingBlockSize | ( | const SparseField< Data_T > & | f | ) |
Use block size for sparse fields.
Definition at line 111 of file MIPUtil.h.
References SparseField< Data_T >::blockSize().
bool detail::checkInputEmpty | ( | const SparseField< Data_T > & | src, |
const SparseField< Data_T > & | , | ||
const Box3i & | tgtBox, | ||
const float | support, | ||
const size_t | dim | ||
) |
Definition at line 119 of file MIPUtil.h.
References blockCoords(), SparseField< Data_T >::blockIsAllocated(), ceil(), clipBounds(), FieldRes::dataWindow(), and SparseField< Data_T >::getBlockEmptyValue().
Referenced by detail::MIPSeparableThreadOp< Field_T, FilterOp_T >::operator()().
bool detail::checkInputEmpty | ( | const Field_T & | , |
const Field_T & | , | ||
const Box3i & | , | ||
const float | , | ||
const size_t | |||
) |
void detail::mipSeparable | ( | const Field_T & | src, |
Field_T & | tgt, | ||
const V3i & | oldRes, | ||
const V3i & | newRes, | ||
const size_t | level, | ||
const FilterOp_T & | filterOp, | ||
const size_t | dim, | ||
const size_t | numThreads | ||
) |
Threaded implementation of separable MIP filtering.
Definition at line 293 of file MIPUtil.h.
References threadingBlockSize().
Referenced by mipResample().
void detail::mipResample | ( | const Field_T & | base, |
const Field_T & | src, | ||
Field_T & | tgt, | ||
const size_t | level, | ||
const FilterOp_T & | filterOp, | ||
const size_t | numThreads | ||
) |
Definition at line 356 of file MIPUtil.h.
References adjustedMIPFieldMapping(), ceil(), FIELD3D_API, mipResolution(), and mipSeparable().
Referenced by makeMIP().
FieldMapping::Ptr detail::adjustedMIPFieldMapping | ( | const FieldMapping::Ptr | baseMapping, |
const V3i & | baseRes, | ||
const Box3i & | extents, | ||
const size_t | level | ||
) |
Definition at line 77 of file MIPUtil.cpp.
References coordinateSystem(), and FIELD3D_NAMESPACE_SOURCE_CLOSE.
Referenced by MIPField< Field_T >::loadLevelFromDisk(), MIPField< Field_T >::mappingChanged(), and mipResample().
Box3i detail::srcSupportBBox | ( | const V3f & | tgtP, |
const float | support, | ||
const V3i & | doUpres, | ||
const V3f & | srcSize, | ||
const V3f & | tgtSize | ||
) |
Definition at line 56 of file Resample.cpp.
References ceil(), and floor().
std::pair< int, int > detail::srcSupportBBox | ( | const float & | tgtP, |
const float | support, | ||
const bool | doUpres, | ||
const float & | srcSize, | ||
const float & | tgtSize | ||
) |
Definition at line 83 of file Resample.cpp.
References ceil(), and floor().
Referenced by separable().
V3f detail::getDist | ( | const V3i & | doUpres, |
const V3f & | srcP, | ||
const V3f & | tgtP, | ||
const V3f & | srcSize, | ||
const V3f & | tgtSize | ||
) |
Definition at line 103 of file Resample.cpp.
float detail::getDist | ( | const bool | doUpres, |
const float & | srcP, | ||
const float & | tgtP, | ||
const float & | srcSize, | ||
const float & | tgtSize | ||
) |
Definition at line 121 of file Resample.cpp.
References FIELD3D_NAMESPACE_SOURCE_CLOSE.
Referenced by separable().
void detail::separable | ( | const Field_T & | src, |
Field_T & | tgt, | ||
const V3i & | newRes, | ||
const FilterOp_T & | filterOp, | ||
const size_t | dim | ||
) |
Definition at line 267 of file Resample.h.
References discToCont(), getDist(), and srcSupportBBox().
Referenced by separableResample().
bool detail::separableResample | ( | const Field_T & | src, |
Field_T & | tgt, | ||
const V3i & | newRes, | ||
const FilterOp_T & | filterOp | ||
) |
Resamples the source field into the target field, using separable execution, which is faster than resample().
Definition at line 335 of file Resample.h.
References separable().
Referenced by resample().