Class of objects describing enclosed path denoting particular area in
the slice.
Note that 'path' does not mean 'structure' because structure may
consist of many paths.
|
__init__(self,
pathID,
pathDefinition,
fillColor,
properties=None,
clearPathDef=False)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature |
|
|
str
|
|
|
_setPathDefinition(self,
newPathDefinition,
clearPathDef=False)
Assign the path definition. |
|
|
bool
|
_validatePath(self,
pathDefinition)
Validate SVG path definition: Path definition has to contain at least
three points and 'closepath'command in order to be considered as
valid path. |
|
|
int
|
|
|
_setGrowlevel(self,
Growlevel=None)
Set gap filling level for the path. |
|
|
|
|
|
_setID(self,
newPathID)
Assign the identifier of the path. |
|
|
str
|
_getID(self)
Returns:
SVG path identifier |
|
|
str
|
|
|
|
(int, int, int, int)
|
|
|
_setBbox(self,
newBBox)
Raise ValueError |
|
|
str
|
_getColor(self)
Returns:
fill colour of the path in hexadecimal represenatation |
|
|
|
_setColor(self,
newColor)
Assign the fill colour of the path. |
|
|
str
|
|
str
|
|
|
_setCorrespondingLabelID(self,
newID)
Raise ValueError. |
|
|
|
_rename(self,
newStructName)
Change the structure corresponding to the path. |
|
|
|
__affineTransform(self,
M)
Transform the location of the path in SVG coordinate system. |
|
|
|
|
|
__setCrispEdges(self,
boolValue)
Set the value of 'shape-rendering' attribute. |
|
|
bool
|
__getCrispEdges(self)
Returns:
True when the value of 'shape-rendering' attribute is 'crisp-edges',
False otherwise. |
|
|
Inherited from barAtlasSlideElement :
getXMLelement
Inherited from barObject :
__str__ ,
getElementById ,
writeXMLtoFile
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__sizeof__ ,
__subclasshook__
|
str
|
id
The path identifier.
|
string
|
type
Attribute holding type of the feature delineated by given path.
|
int
|
growlevel
Gap filling level for the path.
|
str
|
pathDef
The SVG path definition.
|
(int, int, int, int)
|
boundingBox
The path bounding box description (x1, y1, x2, y2), where x1, y2 are
coordinates of top-left corner of bounding box and x2, y2 are
coordinates of bottom-right corner of bounding box.
|
(int, int, int, int)
|
bbx
An alias for boundingBox property.
|
str
|
color
The fill colour of the path in hexadecimal represenatation.
|
str
|
structName
Name of the structure corresponding to the path.
|
str
|
relLabelID
The identifier of the label corresponding to the path.
|
bool
|
crispEdges
Property related to the 'shape-rendering' SVG path attribute.
|
Inherited from object :
__class__
|