G4OCCT 0.1.0
Geant4 interface to Open CASCADE Technology (OCCT) geometry definitions
Loading...
Searching...
No Matches
G4OCCTPlacement.hh
Go to the documentation of this file.
1// SPDX-License-Identifier: LGPL-2.1-or-later
2// Copyright (C) 2026 G4OCCT Contributors
3
6
7#ifndef G4OCCT_G4OCCTPlacement_hh
8#define G4OCCT_G4OCCTPlacement_hh
9
10#include <G4PVPlacement.hh>
11
12// OCCT
13#include <TopLoc_Location.hxx>
14
39class G4OCCTPlacement : public G4PVPlacement {
40public:
55 G4OCCTPlacement(G4RotationMatrix* pRot, const G4ThreeVector& tlate,
56 G4LogicalVolume* pCurrentLogical, const G4String& pName,
57 G4LogicalVolume* pMotherLogical, G4bool pMany, G4int pCopyNo,
58 const TopLoc_Location& location = TopLoc_Location(), G4bool pSurfChk = false);
59
60 ~G4OCCTPlacement() override = default;
61
62 // ── G4OCCTPlacement-specific interface ────────────────────────────────────
63
65 const TopLoc_Location& GetOCCTLocation() const { return fLocation; }
66
68 void SetOCCTLocation(const TopLoc_Location& location) { fLocation = location; }
69
70private:
71 TopLoc_Location fLocation;
72};
73
74#endif // G4OCCT_G4OCCTPlacement_hh
Extends Geant4's G4PVPlacement with the corresponding OCCT placement.
void SetOCCTLocation(const TopLoc_Location &location)
Replace the OCCT placement location.
~G4OCCTPlacement() override=default
const TopLoc_Location & GetOCCTLocation() const
Read access to the OCCT placement location.