An abstract class representing all types of vector slides - slides
that are based on SVG drawings.
|
__init__(self,
slideTemplate=' \n<svg baseProfile="full" id="body"\nheight="900"\nwidth="120 ... ,
slideNumber=0)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature |
|
|
[barStructureLabel, ...]
|
|
{str : barMetadataElement, ...}
|
_getMetadata(self)
Returns:
names of particular metadata to its representation mapping |
|
|
|
updateMetadata(self,
metadataList) |
|
|
|
_setMetadata(self,
metadataElement)
Add metadata to the slide. |
|
|
|
addLabel(self,
newLabel)
Add label to the slide. |
|
|
xml.dom.minidom.Document
|
|
|
|
|
|
|
alignToRefMatrix(self,
refTuple)
Transform slide in the way that current transformation matrix will be
equal to refTuple . |
|
|
|
Show(self,
binFile=' eog ' ,
tempFilename=' /tmp/barTemp.svg ' )
Display the slide in external SVG browser. |
|
|
|
getLabelByName(self,
labelCaption,
labelType=None,
oType=' id ' )
Find labels matching searching criteria (caption of the label and
optionally its type). |
|
|
|
retypeLabelByCaption(self,
labelCaption,
targetType)
Change class of representation of the requested label. |
|
|
|
|
|
deleteLabelByID(self,
labelID)
Remove from the slide label of requested ID. |
|
|
|
renameLabelByCaption(self,
oldCaption,
newCaption)
Change the caption of every label of requested caption. |
|
|
[labelType ]
|
|
|
__affineTransform(self,
M)
Transform the location of all paths in SVG coordinate system. |
|
|
barVectorSlide
|
affineTransform(self,
M)
Transform the location of all paths in SVG coordinate system. |
|
|
|
|
(float, float) or (float, float, float)
|
svg2srs(self,
svgCoord,
ndims=2)
Returns:
spatial coordinates corresponding to given svg coordinates |
|
|
(float, float)
|
srs2svg(self,
spatialCoord)
Returns:
SVG coordinates corresponding to provided spatial coordinates |
|
|
|
|
|
|
|
|
{str : barStructureLabel}
|
|
Inherited from barObject :
__str__ ,
getElementById ,
getXMLelement ,
writeXMLtoFile
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__sizeof__ ,
__subclasshook__
|
xml.dom.minidom.Document
|
_fromXML_ParseXML(cls,
svgDocument,
fixDrawing)
Part of XML parsing subroutine responsible for parsing given SVG
document into xml.dom.minidom object. |
|
|
|
_fromXML_BeforeCleanUpHook(cls,
slide,
svgdom)
Customization hook allowing the developers implementing additional
methods or features during parsing of XML document. |
|
|
|
_fromXML_AfterCleanUpHook(cls,
slide,
svgdom)
Customization hook allowing the developers implementing additional
methods or features during parsing of XML document. |
|
|
None
|
_fromXML_LoadMetadata(cls,
slide,
svgdom)
Part of XML parsing subroutine responsible for extracting metadata
from provided XML element corresponding to CAF slide. |
|
|
None
|
_fromXML_Cleanup(cls,
slide,
svgdom)
Part of XML parsing subroutine responsible for preparing XML template
for given slide. |
|
|