3Depict
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Static Public Member Functions | Static Public Attributes | List of all members
IonHit Class Reference

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 Point3DgetPosRef () const
 
bool hasNaN ()
 
bool hasInf ()
 
void makePosData (float *floatArr) const
 
float getMassToCharge () const
 
const IonHitoperator= (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 &centroid)
 
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
 

Detailed Description

This is a data holding class for POS file ions, from.

Constructor & Destructor Documentation

◆ IonHit() [1/4]

IonHit::IonHit ( )

◆ IonHit() [2/4]

IonHit::IonHit ( float *  buffer)

◆ IonHit() [3/4]

IonHit::IonHit ( const IonHit obj2)

◆ IonHit() [4/4]

IonHit::IonHit ( const Point3D p,
float  massToCharge 
)

Member Function Documentation

◆ appendFile()

unsigned int IonHit::appendFile ( const std::vector< IonHit > &  points,
const char *  name,
const unsigned int  format = IONFORMAT_POS 
)
static

References ASSERT, IONFORMAT_POS, and IONFORMAT_TEXT.

Referenced by IonStreamData::exportStreams(), and getPosRef().

Here is the caller graph for this function:

◆ getBoundCube()

void IonHit::getBoundCube ( const std::vector< IonHit > &  p,
BoundCube b 
)
static

◆ getCentroid()

void IonHit::getCentroid ( const std::vector< IonHit > &  points,
Point3D centroid 
)
static

References getPos().

Referenced by computeMatrixEntries(), and getPosRef().

Here is the caller graph for this function:

◆ getMassToCharge()

float IonHit::getMassToCharge ( ) const

◆ getPoints()

void IonHit::getPoints ( const std::vector< IonHit > &  ions,
std::vector< Point3D > &  pts 
)
static

References getPosRef().

Referenced by getPosRef().

Here is the caller graph for this function:

◆ getPos()

Point3D IonHit::getPos ( ) const

Referenced by getCentroid(), IonAxisCompare::operator()(), setPos(), and SpatialAnalysisFilter::setPropFromBinding().

Here is the caller graph for this function:

◆ getPosRef()

const Point3D& IonHit::getPosRef ( ) const
inline

◆ hasInf()

bool IonHit::hasInf ( )

Referenced by GenericLoadFloatFile(), and getPosRef().

Here is the caller graph for this function:

◆ hasNaN()

bool IonHit::hasNaN ( )

Referenced by GenericLoadFloatFile(), and getPosRef().

Here is the caller graph for this function:

◆ makePos()

unsigned int IonHit::makePos ( const std::vector< IonHit > &  points,
const char *  name 
)
static

Create an pos file from a vector of IonHits.

Referenced by computeMatrixEntries(), getPosRef(), DataLoadFilter::monitorNeedsRefresh(), ExternalProgramFilter::refresh(), and SpatialAnalysisFilter::setPropFromBinding().

Here is the caller graph for this function:

◆ makePosData()

void IonHit::makePosData ( float *  floatArr) const

References ASSERT, Point3D::copyValueArr(), and floatSwapBytes().

Referenced by getPosRef(), and loadTapsimBinFile().

Here is the caller graph for this function:

◆ operator+()

IonHit IonHit::operator+ ( const Point3D obj)

Referenced by getPosRef().

Here is the caller graph for this function:

◆ operator=()

const IonHit & IonHit::operator= ( const IonHit obj)

Referenced by getPosRef().

Here is the caller graph for this function:

◆ operator[]()

float IonHit::operator[] ( unsigned int  ui) const

References ASSERT.

Referenced by getPosRef().

Here is the caller graph for this function:

◆ setHit()

void IonHit::setHit ( float *  arr)
inline

References setMassToCharge(), setPos(), and Point3D::setValueArr().

Referenced by GenericLoadFloatFile().

Here is the caller graph for this function:

◆ setMassToCharge()

void IonHit::setMassToCharge ( float  newMassToCharge)

◆ setPos() [1/2]

void IonHit::setPos ( const Point3D pos)

◆ setPos() [2/2]

void IonHit::setPos ( float  fX,
float  fY,
float  fZ 
)
inline

References getPos(), and Point3D::setValue().

Member Data Documentation

◆ DATA_SIZE

const unsigned int IonHit::DATA_SIZE = 16
static

Referenced by GenericLoadFloatFile().


The documentation for this class was generated from the following files: