G4OCCT 0.1.0
Geant4 interface to Open CASCADE Technology (OCCT) geometry definitions
Loading...
Searching...
No Matches
G4OCCTLogicalVolume.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_G4OCCTLogicalVolume_hh
8#define G4OCCT_G4OCCTLogicalVolume_hh
9
10#include <G4LogicalVolume.hh>
11
12// OCCT
13#include <TopoDS_Shape.hxx>
14
36class G4OCCTLogicalVolume : public G4LogicalVolume {
37public:
47 G4OCCTLogicalVolume(G4VSolid* pSolid, G4Material* pMaterial, const G4String& name,
48 const TopoDS_Shape& shape = TopoDS_Shape());
49
50 ~G4OCCTLogicalVolume() override = default;
51
52 // ── G4OCCTLogicalVolume-specific interface ────────────────────────────────
53
55 const TopoDS_Shape& GetOCCTShape() const { return fShape; }
56
58 void SetOCCTShape(const TopoDS_Shape& shape) { fShape = shape; }
59
60private:
61 TopoDS_Shape fShape;
62};
63
64#endif // G4OCCT_G4OCCTLogicalVolume_hh
Extends Geant4's G4LogicalVolume with an associated OCCT shape.
const TopoDS_Shape & GetOCCTShape() const
Read access to the associated OCCT shape.
void SetOCCTShape(const TopoDS_Shape &shape)
Replace the associated OCCT shape.
~G4OCCTLogicalVolume() override=default