refactor: update Geant scene visualization to use PhysicalVolumes instead of raw Solids for improved placement and context handling.

This commit is contained in:
AndreaRigoni
2026-04-16 15:09:42 +00:00
parent e4379811a3
commit 64bfd92e34
17 changed files with 288 additions and 169 deletions

View File

@@ -127,6 +127,10 @@ const Vector<Solid*>& Scene::GetSolids() const {
return d->m_Solids;
}
const Vector<SmartPointer<PhysicalVolume>>& Scene::GetVolumes() const {
return d->m_Volumes;
}
void Scene::ConstructWorldBox(const Vector3f &size, const char *materialName) {
d->m_WorldBox->SetSize(size);

View File

@@ -60,6 +60,9 @@ public:
/// Get the list of solids in the scene
const Vector<Solid*>& GetSolids() const;
/// Get the list of physical volumes in the scene
const Vector<SmartPointer<PhysicalVolume>>& GetVolumes() const;
/// Set the primary generator (emitter) for the simulation.
/// The Scene does NOT take ownership of the emitter.
void SetEmitter(EmitterPrimary *emitter);