3Depict
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Enumerations | Functions
spatial.h File Reference
#include "K3DTree.h"
#include "K3DTree-mk2.h"
Include dependency graph for spatial.h:
This graph shows which files directly or indirectly include this file:

Enumerations

enum  { RDF_ERR_NEGATIVE_SCALE_FACT =1, RDF_ERR_INSUFFICIENT_INPUT_POINTS, RDF_FILE_OPEN_FAIL, RDF_ABORT_FAIL }
 

Functions

unsigned int generateNNHist (const std::vector< Point3D > &pointList, const K3DTree &tree, unsigned int nnMax, unsigned int numBins, std::vector< std::vector< size_t > > &histogram, float *binWidth, unsigned int *progressPtr, ATOMIC_BOOL &wantAbort)
 Generate the NN histogram specified up to a given NN. More...
 
unsigned int generateDistHist (const std::vector< Point3D > &pointList, const K3DTree &tree, unsigned int *histogram, float distMax, unsigned int numBins, unsigned int &warnBiasCount, unsigned int *progressPtr, ATOMIC_BOOL &wantAbort)
 Generate an NN histogram using distance max cutoffs. Input histogram must be zeroed,. More...
 
unsigned int GetReducedHullPts (const std::vector< Point3D > &pts, float reductionDim, unsigned int *progress, ATOMIC_BOOL &wantAbort, std::vector< Point3D > &returnIons)
 Returns a subset of points guaranteed to lie at least reductionDim inside hull of input points. More...
 
unsigned int generate1DAxialDistHist (const std::vector< Point3D > &pointList, const K3DTreeMk2 &tree, const Point3D &axisDir, unsigned int *histogram, float distMax, unsigned int numBins, unsigned int *progressPtr, ATOMIC_BOOL &wantAbort)
 
unsigned int generate1DAxialNNHist (const std::vector< Point3D > &pointList, const K3DTreeMk2 &tree, const Point3D &axisDir, unsigned int *histogram, float &binWidth, unsigned int nnMax, unsigned int numBins, unsigned int *progressPtr, ATOMIC_BOOL &wantAbort)
 
void generateKnnTheoreticalDist (const std::vector< float > &radii, float density, unsigned int nn, std::vector< float > &nnDist)
 
unsigned int generate1DAxialDistHistSweep (const std::vector< Point3D > &pointList, K3DTreeMk2 &tree, float distMax, float dTheta, float dPhi, unsigned int &prog, std::vector< std::vector< std::vector< unsigned int > > > &histogram)
 

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
RDF_ERR_NEGATIVE_SCALE_FACT 
RDF_ERR_INSUFFICIENT_INPUT_POINTS 
RDF_FILE_OPEN_FAIL 
RDF_ABORT_FAIL 

Function Documentation

◆ generate1DAxialDistHist()

unsigned int generate1DAxialDistHist ( const std::vector< Point3D > &  pointList,
const K3DTreeMk2 tree,
const Point3D axisDir,
unsigned int *  histogram,
float  distMax,
unsigned int  numBins,
unsigned int *  progressPtr,
ATOMIC_BOOL wantAbort 
)

◆ generate1DAxialDistHistSweep()

unsigned int generate1DAxialDistHistSweep ( const std::vector< Point3D > &  pointList,
K3DTreeMk2 tree,
float  distMax,
float  dTheta,
float  dPhi,
unsigned int &  prog,
std::vector< std::vector< std::vector< unsigned int > > > &  histogram 
)

◆ generate1DAxialNNHist()

unsigned int generate1DAxialNNHist ( const std::vector< Point3D > &  pointList,
const K3DTreeMk2 tree,
const Point3D axisDir,
unsigned int *  histogram,
float &  binWidth,
unsigned int  nnMax,
unsigned int  numBins,
unsigned int *  progressPtr,
ATOMIC_BOOL wantAbort 
)

◆ generateDistHist()

unsigned int generateDistHist ( const std::vector< Point3D > &  pointList,
const K3DTree tree,
unsigned int *  histogram,
float  distMax,
unsigned int  numBins,
unsigned int &  warnBiasCount,
unsigned int *  progressPtr,
ATOMIC_BOOL wantAbort 
)

Generate an NN histogram using distance max cutoffs. Input histogram must be zeroed,.

References ASSERT, CALLBACK_REDUCE, K3DTree::findNearest(), RDF_ABORT_FAIL, BoundCube::setBounds(), and Point3D::sqrDist().

Referenced by SpatialAnalysisFilter::setPropFromBinding().

Here is the caller graph for this function:

◆ generateKnnTheoreticalDist()

void generateKnnTheoreticalDist ( const std::vector< float > &  radii,
float  density,
unsigned int  nn,
std::vector< float > &  nnDist 
)

References ASSERT, and M_PI.

Referenced by SpatialAnalysisFilter::setPropFromBinding().

Here is the caller graph for this function:

◆ generateNNHist()

unsigned int generateNNHist ( const vector< Point3D > &  pointList,
const K3DTree tree,
unsigned int  nnMax,
unsigned int  numBins,
vector< vector< size_t > > &  histogram,
float *  binWidth,
unsigned int *  progressPtr,
ATOMIC_BOOL wantAbort 
)

Generate the NN histogram specified up to a given NN.

Generate the NN histogram specified up to a given NN.

References ASSERT, CALLBACK_REDUCE, K3DTree::findKNearest(), RDF_ABORT_FAIL, RDF_ERR_INSUFFICIENT_INPUT_POINTS, and BoundCube::setBounds().

Referenced by SpatialAnalysisFilter::setPropFromBinding().

Here is the caller graph for this function:

◆ GetReducedHullPts()

unsigned int GetReducedHullPts ( const std::vector< Point3D > &  pts,
float  reductionDim,
unsigned int *  progress,
ATOMIC_BOOL wantAbort,
std::vector< Point3D > &  returnIons 
)

Returns a subset of points guaranteed to lie at least reductionDim inside hull of input points.

Calculates the hull of the input ions and then scales the hull such that the smallest distance between the scaled hull and the original hull is exactly reductionDim

References ASSERT, computeConvexHull(), distanceToFacet(), dotProduct(), freeConvexHull(), pyramidVol(), and RDF_ERR_NEGATIVE_SCALE_FACT.

Referenced by SpatialAnalysisFilter::setPropFromBinding().

Here is the caller graph for this function: