Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitk::ParticleGrid Class Reference

Contains and manages particles. More...

#include <mitkParticleGrid.h>

Collaboration diagram for mitk::ParticleGrid:

Classes

struct  NeighborTracker
 

Public Types

typedef itk::Image< float, 3 > ItkFloatImageType
 

Public Member Functions

 ParticleGrid (ItkFloatImageType *image, float particleLength, int cellCapacity)
 
 ~ParticleGrid ()
 
ParticleGetParticle (int ID)
 
ParticleNewParticle (vnl_vector_fixed< float, 3 > R)
 
bool TryUpdateGrid (int k)
 
void RemoveParticle (int k)
 
void ComputeNeighbors (vnl_vector_fixed< float, 3 > &R)
 
ParticleGetNextNeighbor ()
 
void CreateConnection (Particle *P1, int ep1, Particle *P2, int ep2)
 
void DestroyConnection (Particle *P1, int ep1, Particle *P2, int ep2)
 
void DestroyConnection (Particle *P1, int ep1)
 
bool CheckConsistency ()
 
void ResetGrid ()
 

Public Attributes

int m_NumParticles
 
int m_NumConnections
 
int m_NumCellOverflows
 
float m_ParticleLength
 

Protected Member Functions

bool ReallocateGrid ()
 

Protected Attributes

std::vector< Particle * > m_Grid
 
std::vector< Particlem_Particles
 
std::vector< int > m_OccupationCount
 
int m_ContainerCapacity
 
vnl_vector_fixed< int, 3 > m_GridSize
 
vnl_vector_fixed< float, 3 > m_GridScale
 
int m_CellCapacity
 
struct mitk::ParticleGrid::NeighborTracker m_NeighbourTracker
 

Detailed Description

Contains and manages particles.

Definition at line 33 of file mitkParticleGrid.h.

Member Typedef Documentation

Definition at line 38 of file mitkParticleGrid.h.

Constructor & Destructor Documentation

ParticleGrid::~ParticleGrid ( )

Definition at line 60 of file mitkParticleGrid.cpp.

Member Function Documentation

bool ParticleGrid::CheckConsistency ( )
void ParticleGrid::CreateConnection ( Particle P1,
int  ep1,
Particle P2,
int  ep2 
)
void ParticleGrid::DestroyConnection ( Particle P1,
int  ep1,
Particle P2,
int  ep2 
)

Definition at line 352 of file mitkParticleGrid.cpp.

References m_NumConnections, mitk::Particle::mID, and mitk::Particle::pID.

Referenced by RemoveParticle().

void ParticleGrid::DestroyConnection ( Particle P1,
int  ep1 
)
bool ParticleGrid::ReallocateGrid ( )
protected

Definition at line 90 of file mitkParticleGrid.cpp.

References ID, m_ContainerCapacity, m_Grid, m_GridSize, and m_Particles.

Referenced by NewParticle().

Member Data Documentation

int mitk::ParticleGrid::m_CellCapacity
protected
int mitk::ParticleGrid::m_ContainerCapacity
protected

Definition at line 72 of file mitkParticleGrid.h.

Referenced by NewParticle(), ParticleGrid(), ReallocateGrid(), and ResetGrid().

std::vector< Particle* > mitk::ParticleGrid::m_Grid
protected
vnl_vector_fixed< float, 3 > mitk::ParticleGrid::m_GridScale
protected

Definition at line 75 of file mitkParticleGrid.h.

Referenced by ComputeNeighbors(), NewParticle(), ParticleGrid(), and TryUpdateGrid().

vnl_vector_fixed< int, 3 > mitk::ParticleGrid::m_GridSize
protected
struct mitk::ParticleGrid::NeighborTracker mitk::ParticleGrid::m_NeighbourTracker
protected
int mitk::ParticleGrid::m_NumCellOverflows

Definition at line 42 of file mitkParticleGrid.h.

Referenced by NewParticle(), ParticleGrid(), ResetGrid(), and TryUpdateGrid().

std::vector< int > mitk::ParticleGrid::m_OccupationCount
protected
float mitk::ParticleGrid::m_ParticleLength
std::vector< Particle > mitk::ParticleGrid::m_Particles
protected

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