Geant4-11
|
#include <G4DNAMesh.hh>
Public Types | |
using | Index = G4Voxel::Index |
using | Key = unsigned int |
using | VoxelMap = std::map< Key, G4Voxel * > |
Public Member Functions | |
VoxelMap::iterator | begin () |
VoxelMap::const_iterator | begin () const |
VoxelMap::iterator | end () |
VoxelMap::const_iterator | end () const |
std::vector< Index > | FindNeighboringVoxels (const Index &index) const |
std::vector< Index > | FindVoxelNeighbors (const Index &index) const |
G4DNAMesh (const G4DNABoundingBox &, G4int) | |
const G4DNABoundingBox & | GetBoundingBox () const |
G4DNABoundingBox | GetBoundingBox (const Index &index) |
Index | GetIndex (const G4ThreeVector &position) const |
Index | GetIndex (const Index &index, int) const |
Index | GetIndex (Key key) const |
Key | GetKey (const G4ThreeVector &pos) const |
Key | GetKey (const Index &index) const |
G4int | GetNumberOfType (G4Voxel::MolType type) const |
G4double | GetResolution () const |
G4Voxel * | GetVoxel (const Index &index) |
G4Voxel * | GetVoxel (Key key) |
G4Voxel::MapList & | GetVoxelMapList (const Index &index) |
G4Voxel::MapList & | GetVoxelMapList (Key key) |
void | PrintMesh () |
void | PrintVoxel (const Index &index) |
void | Reset () |
void | SetVoxelMapList (const Key &key, G4Voxel::MapList &&mapList) |
size_t | size () |
~G4DNAMesh () | |
Private Attributes | |
VoxelMap | fMesh |
const G4DNABoundingBox * | fpBoundingMesh |
G4double | fResolution |
Definition at line 112 of file G4DNAMesh.hh.
using G4DNAMesh::Index = G4Voxel::Index |
Definition at line 115 of file G4DNAMesh.hh.
using G4DNAMesh::Key = unsigned int |
Definition at line 116 of file G4DNAMesh.hh.
using G4DNAMesh::VoxelMap = std::map<Key, G4Voxel*> |
Definition at line 117 of file G4DNAMesh.hh.
G4DNAMesh::G4DNAMesh | ( | const G4DNABoundingBox & | boundingBox, |
G4int | pixel | ||
) |
Definition at line 30 of file G4DNAMesh.cc.
G4DNAMesh::~G4DNAMesh | ( | ) |
|
inline |
Definition at line 138 of file G4DNAMesh.hh.
References fMesh.
Referenced by G4DNAGillespieDirectMethod::Initialize().
|
inline |
|
inline |
Definition at line 137 of file G4DNAMesh.hh.
References fMesh.
Referenced by G4DNAGillespieDirectMethod::Initialize().
|
inline |
std::vector< G4Voxel::Index > G4DNAMesh::FindNeighboringVoxels | ( | const Index & | index | ) | const |
Definition at line 276 of file G4DNAMesh.cc.
References FatalErrorInArgument, fpBoundingMesh, fResolution, G4cout, G4endl, G4Exception(), G4DNABoundingBox::Getxhi(), G4DNABoundingBox::Getxlo(), G4DNABoundingBox::Getyhi(), G4DNABoundingBox::Getylo(), G4DNABoundingBox::Getzhi(), G4DNABoundingBox::Getzlo(), G4Voxel::Index::x, G4Voxel::Index::y, and G4Voxel::Index::z.
Referenced by G4DNAGillespieDirectMethod::DiffusiveJumping().
std::vector< G4Voxel::Index > G4DNAMesh::FindVoxelNeighbors | ( | const Index & | index | ) | const |
Definition at line 232 of file G4DNAMesh.cc.
References FatalErrorInArgument, fpBoundingMesh, fResolution, G4Exception(), GetIndex(), G4DNABoundingBox::Getxhi(), G4DNABoundingBox::Getxlo(), G4DNABoundingBox::Getyhi(), G4DNABoundingBox::Getylo(), G4DNABoundingBox::Getzhi(), G4DNABoundingBox::Getzlo(), G4Voxel::Index::x, G4Voxel::Index::y, and G4Voxel::Index::z.
const G4DNABoundingBox & G4DNAMesh::GetBoundingBox | ( | ) | const |
Definition at line 211 of file G4DNAMesh.cc.
References fpBoundingMesh.
Referenced by G4DNAGillespieDirectMethod::FindScavenging(), G4DNAGillespieDirectMethod::PropensityFunction(), SetVoxelMapList(), and G4DNAGillespieDirectMethod::VolumeOfNode().
G4DNABoundingBox G4DNAMesh::GetBoundingBox | ( | const Index & | index | ) |
Definition at line 152 of file G4DNAMesh.cc.
References fpBoundingMesh, fResolution, G4DNABoundingBox::Getxlo(), G4DNABoundingBox::Getylo(), G4DNABoundingBox::Getzlo(), G4Voxel::Index::x, G4Voxel::Index::y, and G4Voxel::Index::z.
G4Voxel::Index G4DNAMesh::GetIndex | ( | const G4ThreeVector & | position | ) | const |
Definition at line 129 of file G4DNAMesh.cc.
References fpBoundingMesh, fResolution, G4DNABoundingBox::Getxlo(), G4DNABoundingBox::Getylo(), and G4DNABoundingBox::Getzlo().
G4Voxel::Index G4DNAMesh::GetIndex | ( | const Index & | index, |
int | pixels | ||
) | const |
Definition at line 137 of file G4DNAMesh.cc.
References fpBoundingMesh, fResolution, G4DNABoundingBox::Getxhi(), G4DNABoundingBox::Getxlo(), G4DNABoundingBox::Getyhi(), G4DNABoundingBox::Getylo(), G4DNABoundingBox::Getzhi(), G4DNABoundingBox::Getzlo(), G4Voxel::Index::x, G4Voxel::Index::y, and G4Voxel::Index::z.
G4Voxel::Index G4DNAMesh::GetIndex | ( | Key | key | ) | const |
Definition at line 164 of file G4DNAMesh.cc.
References FatalErrorInArgument, fpBoundingMesh, fResolution, G4cout, G4endl, G4Exception(), G4DNABoundingBox::Getxhi(), G4DNABoundingBox::Getxlo(), G4DNABoundingBox::Getyhi(), and G4DNABoundingBox::Getylo().
Referenced by G4DNAGillespieDirectMethod::CreateEvent(), FindVoxelNeighbors(), G4DNAGillespieDirectMethod::Initialize(), and SetVoxelMapList().
G4DNAMesh::Key G4DNAMesh::GetKey | ( | const G4ThreeVector & | pos | ) | const |
Definition at line 332 of file G4DNAMesh.cc.
References G4DNABoundingBox::contains(), FatalErrorInArgument, fpBoundingMesh, fResolution, G4Exception(), G4DNABoundingBox::Getxhi(), G4DNABoundingBox::Getxlo(), G4DNABoundingBox::Getyhi(), G4DNABoundingBox::Getylo(), and G4DNABoundingBox::Getzlo().
Referenced by GetVoxel(), GetVoxelMapList(), and PrintVoxel().
G4DNAMesh::Key G4DNAMesh::GetKey | ( | const Index & | index | ) | const |
Definition at line 58 of file G4DNAMesh.cc.
References fpBoundingMesh, fResolution, G4DNABoundingBox::Getxhi(), G4DNABoundingBox::Getxlo(), G4DNABoundingBox::Getyhi(), G4DNABoundingBox::Getylo(), G4Voxel::Index::x, G4Voxel::Index::y, and G4Voxel::Index::z.
G4int G4DNAMesh::GetNumberOfType | ( | G4Voxel::MolType | type | ) | const |
Definition at line 78 of file G4DNAMesh.cc.
References fMesh, and G4Voxel::GetMapList().
Referenced by G4DNAUpdateSystemModel::UpdateSystem().
G4double G4DNAMesh::GetResolution | ( | ) | const |
Definition at line 216 of file G4DNAMesh.cc.
References fMesh.
Referenced by GetVoxel().
G4Voxel::MapList & G4DNAMesh::GetVoxelMapList | ( | const Index & | index | ) |
G4Voxel::MapList & G4DNAMesh::GetVoxelMapList | ( | Key | key | ) |
Definition at line 37 of file G4DNAMesh.cc.
References fMesh, GetVoxelMapList(), and SetVoxelMapList().
Referenced by G4DNAGillespieDirectMethod::ComputeNumberInNode(), G4DNAUpdateSystemModel::CreateMolecule(), GetVoxelMapList(), G4DNAUpdateSystemModel::JumpIn(), G4DNAUpdateSystemModel::JumpTo(), G4DNAUpdateSystemModel::KillMolecule(), PrintVoxel(), and G4DNAGillespieDirectMethod::PropensityFunction().
void G4DNAMesh::PrintMesh | ( | ) |
Definition at line 67 of file G4DNAMesh.cc.
References fMesh, G4cout, G4endl, and PrintVoxel().
void G4DNAMesh::PrintVoxel | ( | const Index & | index | ) |
Definition at line 98 of file G4DNAMesh.cc.
References G4cout, G4endl, GetKey(), and GetVoxelMapList().
Referenced by G4DNAGillespieDirectMethod::Initialize(), and PrintMesh().
void G4DNAMesh::Reset | ( | ) |
Definition at line 198 of file G4DNAMesh.cc.
References fMesh.
Referenced by ~G4DNAMesh().
void G4DNAMesh::SetVoxelMapList | ( | const Key & | key, |
G4Voxel::MapList && | mapList | ||
) |
Definition at line 113 of file G4DNAMesh.cc.
References fMesh, GetBoundingBox(), and GetIndex().
Referenced by GetVoxelMapList().
|
inline |
|
private |
Definition at line 152 of file G4DNAMesh.hh.
Referenced by begin(), end(), GetNumberOfType(), GetVoxel(), GetVoxelMapList(), PrintMesh(), Reset(), SetVoxelMapList(), and size().
|
private |
Definition at line 153 of file G4DNAMesh.hh.
Referenced by FindNeighboringVoxels(), FindVoxelNeighbors(), GetBoundingBox(), GetIndex(), and GetKey().
|
private |
Definition at line 154 of file G4DNAMesh.hh.
Referenced by FindNeighboringVoxels(), FindVoxelNeighbors(), GetBoundingBox(), GetIndex(), GetKey(), and GetResolution().