def parseSVGByXMLElement(self, xmlElement): "Parse SVG by xmlElement." self.sliceDictionary = svg_writer.getSliceDictionary(xmlElement) self.yAxisPointingUpward = euclidean.getBooleanFromDictionary(False, self.sliceDictionary, 'yAxisPointingUpward') self.processXMLElement(xmlElement) if not self.yAxisPointingUpward: for rotatedLoopLayer in self.rotatedLoopLayers: self.flipDirectLayer(rotatedLoopLayer)
def parseSVGByElementNode(self, elementNode): "Parse SVG by elementNode." self.sliceDictionary = svg_writer.getSliceDictionary(elementNode) self.yAxisPointingUpward = euclidean.getBooleanFromDictionary(False, self.sliceDictionary, 'yAxisPointingUpward') self.processElementNode(elementNode) if not self.yAxisPointingUpward: for loopLayer in self.loopLayers: self.flipDirectLayer(loopLayer)
def parseSVGByXMLElement(self, xmlElement): "Parse SVG by xmlElement." self.sliceDictionary = svg_writer.getSliceDictionary(xmlElement) self.yAxisPointingUpward = euclidean.getBooleanFromDictionary( False, self.sliceDictionary, 'yAxisPointingUpward') self.processXMLElement(xmlElement) if not self.yAxisPointingUpward: for rotatedLoopLayer in self.rotatedLoopLayers: self.flipDirectLayer(rotatedLoopLayer)
def getVisible(self): "Get visible." return euclidean.getBooleanFromDictionary(self.getAttributeDictionary(), 'visible')
def getVisible(self): "Get visible." return euclidean.getBooleanFromDictionary(True, self.getAttributes(), 'visible')
def getVisible(self): "Get visible." return euclidean.getBooleanFromDictionary(True, self.getAttributes(), "visible")