def getSolidMatchingPlugins(elementNode): 'Get solid plugins in the manipulation matrix, shapes & solids folders.' xmlProcessor = elementNode.getXMLProcessor() matchingPlugins = evaluate.getMatchingPlugins( elementNode, xmlProcessor.manipulationMatrixDictionary) return matchingPlugins + evaluate.getMatchingPlugins( elementNode, xmlProcessor.manipulationShapeDictionary)
def getGeometryOutputByManipulation(geometryOutput, xmlElement): 'Get geometryOutput manipulated by the plugins in the manipulation shapes & solids folders.' xmlProcessor = xmlElement.getXMLProcessor() # matchingPlugins = evaluate.getFromCreationEvaluatorPlugins(xmlProcessor.manipulationMatrixDictionary, xmlElement) matchingPlugins = evaluate.getMatchingPlugins(xmlProcessor.manipulationMatrixDictionary, xmlElement) matchingPlugins += evaluate.getMatchingPlugins(xmlProcessor.manipulationShapeDictionary, xmlElement) matchingPlugins.sort(evaluate.compareExecutionOrderAscending) for matchingPlugin in matchingPlugins: prefix = matchingPlugin.__name__.replace('_', '') + '.' geometryOutput = matchingPlugin.getManipulatedGeometryOutput(geometryOutput, prefix, xmlElement) return geometryOutput
def getGeometryOutputByManipulation(geometryOutput, xmlElement): 'Get geometryOutput manipulated by the plugins in the manipulation shapes & solids folders.' xmlProcessor = xmlElement.getXMLProcessor() # matchingPlugins = evaluate.getFromCreationEvaluatorPlugins(xmlProcessor.manipulationMatrixDictionary, xmlElement) matchingPlugins = evaluate.getMatchingPlugins( xmlProcessor.manipulationMatrixDictionary, xmlElement) matchingPlugins += evaluate.getMatchingPlugins( xmlProcessor.manipulationShapeDictionary, xmlElement) matchingPlugins.sort(evaluate.compareExecutionOrderAscending) for matchingPlugin in matchingPlugins: prefix = matchingPlugin.__name__.replace('_', '') + '.' geometryOutput = matchingPlugin.getManipulatedGeometryOutput( geometryOutput, prefix, xmlElement) return geometryOutput
def getManipulationPluginLoops(self, elementNode): 'Get loop manipulated by the plugins in the manipulation paths folder.' xmlProcessor = elementNode.getXMLProcessor() matchingPlugins = evaluate.getMatchingPlugins(elementNode, xmlProcessor.manipulationMatrixDictionary) matchingPlugins += evaluate.getMatchingPlugins(elementNode, xmlProcessor.manipulationPathDictionary) matchingPlugins += evaluate.getMatchingPlugins(elementNode, xmlProcessor.manipulationShapeDictionary) matchingPlugins.sort(evaluate.compareExecutionOrderAscending) loops = [self.loop] for matchingPlugin in matchingPlugins: matchingLoops = [] prefix = matchingPlugin.__name__.replace('_', '') + '.' for loop in loops: matchingLoops += matchingPlugin.getManipulatedPaths(self.close, elementNode, loop, prefix, self.sideLength) loops = matchingLoops return loops
def getManipulationPluginLoops(self, xmlElement): "Get loop manipulated by the plugins in the manipulation paths folder." xmlProcessor = xmlElement.getXMLProcessor() matchingPlugins = evaluate.getFromCreationEvaluatorPlugins(xmlProcessor.manipulationEvaluatorDictionary, xmlElement) matchingPlugins += evaluate.getMatchingPlugins(xmlProcessor.manipulationPathDictionary, xmlElement) matchingPlugins += evaluate.getMatchingPlugins(xmlProcessor.manipulationShapeDictionary, xmlElement) matchingPlugins.sort(evaluate.compareExecutionOrderAscending) loops = [self.loop] for matchingPlugin in matchingPlugins: matchingLoops = [] prefix = matchingPlugin.__name__ + '.' for loop in loops: matchingLoops += matchingPlugin.getManipulatedPaths(self.close, loop, prefix, self.sideLength, xmlElement) loops = matchingLoops return loops
def getGeometryOutputByManipulation( geometryOutput, xmlElement ): "Get geometryOutput manipulated by the plugins in the manipulation shapes & solids folders." xmlProcessor = xmlElement.getXMLProcessor() matchingPlugins = evaluate.getFromCreationEvaluatorPlugins( xmlProcessor.manipulationEvaluatorDictionary, xmlElement ) matchingPlugins += evaluate.getMatchingPlugins( xmlProcessor.manipulationShapeDictionary, xmlElement ) matchingPlugins.sort( evaluate.compareExecutionOrderAscending ) for matchingPlugin in matchingPlugins: geometryOutput = matchingPlugin.getManipulatedGeometryOutput( geometryOutput, xmlElement ) return geometryOutput
def getGeometryOutputByManipulation(geometryOutput, xmlElement): "Get geometryOutput manipulated by the plugins in the manipulation shapes & solids folders." xmlProcessor = xmlElement.getXMLProcessor() matchingPlugins = evaluate.getFromCreationEvaluatorPlugins(xmlProcessor.manipulationEvaluatorDictionary, xmlElement) matchingPlugins += evaluate.getMatchingPlugins(xmlProcessor.manipulationShapeDictionary, xmlElement) matchingPlugins.sort(evaluate.compareExecutionOrderAscending) for matchingPlugin in matchingPlugins: geometryOutput = matchingPlugin.getManipulatedGeometryOutput(geometryOutput, xmlElement) return geometryOutput
def getManipulationPluginLoops(self, xmlElement): "Get loop manipulated by the plugins in the manipulation paths folder." xmlProcessor = xmlElement.getXMLProcessor() matchingPlugins = evaluate.getFromCreationEvaluatorPlugins( xmlProcessor.manipulationEvaluatorDictionary, xmlElement) matchingPlugins += evaluate.getMatchingPlugins( xmlProcessor.manipulationPathDictionary, xmlElement) matchingPlugins += evaluate.getMatchingPlugins( xmlProcessor.manipulationShapeDictionary, xmlElement) matchingPlugins.sort(evaluate.compareExecutionOrderAscending) loops = [self.loop] for matchingPlugin in matchingPlugins: matchingLoops = [] prefix = matchingPlugin.__name__ + '.' for loop in loops: matchingLoops += matchingPlugin.getManipulatedPaths( self.close, loop, prefix, self.sideLength, xmlElement) loops = matchingLoops return loops
def getSolidMatchingPlugins(xmlElement): 'Get solid plugins in the manipulation matrix, shapes & solids folders.' xmlProcessor = xmlElement.getXMLProcessor() matchingPlugins = evaluate.getMatchingPlugins(xmlProcessor.manipulationMatrixDictionary, xmlElement) return matchingPlugins + evaluate.getMatchingPlugins(xmlProcessor.manipulationShapeDictionary, xmlElement)