MCPcopy Create free account
hub / github.com/Geant4/geant4 / UpdateCutter

Method UpdateCutter

source/visualization/Vtk/src/G4VtkStore.cc:686–727  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

684}
685
686void G4VtkStore::UpdateCutter(G4String nameIn, const G4Plane3D& plane)
687{
688 for (const auto& v : separatePipeMap) {
689 auto children = v.second->GetChildPipelines();
690 for (auto c : children) {
691 if (c->GetName() == nameIn) {
692 auto cc = dynamic_cast<G4VtkCutterPipeline*>(c);
693 cc->SetPlane(plane);
694 }
695 }
696 }
697
698 for (const auto& v : tensorGlyphPipeMap) {
699 auto children = v.second->GetChildPipelines();
700 for (auto c : children) {
701 if (c->GetName() == nameIn) {
702 auto cc = dynamic_cast<G4VtkCutterPipeline*>(c);
703 cc->SetPlane(plane);
704 }
705 }
706 }
707
708 for (const auto& v : appendPipeMap) {
709 auto children = v.second->GetChildPipelines();
710 for (auto c : children) {
711 if (c->GetName() == nameIn) {
712 auto cc = dynamic_cast<G4VtkCutterPipeline*>(c);
713 cc->SetPlane(plane);
714 }
715 }
716 }
717
718 for (const auto& v : bakePipeMap) {
719 auto children = v.second->GetChildPipelines();
720 for (auto c : children) {
721 if (c->GetName() == nameIn) {
722 auto cc = dynamic_cast<G4VtkCutterPipeline*>(c);
723 cc->SetPlane(plane);
724 }
725 }
726 }
727}
728
729void G4VtkStore::RemoveCutter(G4String /*nameIn*/) {}
730

Callers

nothing calls this directly

Calls 3

GetChildPipelinesMethod · 0.80
GetNameMethod · 0.45
SetPlaneMethod · 0.45

Tested by

no test coverage detected