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

Method UpdateClipper

source/visualization/Vtk/src/G4VtkStore.cc:610–651  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

608}
609
610void G4VtkStore::UpdateClipper(G4String nameIn, const G4Plane3D& plane)
611{
612 for (const auto& v : separatePipeMap) {
613 auto children = v.second->GetChildPipelines();
614 for (auto c : children) {
615 if (c->GetName() == nameIn) {
616 auto cc = dynamic_cast<G4VtkClipClosedSurfacePipeline*>(c);
617 cc->SetPlane(plane);
618 }
619 }
620 }
621
622 for (const auto& v : tensorGlyphPipeMap) {
623 auto children = v.second->GetChildPipelines();
624 for (auto c : children) {
625 if (c->GetName() == nameIn) {
626 auto cc = dynamic_cast<G4VtkClipClosedSurfacePipeline*>(c);
627 cc->SetPlane(plane);
628 }
629 }
630 }
631
632 for (const auto& v : appendPipeMap) {
633 auto children = v.second->GetChildPipelines();
634 for (auto c : children) {
635 if (c->GetName() == nameIn) {
636 auto cc = dynamic_cast<G4VtkClipClosedSurfacePipeline*>(c);
637 cc->SetPlane(plane);
638 }
639 }
640 }
641
642 for (const auto& v : bakePipeMap) {
643 auto children = v.second->GetChildPipelines();
644 for (auto c : children) {
645 if (c->GetName() == nameIn) {
646 auto cc = dynamic_cast<G4VtkClipClosedSurfacePipeline*>(c);
647 cc->SetPlane(plane);
648 }
649 }
650 }
651}
652
653void G4VtkStore::RemoveClipper(G4String /*nameIn*/) {}
654

Callers

nothing calls this directly

Calls 3

GetChildPipelinesMethod · 0.80
GetNameMethod · 0.45
SetPlaneMethod · 0.45

Tested by

no test coverage detected