refactor: Enhance VTK puppet lifecycle management by explicitly handling puppet removal and synchronizing puppets across all viewports, and remove default scene objects from startup.
This commit is contained in:
@@ -32,17 +32,17 @@ int main(int argc, char** argv) {
|
||||
StyleManager::applyStyle(&app, "dark");
|
||||
std::cout << "Starting gcompose Qt application..." << std::endl;
|
||||
|
||||
ContainerBox world_box(Vector3f(1, 1, 1));
|
||||
world_box.Scale(Vector3f(2_mm, 2_mm, 2_mm));
|
||||
world_box.SetPosition(Vector3f(-1_mm, -1_mm, -1_mm));
|
||||
// ContainerBox world_box(Vector3f(1, 1, 1));
|
||||
// world_box.Scale(Vector3f(2_mm, 2_mm, 2_mm));
|
||||
// world_box.SetPosition(Vector3f(-1_mm, -1_mm, -1_mm));
|
||||
|
||||
Geant::Scene scene;
|
||||
scene.ConstructWorldBox(world_box.GetSize(), "G4_AIR");
|
||||
scene.Initialize();
|
||||
// Geant::Scene scene;
|
||||
// scene.ConstructWorldBox(world_box.GetSize(), "G4_AIR");
|
||||
// scene.Initialize();
|
||||
|
||||
uLib::ObjectsContext globalContext;
|
||||
globalContext.AddObject(&world_box);
|
||||
globalContext.AddObject(&scene);
|
||||
// globalContext.AddObject(&world_box);
|
||||
// globalContext.AddObject(&scene);
|
||||
|
||||
// 2. Initialize MainWindow (contains embedded VTK QViewport)
|
||||
MainWindow window;
|
||||
|
||||
Reference in New Issue
Block a user