cgma
|
#include <ChollaVolume.hpp>
Public Member Functions | |
ChollaVolume (int block_id) | |
~ChollaVolume () | |
void | assign_geometric_volume (void *vol) |
void * | get_geometric_volume () |
void | get_surfaces (DLIList< ChollaSurface * > &cholla_surf_list) |
void | add_surface (ChollaSurface *cholla_surf_ptr) |
void | add_surface_unique (ChollaSurface *cholla_surf_ptr) |
void | remove_surface (ChollaSurface *cholla_surf_ptr) |
int | get_block_id () |
void | set_block_id (int flag) |
int | get_id () const |
void | debug_draw () |
Private Attributes | |
int | id |
int | blockId |
DLIList< ChollaSurface * > | surfaceList |
void * | myVolume |
Definition at line 16 of file ChollaVolume.hpp.
ChollaVolume::ChollaVolume | ( | int | block_id | ) |
Definition at line 14 of file ChollaVolume.cpp.
Definition at line 25 of file ChollaVolume.cpp.
{ }
void ChollaVolume::add_surface | ( | ChollaSurface * | cholla_surf_ptr | ) | [inline] |
Definition at line 36 of file ChollaVolume.hpp.
{surfaceList.append(cholla_surf_ptr);}
void ChollaVolume::add_surface_unique | ( | ChollaSurface * | cholla_surf_ptr | ) | [inline] |
Definition at line 38 of file ChollaVolume.hpp.
{surfaceList.append_unique(cholla_surf_ptr);}
void ChollaVolume::assign_geometric_volume | ( | void * | vol | ) | [inline] |
Definition at line 30 of file ChollaVolume.hpp.
{myVolume = vol;}
void ChollaVolume::debug_draw | ( | ) |
Definition at line 30 of file ChollaVolume.cpp.
{ for( int i=surfaceList.size(); i--; ) surfaceList.get_and_step()->debug_draw(); }
int ChollaVolume::get_block_id | ( | ) | [inline] |
Definition at line 42 of file ChollaVolume.hpp.
{return blockId;}
void* ChollaVolume::get_geometric_volume | ( | ) | [inline] |
Definition at line 32 of file ChollaVolume.hpp.
{return myVolume;}
int ChollaVolume::get_id | ( | ) | const [inline] |
Definition at line 47 of file ChollaVolume.hpp.
{return id;}
void ChollaVolume::get_surfaces | ( | DLIList< ChollaSurface * > & | cholla_surf_list | ) | [inline] |
Definition at line 34 of file ChollaVolume.hpp.
{cholla_surf_list = surfaceList; }
void ChollaVolume::remove_surface | ( | ChollaSurface * | cholla_surf_ptr | ) | [inline] |
Definition at line 40 of file ChollaVolume.hpp.
{surfaceList.remove(cholla_surf_ptr);}
void ChollaVolume::set_block_id | ( | int | flag | ) | [inline] |
Definition at line 44 of file ChollaVolume.hpp.
{ blockId = flag; }
int ChollaVolume::blockId [private] |
Definition at line 20 of file ChollaVolume.hpp.
int ChollaVolume::id [private] |
Definition at line 19 of file ChollaVolume.hpp.
void* ChollaVolume::myVolume [private] |
Definition at line 23 of file ChollaVolume.hpp.
DLIList<ChollaSurface*> ChollaVolume::surfaceList [private] |
Definition at line 22 of file ChollaVolume.hpp.