This configurator allows to define a projection axis.
"""
'''
This configurator allows to define a projector for atomic coordinates.
Planar and axial projections are supported by MDANSE while a null projector, that does not project the coordinates, has been introduced
in MDANSE.Framework.Projectors.IProjector.IProjector for the sake of homogeneity.
'''
type='projection'
_default=None
defconfigure(self,configuration,value):
'''
Configure a projector.
:param configuration: the current configuration.
:type configuration: a MDANSE.Framework.Configurable.Configurable object
:param value: the input projector definition. It must be a 2-tuple whose 1st element if the name of the projector (one of 'null','axial' or 'planar')
and the 2nd element the parameters for hte selected projector (None for 'null', a Scientific.Vector for 'axial' and a list of two Scientific.Vector for
'planar').
a list of file formats.
:type value: 2-tuple
'''
ifvalueisNone:
value=('null',None)
...
...
@@ -67,5 +81,11 @@ class ProjectionConfigurator(IConfigurator):
self["axis"]=self["projector"].axis
defget_information(self):
'''
Returns string information about this configurator.