3Depict
|
This is a data holding class for POS file ions, from. More...
#include <ionhit.h>
Public Member Functions | |
IonHit () | |
IonHit (float *) | |
IonHit (const IonHit &) | |
IonHit (const Point3D &p, float massToCharge) | |
void | setHit (float *arr) |
void | setMassToCharge (float newMassToCharge) |
void | setPos (const Point3D &pos) |
void | setPos (float fX, float fY, float fZ) |
Point3D | getPos () const |
const Point3D & | getPosRef () const |
bool | hasNaN () |
bool | hasInf () |
void | makePosData (float *floatArr) const |
float | getMassToCharge () const |
const IonHit & | operator= (const IonHit &obj) |
float | operator[] (unsigned int ui) const |
IonHit | operator+ (const Point3D &obj) |
Static Public Member Functions | |
static void | getPoints (const std::vector< IonHit > &ions, std::vector< Point3D > &pts) |
static void | getBoundCube (const std::vector< IonHit > &p, BoundCube &b) |
static void | getCentroid (const std::vector< IonHit > &points, Point3D ¢roid) |
static unsigned int | appendFile (const std::vector< IonHit > &points, const char *name, const unsigned int format=IONFORMAT_POS) |
static unsigned int | makePos (const std::vector< IonHit > &points, const char *name) |
Create an pos file from a vector of IonHits. More... | |
Static Public Attributes | |
static const unsigned int | DATA_SIZE = 16 |
This is a data holding class for POS file ions, from.
IonHit::IonHit | ( | ) |
IonHit::IonHit | ( | float * | buffer | ) |
IonHit::IonHit | ( | const IonHit & | obj2 | ) |
IonHit::IonHit | ( | const Point3D & | p, |
float | massToCharge | ||
) |
|
static |
References ASSERT, IONFORMAT_POS, and IONFORMAT_TEXT.
Referenced by IonStreamData::exportStreams(), and getPosRef().
References ASSERT, BoundCube::expand(), BoundCube::getBound(), Point3D::getValue(), BoundCube::isValid(), BoundCube::setBound(), BoundCube::setBounds(), BoundCube::setInverseLimits(), setMassToCharge(), setPos(), and TEST.
Referenced by countBinnedIons(), getPosRef(), getRectilinearBounds(), TransformFilter::refresh(), VoxeliseFilter::refresh(), DataLoadFilter::refresh(), K3DTreeMk2::resetPts(), and TransformFilter::setPropFromBinding().
References getPos().
Referenced by computeMatrixEntries(), and getPosRef().
float IonHit::getMassToCharge | ( | ) | const |
Referenced by RangeFile::getName(), getPosRef(), RangeFile::isRanged(), RangeFile::range(), RangeFile::rangeByIon(), RangeFile::rangeByRangeID(), and TransformFilter::setPropFromBinding().
Point3D IonHit::getPos | ( | ) | const |
Referenced by getCentroid(), IonAxisCompare::operator()(), setPos(), and SpatialAnalysisFilter::setPropFromBinding().
|
inline |
References appendFile(), getBoundCube(), getCentroid(), getMassToCharge(), getPoints(), hasInf(), hasNaN(), IONFORMAT_POS, makePos(), makePosData(), operator+(), operator=(), and operator[]().
Referenced by assignIonData(), getPoints(), and CropHelper::mapIon1D().
bool IonHit::hasInf | ( | ) |
bool IonHit::hasNaN | ( | ) |
|
static |
Create an pos file from a vector of IonHits.
Referenced by computeMatrixEntries(), getPosRef(), DataLoadFilter::monitorNeedsRefresh(), ExternalProgramFilter::refresh(), and SpatialAnalysisFilter::setPropFromBinding().
void IonHit::makePosData | ( | float * | floatArr | ) | const |
References ASSERT, Point3D::copyValueArr(), and floatSwapBytes().
Referenced by getPosRef(), and loadTapsimBinFile().
float IonHit::operator[] | ( | unsigned int | ui | ) | const |
|
inline |
References setMassToCharge(), setPos(), and Point3D::setValueArr().
Referenced by GenericLoadFloatFile().
void IonHit::setMassToCharge | ( | float | newMassToCharge | ) |
Referenced by computeMatrixEntries(), cylinderReconstruct(), getBoundCube(), IonColourFilter::getRefreshUseMask(), BoundingBoxFilter::getRefreshUseMask(), IonDownsampleFilter::getRefreshUseMask(), loadTapsimBinFile(), SpectrumPlotFilter::needsUnrangedData(), IonInfoFilter::needsUnrangedData(), setHit(), IonClipFilter::setPropFromBinding(), TransformFilter::setPropFromBinding(), ProfileFilter::setPropFromBinding(), SpatialAnalysisFilter::setPropFromBinding(), and RangeFileFilter::writePackageState().
void IonHit::setPos | ( | const Point3D & | pos | ) |
References floatSwapBytes().
Referenced by computeMatrixEntries(), cylinderReconstruct(), getBoundCube(), IonColourFilter::getRefreshUseMask(), BoundingBoxFilter::getRefreshUseMask(), IonDownsampleFilter::getRefreshUseMask(), loadTapsimBinFile(), SpectrumPlotFilter::needsUnrangedData(), IonInfoFilter::needsUnrangedData(), setHit(), IonClipFilter::setPropFromBinding(), TransformFilter::setPropFromBinding(), ProfileFilter::setPropFromBinding(), SpatialAnalysisFilter::setPropFromBinding(), and RangeFileFilter::writePackageState().
|
inline |
References getPos(), and Point3D::setValue().
|
static |
Referenced by GenericLoadFloatFile().