Example #1
0
def processXMLElement(xmlElement):
	"Process the xml element."
	geometryOutput = getGeometryOutput(xmlElement)
	if geometryOutput.__class__ == list:
		lineation.processXMLElementByGeometry(geometryOutput, xmlElement)
	else:
		xmlElement.getXMLProcessor().convertXMLElement(geometryOutput, xmlElement)
		xmlElement.getXMLProcessor().processXMLElement(xmlElement)
Example #2
0
def processXMLElement(xmlElement):
	"Process the xml element."
	geometryOutput = getGeometryOutput(None, xmlElement)
	if geometryOutput.__class__ == list:
		lineation.processXMLElementByGeometry(geometryOutput, xmlElement)
	else:
		xmlElement.getXMLProcessor().convertXMLElement(geometryOutput, xmlElement)
		xmlElement.getXMLProcessor().processXMLElement(xmlElement)
Example #3
0
def processXMLElementByFunction(manipulationFunction, xmlElement, xmlProcessor):
	"Process the xml element."
	if 'target' not in xmlElement.attributeDictionary:
		print('Warning, there was no target in processXMLElementByFunction in solid for:')
		print(xmlElement)
		return None
	target = evaluate.getEvaluatedLinkValue(str(xmlElement.attributeDictionary['target']).strip(), xmlElement)
	if target.__class__.__name__ == 'XMLElement':
		manipulationFunction(target, xmlElement, xmlProcessor)
		return
	lineation.processXMLElementByGeometry(target, xmlElement, xmlProcessor)
	manipulationFunction(xmlElement, xmlElement, xmlProcessor)
Example #4
0
def processXMLElementByFunction(manipulationFunction, xmlElement):
    "Process the xml element."
    if "target" not in xmlElement.attributeDictionary:
        print("Warning, there was no target in processXMLElementByFunction in solid for:")
        print(xmlElement)
        return
    target = evaluate.getEvaluatedLinkValue(str(xmlElement.attributeDictionary["target"]).strip(), xmlElement)
    if target.__class__.__name__ == "XMLElement":
        manipulationFunction(target, xmlElement)
        return
    lineation.processXMLElementByGeometry(target, xmlElement)
    manipulationFunction(xmlElement, xmlElement)
Example #5
0
def processXMLElementByFunction(manipulationFunction, xmlElement):
	"Process the xml element."
	if 'target' not in xmlElement.attributeDictionary:
		print('Warning, there was no target in processXMLElementByFunction in solid for:')
		print(xmlElement)
		return
	target = evaluate.getEvaluatedLinkValue(str(xmlElement.attributeDictionary['target']).strip(), xmlElement)
	if target.__class__.__name__ == 'XMLElement':
		manipulationFunction(target, xmlElement)
		return
	lineation.processXMLElementByGeometry(target, xmlElement)
	manipulationFunction(xmlElement, xmlElement)
Example #6
0
def processXMLElement(xmlElement):
    "Process the xml element."
    lineation.processXMLElementByGeometry(getGeometryOutput(None, xmlElement),
                                          xmlElement)
Example #7
0
def processXMLElement(xmlElement):
	"Process the xml element."
	lineation.processXMLElementByGeometry(getGeometryOutput(xmlElement), xmlElement)