Class of objects representing CAF slides.
|
__init__(self,
slideTemplate=' \n<svg baseProfile="full" id="body"\nheight="900"\nwidth="120 ... ,
rendererConfiguration={ ' ReferenceHeight ' : 900, ' ReferenceWidth ' : 1200, ' imageSize ' : ... ,
tracingConfiguration={ ' CacheLevel ' : 5, ' DetectUnlabelled ' : True, ' DumpDirectory ' : ' ... ,
slideNumber=0)
Class requires providing following properties in order to work
properly: |
|
|
|
__setitem__(self,
key,
newStructure)
Add structure to the slide. |
|
|
barGenericStructure
|
|
|
__delitem__(self,
key)
Remove structure denoted by provided structure name. |
|
|
[str, ...]
|
keys(self)
Returns:
names of structures in the slide |
|
|
[(str, barGenericStructure), ...]
|
items(self)
Returns:
(structure name, structure representation) pairs for every slide
structure |
|
|
[barGenericStructure, ...]
|
values(self)
Returns:
slide structures |
|
|
int
|
__len__(self)
Returns:
number of structures in the slide |
|
|
barTracedSlide
|
|
bool
|
has_key(self,
key)
Returns:
True if the requested structure is present in the slide;
False otherwise |
|
|
|
__addPath(self,
newPath)
Add a path to the slide. |
|
|
|
addPath(self,
newPathElement)
An alias of __addPath(newPathElement) |
|
|
{str : barPath, ...}
|
__generatePathIndex(self)
Returns:
path identifier to path representation mapping for all paths in the
slide |
|
|
|
|
[barGenericStructure, ...]
|
_getStructures(self)
Returns:
representations of all structures in the slide |
|
|
|
|
None
|
|
xml.dom.minidom.Document
|
|
barTracedSlide
|
recolor(self,
colorMapping)
Change colour of every slide structure according to the given colour
mapping. |
|
|
barTracedSlide
|
affineTransform(self,
M)
Transform the location (in SVG coordinate system) of every label and
path in the slide. |
|
|
|
__affineTransform(self,
M)
Transform the location (in SVG coordinate system) of every label and
path in the slide. |
|
|
{str : [barPath, ...], str : [barPath, ...]}
|
|
|
|
|
|
bool
|
__getCrispEdges(self)
Returns:
True if every structure representation in the slide has
the 'crispEdges' attribute equal True ;
False false. |
|
|
Inherited from barSlideRenderer :
renderSlide
Inherited from barVectorSlide :
Show ,
addLabel ,
alignToRefMatrix ,
deleteLabelByCaption ,
deleteLabelByID ,
getCommentLabels ,
getLabelByName ,
getRegularLabels ,
getSpotLabels ,
renameLabelByCaption ,
retypeLabelByCaption ,
srs2svg ,
svg2srs ,
updateMetadata
Inherited from barObject :
__str__ ,
getElementById ,
writeXMLtoFile
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__sizeof__ ,
__subclasshook__
|