10#include "pmakerView.h"
11#include "gemc/actions/gaction.h"
14#include "G4RunManager.hh"
16void GemcGUI::createRightContent(std::shared_ptr<GOptions> gopts,
20 rightContent =
new QStackedWidget;
31 if (displayUtilities) {
33 this, &GemcGUI::refreshVisualizationFromOptions);
37 rightContent->addWidget(setupView);
42 geometryTree =
new GTree(gopts,
45 : std::unordered_map<std::string,
G4Volume*>{},
48 : std::unordered_map<std::string, const GVolume*>{});
49 rightContent->addWidget(geometryTree);
52 rightContent->addWidget(
new G4Dialog(gopts, gb));
55 std::shared_ptr<std::vector<GparticlePtr>> sharedParticles;
56 if (
auto* rm = G4RunManager::GetRunManager()) {
57 if (
auto* ga =
dynamic_cast<GAction*
>(
58 const_cast<G4VUserActionInitialization*
>(rm->GetUserActionInitialization())))
59 sharedParticles = ga->getSharedParticles();
61 rightContent->addWidget(
new PmakerView(sharedParticles, gopts));
64 rightContent->setCurrentIndex(0);
void geometryAboutToReload()
void sceneOptionsChanged()
std::unordered_map< std::string, const GVolume * > get_gvolumes_flat_map() const
std::unordered_map< std::string, G4Volume * > get_g4volumes_map() const
bool has_built_geometry() const