PPL Logo

CollideGrid3d Class Reference

Map real world (x,y,z) coordinates to integer (i,j,k) grid indices. More...

#include <collide_util.h>

Collaboration diagram for CollideGrid3d:

Collaboration graph
[legend]

Public Member Functions

 CollideGrid3d ()
 CollideGrid3d (const vector3d &Norigin, const vector3d &desiredSize)
void pup (PUP::er &p)
void init (const vector3d &Norigin, const vector3d &desiredSize)
real world2grid (int axis, real x) const
iSeg1d world2grid (int axis, const rSeg1d &s) const
real grid2world (int axis, real val) const
rSeg1d grid2world (int axis, rSeg1d src) const
void print (const CollideLoc3d &g)

Private Attributes

vector3d origin
vector3d scales
vector3d sizes
double hakShift [3]
int hakStart [3]

Detailed Description

Map real world (x,y,z) coordinates to integer (i,j,k) grid indices.

Definition at line 95 of file collide_util.h.


Constructor & Destructor Documentation

CollideGrid3d::CollideGrid3d (  )  [inline]

Definition at line 102 of file collide_util.h.

CollideGrid3d::CollideGrid3d ( const vector3d Norigin,
const vector3d desiredSize 
) [inline]

Definition at line 103 of file collide_util.h.

References init().

Here is the call graph for this function:


Member Function Documentation

void CollideGrid3d::pup ( PUP::er p  ) 

Definition at line 57 of file collide_util.C.

References hakShift, hakStart, origin, p, scales, and sizes.

void CollideGrid3d::init ( const vector3d Norigin,
const vector3d desiredSize 
)

Definition at line 34 of file collide_util.C.

References float, hakShift, hakStart, origin, PUP::s, scales, sizes, and testMapping().

Referenced by CollideGrid3d().

Here is the call graph for this function:

Here is the caller graph for this function:

real CollideGrid3d::world2grid ( int  axis,
real  x 
) const [inline]

Definition at line 111 of file collide_util.h.

References origin, and scales.

Referenced by CollisionAggregator::aggregate(), testMapping(), and world2grid().

Here is the caller graph for this function:

iSeg1d CollideGrid3d::world2grid ( int  axis,
const rSeg1d s 
) const [inline]

Definition at line 114 of file collide_util.h.

References fh, float, seg1dT< T >::getMax(), seg1dT< T >::getMin(), hakShift, int, and world2grid().

Here is the call graph for this function:

real CollideGrid3d::grid2world ( int  axis,
real  val 
) const [inline]

Definition at line 128 of file collide_util.h.

References hakStart, origin, and sizes.

Referenced by grid2world(), and collideVoxel::startCollision().

Here is the caller graph for this function:

rSeg1d CollideGrid3d::grid2world ( int  axis,
rSeg1d  src 
) const [inline]

Definition at line 136 of file collide_util.h.

References seg1dT< T >::getMax(), seg1dT< T >::getMin(), and grid2world().

Here is the call graph for this function:

void CollideGrid3d::print ( const CollideLoc3d g  ) 

Definition at line 65 of file collide_util.C.

References hakStart, CollideLoc3d::x, CollideLoc3d::y, and CollideLoc3d::z.


Field Documentation

Definition at line 96 of file collide_util.h.

Referenced by grid2world(), init(), pup(), and world2grid().

Definition at line 96 of file collide_util.h.

Referenced by init(), pup(), and world2grid().

Definition at line 96 of file collide_util.h.

Referenced by grid2world(), init(), and pup().

double CollideGrid3d::hakShift[3] [private]

Definition at line 98 of file collide_util.h.

Referenced by init(), pup(), and world2grid().

Definition at line 99 of file collide_util.h.

Referenced by grid2world(), init(), print(), and pup().


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

Generated on Mon Sep 21 08:21:57 2020 for Charm++ by  doxygen 1.5.5