public interface IGeometryInfo
IDetectorElement
.
These are some of the important methods on IGeometryInfo
.
getLogicalVolume()
- associated ILogicalVolume
getGlobalToLocal()
- global to local Transform3D
getLocalToGlobal()
- local to global Transform3D
getParentToLocal()
- parent to local Transform3D
getPath()
- PhysicalVolumePath
associated with this DetectorElement
#isInside(Hep3Vector)
- check if a global point is inside this geometryIDetectorElement
may have an IGeometryInfo
, which means that it has a
corresponding node in the geometry tree. Those DetectorElements without IGeometryInfo
are ghost volumes that have no geometric correspondence, but may fill a logical roll
in the detector hierarchy.Modifier and Type | Method and Description |
---|---|
IGeometryInfoContainer |
getChildGeometries()
Get an
IGeometryInfoContainer with the child DetectorElement's IGeometryInfo objects. |
IDetectorElement |
getDetectorElement()
Return the associated
DetectorElement . |
ITransform3D |
getGlobalToLocal()
Get the combined global to local transform.
|
ITransform3D |
getLocalToGlobal()
Get the combined local to global transform.
|
ILogicalVolume |
getLogicalVolume()
Get the associated
ILogicalVolume . |
ITransform3D |
getParentToLocal()
Get the transformation from parent geometry
into local geometry.
|
IPhysicalVolumePath |
getPath()
Get the
IPhysicalVolumePath assigned to this GeometryInfo. |
IPhysicalVolumePath |
getPath(Hep3Vector globalPoint)
Get the
IPhysicalVolumePath at a global point. |
String |
getPathString()
|
IPhysicalVolume |
getPhysicalVolume()
Get the associated
IPhysicalVolume or
null if none exists. |
IPhysicalVolume |
getPhysicalVolume(Hep3Vector globalPoint)
Get the PhysicalVolume at the global point
using the IPhysicalVolumePath of this IGeometryInfo.
|
Hep3Vector |
getPosition()
Get the center position of the DetectorElement in global coordinates.
|
boolean |
hasLogicalVolume()
True if this IGeometryInfo has an associated LogicalVolume.
|
boolean |
hasPath()
True if this IGeometryInfo has an associated full path
or geometry node.
|
Inside |
inside(Hep3Vector globalPoint)
True if the global point is inside this DetectorElement
or any of its descendants.
|
IGeometryInfo |
parentGeometry()
Get the parent DetectorElement's IGeometryInfo.
|
Hep3Vector |
transformGlobalToLocal(Hep3Vector globalPoint)
Transform the global point from global coordinates to local.
|
Hep3Vector |
transformLocalToGlobal(Hep3Vector localPoint)
Transform a local point into global coordinates.
|
Hep3Vector |
transformParentToLocal(Hep3Vector parentPoint)
Transform point in parent geometry to local coordinate system.
|
IGeometryInfoContainer getChildGeometries()
IGeometryInfoContainer
with the child DetectorElement's IGeometryInfo objects.IPhysicalVolumePath getPath(Hep3Vector globalPoint)
IPhysicalVolumePath
at a global point.globalPoint
- A point in global coordinates.ILogicalVolume getLogicalVolume()
ILogicalVolume
.IPhysicalVolume getPhysicalVolume(Hep3Vector globalPoint)
globalPoint
- A point in global coordinates.Hep3Vector getPosition()
IPhysicalVolumePath getPath()
IPhysicalVolumePath
assigned to this GeometryInfo.
This path points to a unique node in the geometry tree
and determines the basic global to local transform
of the DetectorElement.String getPathString()
ITransform3D getGlobalToLocal()
Hep3Vector transformGlobalToLocal(Hep3Vector globalPoint)
globalPoint
- boolean hasLogicalVolume()
null
LogicalVolume.boolean hasPath()
Inside inside(Hep3Vector globalPoint)
globalPoint
- A global point.ITransform3D getLocalToGlobal()
ITransform3D
ITransform3D getParentToLocal()
Hep3Vector transformLocalToGlobal(Hep3Vector localPoint)
localPoint
- A local point.IGeometryInfo parentGeometry()
null
if none exists.Hep3Vector transformParentToLocal(Hep3Vector parentPoint)
parentPoint
- A point in the parent coordinate system.IDetectorElement getDetectorElement()
DetectorElement
.IPhysicalVolume getPhysicalVolume()
IPhysicalVolume
or
null
if none exists.Copyright © 2016 Linear Collider Detector (LCD). All rights reserved.