GeometryConcept¶
Abstract geometry concept. |
|
|
|
Physical geometry object on which other physical MJOLNIR components are build. |
|
Kwargs: |
GeometryConcept Object and Methods¶
- class GeometryConcept.GeometryConcept(position=(0, 0, 0))[source]¶
Abstract geometry concept. Used as base class for Wedge and Instrument.
- plot(ax)[source]¶
- Parameters
ax (-) – 3D matplotlib axis into which plotting is performed
Warning
Method not incorporated, but acts as virtual method.
- property position¶
Kwargs:
Position (3vector): Position of object (default [0,0,0])
- Raises
- AttributeError –
- NotImplementedError –
>>> GenericConcept = GeometryConcept(position=(0.0,1.0,0.0)) >>> print(GenericConcept.position) (0.0,1.0,0.0)
GeometryObject Object and Methods¶
- class GeometryConcept.GeometryObject(position=(0.0, 0.0, 0.0), direction=(0, 0, 1))[source]¶
Physical geometry object on which other physical MJOLNIR components are build. All of the components needed to create an instrument should inherit from this class in order enforce a uniform interface.
Kwargs:
Position (3vector): Position of object (default [0,0,0])
Direction (3vector): Direction along which the object points (default [0,0,1])
- Raises
- AttributeError –
>>> GenericObject = GeometryObject(position=(0.0,1.0,0.0),direction=(1.0,0,0)) >>> print(GenericObject.position) (0.0,1.0,0.0)
- __init__(position=(0.0, 0.0, 0.0), direction=(0, 0, 1))[source]¶
Kwargs:
Position (3vector): Position of object (default [0,0,0])
Direction (3vector): Direction along which the object points (default [0,0,1])
- Raises
- AttributeError –
>>> GenericObject = GeometryObject(position=(0.0,1.0,0.0),direction=(1.0,0,0)) >>> print(GenericObject.position) (0.0,1.0,0.0)