3.10.1.11.1.4. opengate.geometry.volumes¶
3.10.1.11.1.4.1. Classes¶
Store information about a geometry volume: |
|
Store information about a geometry volume: |
|
Volume resulting from a boolean operation of the solids contained in two volumes. |
|
Volume with a box shape. |
|
Volume with a hexagon shape. |
|
Volume with the shape of a cone or conical section. |
|
Volume with a polyhedral shape. |
|
Volume with a sphere or spherical shell shape. |
|
Volume with a generic trapezoidal shape. |
|
Volume with a symmetric trapezoidal shape. |
|
Volume with a tube or cylindrical section shape. |
|
Volume based on a mesh volume by reading an STL file. |
|
Volume created from another volume via translations. |
|
Store information about a voxelized volume |
|
Small class to provide a root for the volume tree. |
3.10.1.11.1.4.2. Functions¶
|
Internal function associated with user_info rotation to check its validity. |
|
|
|
|
|
|
|
Hook to be attached to property setter of user info 'mother' in all volumes. |
|
|
|
|
|
|
|
|
|
|
|
3.10.1.11.1.4.3. Module Contents¶
- opengate.geometry.volumes._setter_hook_user_info_rotation(self, rotation_user)[source]¶
Internal function associated with user_info rotation to check its validity.
- opengate.geometry.volumes._setter_hook_user_info_mother(self, mother)[source]¶
Hook to be attached to property setter of user info ‘mother’ in all volumes.
Checks if new mother is actually different from stored one.
If so, it also tries to inform the volume manager that the volume tree needs an update.
This latter part only applies for volumes which have a volume manager,
i.e. which have been added to a simulation.
- class opengate.geometry.volumes.VolumeBase(*args, **kwargs)[source]¶
Bases:
opengate.base.DynamicGateObject,anytree.NodeMixinStore information about a geometry volume: - G4 objects: Solid, LogicalVolume, PhysicalVolume - user parameters: user_info - additional data such as: mother, material etc
- _update_node()[source]¶
Internal method which retrieves the volume object from the volume manager based on the mother’s name stored as user info ‘mother’
- property translation_list[source]¶
Utility property which always returns a list of translations, even if the volume is not repeated and has thus only one translation vector.
- class opengate.geometry.volumes.RepeatableVolume(*args, **kwargs)[source]¶
Bases:
VolumeBaseStore information about a geometry volume: - G4 objects: Solid, LogicalVolume, PhysicalVolume - user parameters: user_info - additional data such as: mother, material etc
- class opengate.geometry.volumes.BooleanVolume(*args, **kwargs)[source]¶
Bases:
RepeatableVolume,opengate.geometry.solids.BooleanSolidVolume resulting from a boolean operation of the solids contained in two volumes.
- opengate.geometry.volumes._make_boolean_volume(volume_1, volume_2, operation, translation=None, rotation=None, new_name=None)[source]¶
- opengate.geometry.volumes.intersect_volumes(volume_1, volume_2, translation=None, rotation=None, new_name=None)[source]¶
- opengate.geometry.volumes.unite_volumes(volume_1, volume_2, translation=None, rotation=None, new_name=None)[source]¶
- opengate.geometry.volumes.subtract_volumes(volume_1, volume_2, translation=None, rotation=None, new_name=None)[source]¶
- class opengate.geometry.volumes.BoxVolume(*args, **kwargs)[source]¶
Bases:
RepeatableVolume,opengate.geometry.solids.BoxSolidVolume with a box shape.
- class opengate.geometry.volumes.HexagonVolume(*args, **kwargs)[source]¶
Bases:
RepeatableVolume,opengate.geometry.solids.HexagonSolidVolume with a hexagon shape.
- class opengate.geometry.volumes.ConsVolume(*args, **kwargs)[source]¶
Bases:
RepeatableVolume,opengate.geometry.solids.ConsSolidVolume with the shape of a cone or conical section.
- class opengate.geometry.volumes.PolyhedraVolume(*args, **kwargs)[source]¶
Bases:
RepeatableVolume,opengate.geometry.solids.PolyhedraSolidVolume with a polyhedral shape.
- class opengate.geometry.volumes.SphereVolume(*args, **kwargs)[source]¶
Bases:
RepeatableVolume,opengate.geometry.solids.SphereSolidVolume with a sphere or spherical shell shape.
- class opengate.geometry.volumes.TrapVolume(*args, **kwargs)[source]¶
Bases:
RepeatableVolume,opengate.geometry.solids.TrapSolidVolume with a generic trapezoidal shape.
- class opengate.geometry.volumes.TrdVolume(*args, **kwargs)[source]¶
Bases:
RepeatableVolume,opengate.geometry.solids.TrdSolidVolume with a symmetric trapezoidal shape.
- class opengate.geometry.volumes.TubsVolume(*args, **kwargs)[source]¶
Bases:
RepeatableVolume,opengate.geometry.solids.TubsSolidVolume with a tube or cylindrical section shape.
- class opengate.geometry.volumes.TesselatedVolume(*args, **kwargs)[source]¶
Bases:
RepeatableVolume,opengate.geometry.solids.TesselatedSolidVolume based on a mesh volume by reading an STL file.
- class opengate.geometry.volumes.RepeatParametrisedVolume(repeated_volume, *args, **kwargs)[source]¶
Bases:
VolumeBaseVolume created from another volume via translations.
- class opengate.geometry.volumes.ImageVolume(*args, **kwargs)[source]¶
Bases:
VolumeBase,opengate.geometry.solids.ImageSolidStore information about a voxelized volume
- class opengate.geometry.volumes.ParallelWorldVolume(name, volume_manager)[source]¶
Bases:
anytree.NodeMixin