Ejemplo n.º 1
0
def manipulateXMLElement(target, xmlElement):
	"Manipulate the xml element."
	translateTetragrid = matrix.getTranslateTetragrid('', xmlElement)
	if translateTetragrid == None:
		print('Warning, translateTetragrid was None in translate so nothing will be done for:')
		print(xmlElement)
		return
	matrix.setAttributeDictionaryToMultipliedTetragrid(translateTetragrid, target)
Ejemplo n.º 2
0
def manipulateElementNode(elementNode, target):
	"Manipulate the xml element."
	translateTetragrid = matrix.getTranslateTetragrid(elementNode, '')
	if translateTetragrid == None:
		print('Warning, translateTetragrid was None in translate so nothing will be done for:')
		print(elementNode)
		return
	matrix.setAttributesToMultipliedTetragrid(target, translateTetragrid)
Ejemplo n.º 3
0
def manipulateElementNode(elementNode, target):
    "Manipulate the xml element."
    translateTetragrid = matrix.getTranslateTetragrid(elementNode, '')
    if translateTetragrid == None:
        print(
            'Warning, translateTetragrid was None in translate so nothing will be done for:'
        )
        print(elementNode)
        return
    matrix.setAttributesToMultipliedTetragrid(target, translateTetragrid)
Ejemplo n.º 4
0
def manipulateXMLElement(target, xmlElement):
    "Manipulate the xml element."
    translateTetragrid = matrix.getTranslateTetragrid('', xmlElement)
    if translateTetragrid == None:
        print(
            'Warning, translateTetragrid was None in translate so nothing will be done for:'
        )
        print(xmlElement)
        return
    matrix.setAttributeDictionaryToMultipliedTetragrid(translateTetragrid,
                                                       target)
Ejemplo n.º 5
0
	def __init__(self, elementNode):
		'Set defaults.'
		self.translateTetragrid = matrix.getTranslateTetragrid(elementNode, '')
Ejemplo n.º 6
0
 def __init__(self, elementNode):
     'Set defaults.'
     self.translateTetragrid = matrix.getTranslateTetragrid(elementNode, '')