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
39
class
G4OCCTPlacement
:
public
G4PVPlacement {
40
public
:
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
70
private
:
71
TopLoc_Location fLocation;
72
};
73
74
#endif
// G4OCCT_G4OCCTPlacement_hh
G4OCCTPlacement
Extends Geant4's G4PVPlacement with the corresponding OCCT placement.
Definition
G4OCCTPlacement.hh:39
G4OCCTPlacement::SetOCCTLocation
void SetOCCTLocation(const TopLoc_Location &location)
Replace the OCCT placement location.
Definition
G4OCCTPlacement.hh:68
G4OCCTPlacement::~G4OCCTPlacement
~G4OCCTPlacement() override=default
G4OCCTPlacement::GetOCCTLocation
const TopLoc_Location & GetOCCTLocation() const
Read access to the OCCT placement location.
Definition
G4OCCTPlacement.hh:65
include
G4OCCT
G4OCCTPlacement.hh
Generated by
1.9.8