cgma
ChollaVolume Class Reference

#include <ChollaVolume.hpp>

Inheritance diagram for ChollaVolume:
ChollaEntity

List of all members.

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

Detailed Description

Definition at line 16 of file ChollaVolume.hpp.


Constructor & Destructor Documentation

ChollaVolume::ChollaVolume ( int  block_id)

Definition at line 14 of file ChollaVolume.cpp.

{
  static int count = 100;
  id = count++;
  myVolume = NULL;
  blockId = block_id;
}

Definition at line 25 of file ChollaVolume.cpp.

{
}

Member Function Documentation

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;}

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;}

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; }

Member Data Documentation

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.

Definition at line 22 of file ChollaVolume.hpp.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines