Package bar :: Module base :: Class barTransfMatrixMetadataElement
[hide private]
[frames] | no frames]

Class barTransfMatrixMetadataElement


Class of objects representing stereotectical coordinates transformation matrix.

Nested Classes [hide private]
Instance Methods [hide private]
 
__init__(self, transformationMatrixTuple)
Transformation matrix coefficients (a, b, c, d) that transforms image coordinate to stereotaxic (or other 'real') in following way: x'=a*x+b, y'=c*y+d.
str
_getContentString(self)
Generate string representation of content of metadata.

Inherited from barMetadataElement: getMetadataTuple, getXMLelement

Inherited from barAtlasSlideElement: affineTransform

Inherited from barAtlasSlideElement (private): _getTextNodeXMLelement

Inherited from barObject: __str__, getElementById, writeXMLtoFile

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __subclasshook__

Class Methods [hide private]

Inherited from barMetadataElement: fromXML

Static Methods [hide private]

Inherited from barObject (private): _getAttributesDict

Class Variables [hide private]

Inherited from barMetadataElement (private): _elementName

Inherited from barAtlasSlideElement (private): _attributes, _attributesNS

Properties [hide private]

Inherited from barMetadataElement: name, value

Inherited from object: __class__

Method Details [hide private]

__init__(self, transformationMatrixTuple)
(Constructor)

 

Transformation matrix coefficients (a, b, c, d) that transforms image coordinate to stereotaxic (or other 'real') in following way: x'=a*x+b, y'=c*y+d.

Parameters:
  • transformationMatrixTuple ((float, float, float, float) or ((float, float), (float, float)) - drawing to stereotaxic coordinate system transformation matrix
Overrides: object.__init__

_getContentString(self)

 

Generate string representation of content of metadata. Such representation may by used in XML element as is required because metadata content may be not only string but also list, dictionary, etc.

Default string represenataion is str() but, in general, it is overided by subclases.

Returns: str
string representation of metadata content
Overrides: barMetadataElement._getContentString
(inherited documentation)