示例#1
0
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)
示例#2
0
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
示例#3
0
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
示例#4
0
	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
示例#5
0
	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
示例#6
0
	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
示例#7
0
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
示例#8
0
文件: solid.py 项目: folksjos/RepG
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
示例#9
0
 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
示例#10
0
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)