NuTo
Numerics Tool
|
class for sub box handing -> improves the performance without changing the physics More...
#include <SubBox.h>
Public Member Functions | |
SubBox (int rIndex) | |
constructor More... | |
~SubBox () | |
destructor, Deletes mWalls on destruction More... | |
void | CreateEvents (EventListHandler &rEvents, CollidableBase &rCollidable) |
creates events between mCollidables and rCollidable More... | |
void | AddSphere (CollidableParticleSphere &rSphere) |
the sphere is now handled by this sub box More... | |
bool | AddIfInside (CollidableParticleSphere &rSphere) |
adds a sphere only, if its inside of this box More... | |
void | RemoveSphere (CollidableParticleSphere &rSphere) |
the sphere leaves this sub box More... | |
void | SetWalls (const std::vector< CollidableWallBase * > &rCollidables) |
sets the virtual and physical walls as sub box boundaries More... | |
void | AddWall (CollidableWallBase &rWall) |
add a single wall More... | |
void | RemoveWall (CollidableWallBase &rWall) |
remove a single wall More... | |
void | Print () |
print mCollidables without the walls More... | |
const std::vector< CollidableBase * > & | GetCollidables () const |
getter for mCollidables More... | |
const std::vector< CollidableWallBase * > & | GetWalls () const |
getter for mWalls More... | |
int | GetIndex () const |
getter for mIndex More... | |
class for sub box handing -> improves the performance without changing the physics
NuTo::SubBox::SubBox | ( | int | rIndex | ) |
constructor
rIndex | name for debug |
NuTo::SubBox::~SubBox | ( | ) |
destructor, Deletes mWalls on destruction
bool NuTo::SubBox::AddIfInside | ( | CollidableParticleSphere & | rSphere | ) |
adds a sphere only, if its inside of this box
void NuTo::SubBox::AddSphere | ( | CollidableParticleSphere & | rSphere | ) |
the sphere is now handled by this sub box
void NuTo::SubBox::AddWall | ( | CollidableWallBase & | rWall | ) |
add a single wall
void NuTo::SubBox::CreateEvents | ( | EventListHandler & | rEvents, |
CollidableBase & | rCollidable | ||
) |
creates events between mCollidables and rCollidable
rEvents | global event list |
rCollidable | collidable involved in this collision |
const std::vector< NuTo::CollidableBase * > & NuTo::SubBox::GetCollidables | ( | ) | const |
getter for mCollidables
int NuTo::SubBox::GetIndex | ( | ) | const |
getter for mIndex
const std::vector< NuTo::CollidableWallBase * > & NuTo::SubBox::GetWalls | ( | ) | const |
getter for mWalls
void NuTo::SubBox::Print | ( | ) |
print mCollidables without the walls
void NuTo::SubBox::RemoveSphere | ( | CollidableParticleSphere & | rSphere | ) |
the sphere leaves this sub box
void NuTo::SubBox::RemoveWall | ( | CollidableWallBase & | rWall | ) |
remove a single wall
void NuTo::SubBox::SetWalls | ( | const std::vector< CollidableWallBase * > & | rCollidables | ) |
sets the virtual and physical walls as sub box boundaries