Definition at line 9 of file geo_id.py.
◆ __init__()
def geo_id.GeometryIdentifier.__init__ |
( |
|
self, |
|
|
|
value |
|
) |
| |
◆ __repr__()
def geo_id.GeometryIdentifier.__repr__ |
( |
|
self | ) |
|
Definition at line 55 of file geo_id.py.
56 fmt =
"GeometryIdentifier(vol={}, bnd={}, lay={}, app={}, sen={}, chn={})"
57 return fmt.format(self.vol_id,
◆ _ffs()
def geo_id.GeometryIdentifier._ffs |
( |
|
self, |
|
|
|
x |
|
) |
| |
|
private |
Returns the index, counting from 0, of the
least significant set bit in `x`.
Definition at line 21 of file geo_id.py.
22 """Returns the index, counting from 0, of the
23 least significant set bit in `x`.
25 return (x&-x).bit_length()-1
◆ app_id()
def geo_id.GeometryIdentifier.app_id |
( |
|
self | ) |
|
Definition at line 40 of file geo_id.py.
41 return self.value(self.approach_mask)
◆ bnd_id()
def geo_id.GeometryIdentifier.bnd_id |
( |
|
self | ) |
|
Definition at line 32 of file geo_id.py.
33 return self.value(self.boundary_mask)
◆ chn_id()
def geo_id.GeometryIdentifier.chn_id |
( |
|
self | ) |
|
Definition at line 48 of file geo_id.py.
49 return self.value(self.channel_mask)
◆ lay_id()
def geo_id.GeometryIdentifier.lay_id |
( |
|
self | ) |
|
Definition at line 36 of file geo_id.py.
37 return self.value(self.layer_mask)
◆ sen_id()
def geo_id.GeometryIdentifier.sen_id |
( |
|
self | ) |
|
Definition at line 44 of file geo_id.py.
45 return self.value(self.sensitive_mask)
◆ value()
def geo_id.GeometryIdentifier.value |
( |
|
self, |
|
|
|
mask = None |
|
) |
| |
Definition at line 51 of file geo_id.py.
51 def value(self, mask = None):
52 if mask ==
None:
return self._value
53 return (self._value & mask) >> self._ffs(mask)
◆ vol_id()
def geo_id.GeometryIdentifier.vol_id |
( |
|
self | ) |
|
Definition at line 28 of file geo_id.py.
29 return self.value(self.volume_mask)
◆ _value
geo_id.GeometryIdentifier._value |
|
private |
◆ approach_mask
geo_id.GeometryIdentifier.approach_mask |
|
static |
◆ boundary_mask
geo_id.GeometryIdentifier.boundary_mask |
|
static |
◆ channel_mask
geo_id.GeometryIdentifier.channel_mask |
|
static |
◆ layer_mask
geo_id.GeometryIdentifier.layer_mask |
|
static |
◆ sensitive_mask
geo_id.GeometryIdentifier.sensitive_mask |
|
static |
◆ volume_mask
geo_id.GeometryIdentifier.volume_mask |
|
static |
The documentation for this class was generated from the following file: