G4OCCT 0.1.0
Geant4 interface to Open CASCADE Technology (OCCT) geometry definitions
Loading...
Searching...
No Matches
G4OCCTAssemblyVolume::BuildContext Struct Reference

State threaded through the recursive XDE label traversal. More...

Public Member Functions

 Handle (XCAFDoc_ShapeTool) shapeTool
 OCCT shape tool for the XDE document.
 
 Handle (XCAFDoc_MaterialTool) matTool
 OCCT material tool for the XDE document.
 

Public Attributes

const G4OCCTMaterialMapmaterialMap
 User-supplied material map.
 
std::map< std::string, std::pair< G4OCCTLogicalVolume *, gp_Vec > > prototypeMap
 
std::map< G4String, int > usedNames
 Names already used by logical volumes; used to disambiguate duplicates.
 
std::map< G4String, G4OCCTLogicalVolume * > * logicalVolumes {nullptr}
 Flat collection of all created logical volumes (output to caller).
 

Detailed Description

State threaded through the recursive XDE label traversal.

Definition at line 172 of file G4OCCTAssemblyVolume.cc.

Member Function Documentation

◆ Handle() [1/2]

G4OCCTAssemblyVolume::BuildContext::Handle ( XCAFDoc_MaterialTool  )

OCCT material tool for the XDE document.

◆ Handle() [2/2]

G4OCCTAssemblyVolume::BuildContext::Handle ( XCAFDoc_ShapeTool  )

OCCT shape tool for the XDE document.

Member Data Documentation

◆ logicalVolumes

std::map<G4String, G4OCCTLogicalVolume*>* G4OCCTAssemblyVolume::BuildContext::logicalVolumes {nullptr}

Flat collection of all created logical volumes (output to caller).

Definition at line 187 of file G4OCCTAssemblyVolume.cc.

◆ materialMap

const G4OCCTMaterialMap& G4OCCTAssemblyVolume::BuildContext::materialMap

User-supplied material map.

Definition at line 178 of file G4OCCTAssemblyVolume.cc.

Referenced by G4OCCTAssemblyVolume::FromSTEP().

◆ prototypeMap

std::map<std::string, std::pair<G4OCCTLogicalVolume*, gp_Vec> > G4OCCTAssemblyVolume::BuildContext::prototypeMap

Prototype map: XDE label entry string → (logical volume, centroid in original shape frame). The centroid is stored alongside the logical volume so that repeated instances can compose the correct recentering offset without recomputing the bounding box.

Definition at line 183 of file G4OCCTAssemblyVolume.cc.

◆ usedNames

std::map<G4String, int> G4OCCTAssemblyVolume::BuildContext::usedNames

Names already used by logical volumes; used to disambiguate duplicates.

Definition at line 185 of file G4OCCTAssemblyVolume.cc.


The documentation for this struct was generated from the following file: