|
Geant4 11.3.0
Toolkit for the simulation of the passage of particles through matter
|
#include <G4Voxelizer.hh>
Public Member Functions | |
| void | Voxelize (std::vector< G4VSolid * > &solids, std::vector< G4Transform3D > &transforms) |
| void | Voxelize (std::vector< G4VFacet * > &facets) |
| void | DisplayVoxelLimits () const |
| void | DisplayBoundaries () |
| void | DisplayListNodes () const |
| G4Voxelizer () | |
| ~G4Voxelizer () | |
| void | GetCandidatesVoxel (std::vector< G4int > &voxels) |
| G4int | GetCandidatesVoxelArray (const G4ThreeVector &point, std::vector< G4int > &list, G4SurfBits *crossed=nullptr) const |
| G4int | GetCandidatesVoxelArray (const std::vector< G4int > &voxels, const G4SurfBits bitmasks[], std::vector< G4int > &list, G4SurfBits *crossed=nullptr) const |
| G4int | GetCandidatesVoxelArray (const std::vector< G4int > &voxels, std::vector< G4int > &list, G4SurfBits *crossed=nullptr) const |
| const std::vector< G4VoxelBox > & | GetBoxes () const |
| const std::vector< G4double > & | GetBoundary (G4int index) const |
| G4bool | UpdateCurrentVoxel (const G4ThreeVector &point, const G4ThreeVector &direction, std::vector< G4int > &curVoxel) const |
| void | GetVoxel (std::vector< G4int > &curVoxel, const G4ThreeVector &point) const |
| G4int | GetBitsPerSlice () const |
| G4bool | Contains (const G4ThreeVector &point) const |
| G4double | DistanceToNext (const G4ThreeVector &point, const G4ThreeVector &direction, std::vector< G4int > &curVoxel) const |
| G4double | DistanceToFirst (const G4ThreeVector &point, const G4ThreeVector &direction) const |
| G4double | DistanceToBoundingBox (const G4ThreeVector &point) const |
| G4int | GetVoxelsIndex (G4int x, G4int y, G4int z) const |
| G4int | GetVoxelsIndex (const std::vector< G4int > &voxels) const |
| G4bool | GetPointVoxel (const G4ThreeVector &p, std::vector< G4int > &voxels) const |
| G4int | GetPointIndex (const G4ThreeVector &p) const |
| const G4SurfBits & | Empty () const |
| G4bool | IsEmpty (G4int index) const |
| void | SetMaxVoxels (G4int max) |
| void | SetMaxVoxels (const G4ThreeVector &reductionRatio) |
| G4int | GetMaxVoxels (G4ThreeVector &ratioOfReduction) |
| G4int | AllocatedMemory () |
| long long | GetCountOfVoxels () const |
| long long | CountVoxels (std::vector< G4double > boundaries[]) const |
| const std::vector< G4int > & | GetCandidates (std::vector< G4int > &curVoxel) const |
| G4int | GetVoxelBoxesSize () const |
| const G4VoxelBox & | GetVoxelBox (G4int i) const |
| const std::vector< G4int > & | GetVoxelBoxCandidates (G4int i) const |
| G4int | GetTotalCandidates () const |
Static Public Member Functions | |
| template<typename T> | |
| static G4int | BinarySearch (const std::vector< T > &vec, T value) |
| static G4double | MinDistanceToBox (const G4ThreeVector &aPoint, const G4ThreeVector &f) |
| static void | SetDefaultVoxelsCount (G4int count) |
| static G4int | GetDefaultVoxelsCount () |
Definition at line 62 of file G4Voxelizer.hh.
| G4Voxelizer::G4Voxelizer | ( | ) |
Definition at line 54 of file G4Voxelizer.cc.
|
default |
| G4int G4Voxelizer::AllocatedMemory | ( | ) |
Definition at line 1350 of file G4Voxelizer.cc.
|
inlinestatic |
Referenced by GetCandidatesVoxelArray(), and UpdateCurrentVoxel().
| G4bool G4Voxelizer::Contains | ( | const G4ThreeVector & | point | ) | const |
Definition at line 1151 of file G4Voxelizer.cc.
|
inline |
Referenced by Voxelize().
| void G4Voxelizer::DisplayBoundaries | ( | ) |
Definition at line 316 of file G4Voxelizer.cc.
Referenced by DisplayBoundaries().
| void G4Voxelizer::DisplayListNodes | ( | ) | const |
Definition at line 421 of file G4Voxelizer.cc.
| void G4Voxelizer::DisplayVoxelLimits | ( | ) | const |
Definition at line 194 of file G4Voxelizer.cc.
| G4double G4Voxelizer::DistanceToBoundingBox | ( | const G4ThreeVector & | point | ) | const |
Definition at line 1173 of file G4Voxelizer.cc.
| G4double G4Voxelizer::DistanceToFirst | ( | const G4ThreeVector & | point, |
| const G4ThreeVector & | direction ) const |
Definition at line 1163 of file G4Voxelizer.cc.
| G4double G4Voxelizer::DistanceToNext | ( | const G4ThreeVector & | point, |
| const G4ThreeVector & | direction, | ||
| std::vector< G4int > & | curVoxel ) const |
Definition at line 1208 of file G4Voxelizer.cc.
|
inline |
|
inline |
|
inline |
|
inline |
| void G4Voxelizer::GetCandidatesVoxel | ( | std::vector< G4int > & | voxels | ) |
Definition at line 886 of file G4Voxelizer.cc.
| G4int G4Voxelizer::GetCandidatesVoxelArray | ( | const G4ThreeVector & | point, |
| std::vector< G4int > & | list, | ||
| G4SurfBits * | crossed = nullptr ) const |
Definition at line 963 of file G4Voxelizer.cc.
Referenced by GetCandidatesVoxel(), and GetCandidatesVoxelArray().
| G4int G4Voxelizer::GetCandidatesVoxelArray | ( | const std::vector< G4int > & | voxels, |
| const G4SurfBits | bitmasks[], | ||
| std::vector< G4int > & | list, | ||
| G4SurfBits * | crossed = nullptr ) const |
Definition at line 1084 of file G4Voxelizer.cc.
| G4int G4Voxelizer::GetCandidatesVoxelArray | ( | const std::vector< G4int > & | voxels, |
| std::vector< G4int > & | list, | ||
| G4SurfBits * | crossed = nullptr ) const |
Definition at line 1142 of file G4Voxelizer.cc.
|
inline |
|
static |
Definition at line 1344 of file G4Voxelizer.cc.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
static |
Definition at line 1182 of file G4Voxelizer.cc.
Referenced by DistanceToBoundingBox().
|
static |
Definition at line 1338 of file G4Voxelizer.cc.
| void G4Voxelizer::SetMaxVoxels | ( | const G4ThreeVector & | reductionRatio | ) |
Definition at line 1331 of file G4Voxelizer.cc.
| void G4Voxelizer::SetMaxVoxels | ( | G4int | max | ) |
Definition at line 1324 of file G4Voxelizer.cc.
Referenced by G4Voxelizer().
| G4bool G4Voxelizer::UpdateCurrentVoxel | ( | const G4ThreeVector & | point, |
| const G4ThreeVector & | direction, | ||
| std::vector< G4int > & | curVoxel ) const |
Definition at line 1293 of file G4Voxelizer.cc.
| void G4Voxelizer::Voxelize | ( | std::vector< G4VFacet * > & | facets | ) |
Definition at line 757 of file G4Voxelizer.cc.
| void G4Voxelizer::Voxelize | ( | std::vector< G4VSolid * > & | solids, |
| std::vector< G4Transform3D > & | transforms ) |
Definition at line 703 of file G4Voxelizer.cc.