public interface IPhysicalVolumeNavigator
IPhysicalVolumePath
objects that represent a volume's unique position in the physical geometry tree with
an ordered list of physical volumes. This class can calculate the combined geometric
transform of an IPhysicalVolumePath.Modifier and Type | Method and Description |
---|---|
String |
getName() |
IPhysicalVolumePath |
getPath(Hep3Vector globalPoint)
Same as
getPath(Hep3Vector globalPoint, int level)
with level set to -1. |
IPhysicalVolumePath |
getPath(Hep3Vector globalPoint,
int level)
Given a global point, return the full path to
deepest volume containing this point, not past
given depth.
|
IPhysicalVolumePath |
getPath(String path)
Get the full stack of
IPhysicalVolume s from a path string
of names. |
IPhysicalVolume |
getTopPhysicalVolume()
Get the top physical volume assigned to
this navigator.
|
Transform3D |
getTransform(IPhysicalVolumePath path)
Get the full transformation from the origin of
the coordinate system from a stack of physical volumes.
|
Transform3D |
getTransform(String path)
Get the full transformation from the origin of
the coordinate system to the given path.
|
void |
setTopPhysicalVolume(IPhysicalVolume physvol)
Set the top physical volume assigned to
this navigator.
|
void |
traversePostOrder(IPhysicalVolumeVisitor visitor)
Traverse the tree using postorder, calling the visit method
of the
IPhysicalVolumeVisitor . |
void |
traversePreOrder(IPhysicalVolumeVisitor visitor)
Traverse the tree using preorder, calling the visit method
of the
IPhysicalVolumeVisitor . |
String getName()
IPhysicalVolume getTopPhysicalVolume()
void setTopPhysicalVolume(IPhysicalVolume physvol)
physvol
- A top volume.IPhysicalVolumePath getPath(String path)
IPhysicalVolume
s from a path string
of names.
getPath("/volume_name/subvolume_name")
path
- A String with the path name.Transform3D getTransform(String path)
path
- The path of volumes.Transform3D getTransform(IPhysicalVolumePath path)
path
- The path of volumes.IPhysicalVolumePath getPath(Hep3Vector globalPoint, int level)
globalPoint
- A point in the global coordinate system.level
- Max depth. -1 will go to bottom.IPhysicalVolumePath getPath(Hep3Vector globalPoint)
getPath(Hep3Vector globalPoint, int level)
with level set to -1.globalPoint
- A point in the global coordinate system.void traversePreOrder(IPhysicalVolumeVisitor visitor)
IPhysicalVolumeVisitor
.visitor
- An IPhysicalVolumeVisitor that will be activated
at each PhysicalVolume in the tree.void traversePostOrder(IPhysicalVolumeVisitor visitor)
IPhysicalVolumeVisitor
.visitor
- An IPhysicalVolumeVisitor that will be activated
at each PhysicalVolume in the tree.Copyright © 2016 Linear Collider Detector (LCD). All rights reserved.