Geant4 11.1.1
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 55 of file G4Voxelizer.cc.
G4Voxelizer::~G4Voxelizer | ( | ) |
Definition at line 68 of file G4Voxelizer.cc.
G4int G4Voxelizer::AllocatedMemory | ( | ) |
Definition at line 1353 of file G4Voxelizer.cc.
Referenced by G4TessellatedSolid::AllocatedMemory().
|
inlinestatic |
Referenced by GetCandidatesVoxelArray(), and UpdateCurrentVoxel().
G4bool G4Voxelizer::Contains | ( | const G4ThreeVector & | point | ) | const |
Definition at line 1154 of file G4Voxelizer.cc.
|
inline |
Referenced by Voxelize().
void G4Voxelizer::DisplayBoundaries | ( | ) |
Definition at line 319 of file G4Voxelizer.cc.
Referenced by DisplayBoundaries().
void G4Voxelizer::DisplayListNodes | ( | ) | const |
Definition at line 424 of file G4Voxelizer.cc.
void G4Voxelizer::DisplayVoxelLimits | ( | ) | const |
Definition at line 197 of file G4Voxelizer.cc.
G4double G4Voxelizer::DistanceToBoundingBox | ( | const G4ThreeVector & | point | ) | const |
Definition at line 1176 of file G4Voxelizer.cc.
Referenced by G4MultiUnion::DistanceToIn(), and G4TessellatedSolid::SafetyFromOutside().
G4double G4Voxelizer::DistanceToFirst | ( | const G4ThreeVector & | point, |
const G4ThreeVector & | direction | ||
) | const |
Definition at line 1166 of file G4Voxelizer.cc.
Referenced by G4MultiUnion::DistanceToIn().
G4double G4Voxelizer::DistanceToNext | ( | const G4ThreeVector & | point, |
const G4ThreeVector & | direction, | ||
std::vector< G4int > & | curVoxel | ||
) | const |
Definition at line 1211 of file G4Voxelizer.cc.
Referenced by G4MultiUnion::DistanceToIn().
|
inline |
|
inline |
Referenced by G4MultiUnion::DistanceToIn(), and G4MultiUnion::DistanceToOutVoxels().
|
inline |
Referenced by G4MultiUnion::DistanceToIn().
void G4Voxelizer::GetCandidatesVoxel | ( | std::vector< G4int > & | voxels | ) |
Definition at line 889 of file G4Voxelizer.cc.
G4int G4Voxelizer::GetCandidatesVoxelArray | ( | const G4ThreeVector & | point, |
std::vector< G4int > & | list, | ||
G4SurfBits * | crossed = nullptr |
||
) | const |
Definition at line 966 of file G4Voxelizer.cc.
Referenced by G4MultiUnion::DistanceToIn(), G4MultiUnion::DistanceToOut(), G4MultiUnion::DistanceToOutVoxels(), GetCandidatesVoxel(), GetCandidatesVoxelArray(), and G4MultiUnion::SurfaceNormal().
G4int G4Voxelizer::GetCandidatesVoxelArray | ( | const std::vector< G4int > & | voxels, |
const G4SurfBits | bitmasks[], | ||
std::vector< G4int > & | list, | ||
G4SurfBits * | crossed = nullptr |
||
) | const |
Definition at line 1087 of file G4Voxelizer.cc.
G4int G4Voxelizer::GetCandidatesVoxelArray | ( | const std::vector< G4int > & | voxels, |
std::vector< G4int > & | list, | ||
G4SurfBits * | crossed = nullptr |
||
) | const |
Definition at line 1145 of file G4Voxelizer.cc.
|
inline |
|
static |
Definition at line 1347 of file G4Voxelizer.cc.
|
inline |
|
inline |
Referenced by G4TessellatedSolid::SafetyFromOutside().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
static |
Definition at line 1185 of file G4Voxelizer.cc.
Referenced by DistanceToBoundingBox().
|
static |
Definition at line 1341 of file G4Voxelizer.cc.
void G4Voxelizer::SetMaxVoxels | ( | const G4ThreeVector & | reductionRatio | ) |
Definition at line 1334 of file G4Voxelizer.cc.
void G4Voxelizer::SetMaxVoxels | ( | G4int | max | ) |
Definition at line 1327 of file G4Voxelizer.cc.
Referenced by G4Voxelizer(), and G4TessellatedSolid::SetMaxVoxels().
G4bool G4Voxelizer::UpdateCurrentVoxel | ( | const G4ThreeVector & | point, |
const G4ThreeVector & | direction, | ||
std::vector< G4int > & | curVoxel | ||
) | const |
Definition at line 1296 of file G4Voxelizer.cc.
void G4Voxelizer::Voxelize | ( | std::vector< G4VFacet * > & | facets | ) |
Definition at line 760 of file G4Voxelizer.cc.
void G4Voxelizer::Voxelize | ( | std::vector< G4VSolid * > & | solids, |
std::vector< G4Transform3D > & | transforms | ||
) |
Definition at line 706 of file G4Voxelizer.cc.
Referenced by G4MultiUnion::Voxelize().