Package fabmetheus_utilities :: Package geometry :: Package geometry_utilities :: Module evaluate
[hide private]
[frames] | no frames]

Module evaluate

source code

Boolean geometry utilities.


Date: $Date: 2008/02/05 $

Author: Enrique Perez (perez_enrique@yahoo.com)

License: GNU Affero General Public License http://www.gnu.org/licenses/agpl.html

Classes [hide private]
  BaseFunction
Class to get equation results.
  ClassFunction
Class to get class results.
  ClassObject
Class to hold class attributes and functions.
  Evaluator
Base evaluator class.
  EvaluatorAddition
Class to add two evaluators.
  EvaluatorEqual
Class to compare two evaluators.
  EvaluatorSubtraction
Class to subtract two evaluators.
  EvaluatorAnd
Class to compare two evaluators.
  EvaluatorAttribute
Class to handle an attribute.
  EvaluatorBracketCurly
Class to evaluate a string.
  EvaluatorBracketRound
Class to evaluate a string.
  EvaluatorBracketSquare
Class to evaluate a string.
  EvaluatorClass
Class evaluator class.
  EvaluatorComma
Class to join two evaluators.
  EvaluatorConcatenate
Class to join two evaluators.
  EvaluatorDictionary
Class to join two evaluators.
  EvaluatorDivision
Class to divide two evaluators.
  EvaluatorElement
Element evaluator class.
  EvaluatorFalse
Class to evaluate a string.
  EvaluatorFunction
Function evaluator class.
  EvaluatorFundamental
Fundamental evaluator class.
  EvaluatorGreaterEqual
Class to compare two evaluators.
  EvaluatorGreater
Class to compare two evaluators.
  EvaluatorLessEqual
Class to compare two evaluators.
  EvaluatorLess
Class to compare two evaluators.
  EvaluatorLocal
Class to get a local variable.
  EvaluatorModulo
Class to modulo two evaluators.
  EvaluatorMultiplication
Class to multiply two evaluators.
  EvaluatorNone
Class to evaluate None.
  EvaluatorNot
Class to compare two evaluators.
  EvaluatorNotEqual
Class to compare two evaluators.
  EvaluatorNumeric
Class to evaluate a string.
  EvaluatorOr
Class to compare two evaluators.
  EvaluatorPower
Class to power two evaluators.
  EvaluatorSelf
Class to handle self.
  EvaluatorTrue
Class to evaluate a string.
  EvaluatorValue
Class to evaluate a string.
  Function
Class to get equation results.
  FunctionVariable
Class to hold class functions and variable set.
  KeyValue
Class to hold a key value.
  ModuleXMLElement
Class to get the in attribute, the index name and the value name.
Functions [hide private]
 
addQuoteWord(evaluatorWords, word)
Add quote word and remainder if the word starts with a quote character or dollar sign, otherwise add the word.
source code
 
addPrefixDictionary(dictionary, keys, value)
Add prefixed key values to dictionary.
source code
 
addToPathsRecursively(paths, vector3Lists)
Add to vector3 paths recursively.
source code
 
addValueToEvaluatedDictionary(evaluatedDictionary, key, xmlElement)
Get the evaluated dictionary.
source code
 
addVector3ToXMLElement(key, vector3, xmlElement)
Add vector3 to xml element.
source code
 
compareExecutionOrderAscending(module, otherModule)
Get comparison in order to sort modules in ascending execution order.
source code
 
convertToPaths(dictionary)
Recursively convert any XMLElements to paths.
source code
 
convertToTransformedPaths(dictionary)
Recursively convert any XMLElements to paths.
source code
 
executeLeftOperations(evaluators, operationLevel)
Evaluate the expression value from the numeric and operation evaluators.
source code
 
executeNextEvaluatorArguments(evaluator, evaluators, evaluatorIndex, nextEvaluator)
Execute the nextEvaluator arguments.
source code
 
executePairOperations(evaluators, operationLevel)
Evaluate the expression value from the numeric and operation evaluators.
source code
 
getBracketEvaluators(bracketBeginIndex, bracketEndIndex, evaluators)
Get the bracket evaluators.
source code
 
getBracketsExist(evaluators)
Evaluate the expression value.
source code
 
getBracketValuesDeleteEvaluator(bracketBeginIndex, bracketEndIndex, evaluators)
Get the bracket values and delete the evaluator.
source code
 
getCapitalizedSuffixKey(prefix, suffix)
Get key with capitalized suffix.
source code
 
getDictionarySplitWords(dictionary, value)
Get split line for evaluators.
source code
 
getEndIndexConvertEquationValue(bracketEndIndex, evaluatorIndex, evaluators)
Get the bracket end index and convert the equation value evaluators into a string.
source code
 
getEvaluatedBoolean(defaultValue, key, xmlElement)
Get the evaluated boolean.
source code
 
getEvaluatedDictionaryByCopyKeys(copyKeys, xmlElement)
Get the evaluated dictionary by copyKeys.
source code
 
getEvaluatedDictionaryByEvaluationKeys(evaluationKeys, xmlElement)
Get the evaluated dictionary.
source code
 
getEvaluatedExpressionValue(value, xmlElement)
Evaluate the expression value.
source code
 
getEvaluatedExpressionValueBySplitLine(words, xmlElement)
Evaluate the expression value.
source code
 
getEvaluatedExpressionValueEvaluators(evaluators)
Evaluate the expression value from the numeric and operation evaluators.
source code
 
getEvaluatedFloat(defaultValue, key, xmlElement)
Get the evaluated float.
source code
 
getEvaluatedFloatByKeys(defaultValue, keys, xmlElement)
Get the evaluated float by keys.
source code
 
getEvaluatedInt(defaultValue, key, xmlElement)
Get the evaluated int.
source code
 
getEvaluatedIntByKeys(defaultValue, keys, xmlElement)
Get the evaluated int by keys.
source code
 
getEvaluatedLinkValue(word, xmlElement)
Get the evaluated link value.
source code
 
getEvaluatedString(defaultValue, key, xmlElement)
Get the evaluated string.
source code
 
getEvaluatedValue(defaultValue, key, xmlElement)
Get the evaluated value.
source code
 
getEvaluatedValueObliviously(key, xmlElement)
Get the evaluated value.
source code
 
getEvaluator(evaluators, nextWord, word, xmlElement)
Get the evaluator.
source code
 
getEvaluatorSplitWords(value)
Get split words for evaluators.
source code
 
getFloatListFromBracketedString(bracketedString)
Get list from a bracketed string.
source code
 
getFloatListListsByPaths(paths)
Get float lists by paths.
source code
 
getFromCreationEvaluatorPlugins(namePathDictionary, xmlElement)
Get the creation evaluator plugins if the xmlElement is from the creation evaluator.
source code
 
getKeys(repository)
Get keys for repository.
source code
 
getIntFromFloatString(value)
Get the int from the string.
source code
 
getIsBracketed(word)
Determine if the word is bracketed.
source code
 
getIsQuoted(word)
Determine if the word is quoted.
source code
 
getLocalAttributeValueString(key, valueString)
Get the local attribute value string with augmented assignment.
source code
 
getMatchingPlugins(namePathDictionary, xmlElement)
Get the plugins whose names are in the attribute dictionary.
source code
 
getNextChildIndex(xmlElement)
Get the next childNode index.
source code
 
getPathByKey(defaultPath, key, xmlElement)
Get path from prefix and xml element.
source code
 
getPathByList(vertexList)
Get the paths by list.
source code
 
getPathByPrefix(path, prefix, xmlElement)
Get path from prefix and xml element.
source code
 
getPathsByKey(defaultPaths, key, xmlElement)
Get paths by key.
source code
 
getPathsByLists(vertexLists)
Get paths by lists.
source code
 
getSidesBasedOnPrecision(radius, xmlElement)
Get the number of poygon sides.
source code
 
getSidesMinimumThreeBasedOnPrecision(radius, xmlElement)
Get the number of poygon sides, with a minimum of three.
source code
 
getSidesMinimumThreeBasedOnPrecisionSides(radius, xmlElement)
Get the number of poygon sides, with a minimum of three.
source code
 
getSplitDictionary()
Get split dictionary.
source code
 
getStartsWithCurlyEqualRoundSquare(word)
Determine if the word starts with round or square brackets.
source code
 
getTokenByNumber(number)
Get token by number.
source code
 
getTransformedPathByKey(defaultTransformedPath, key, xmlElement)
Get transformed path from prefix and xml element.
source code
 
getTransformedPathByPrefix(path, prefix, xmlElement)
Get path from prefix and xml element.
source code
 
getTransformedPathsByKey(defaultTransformedPaths, key, xmlElement)
Get transformed paths by key.
source code
 
getUniqueQuoteIndex(uniqueQuoteIndex, word)
Get uniqueQuoteIndex.
source code
 
getUniqueToken(word)
Get unique token.
source code
 
getVector3ByDictionary(dictionary, vector3)
Get vector3 by dictionary.
source code
 
getVector3ByDictionaryListValue(value, vector3)
Get vector3 by dictionary, list or value.
source code
 
getVector3ByFloatList(floatList, vector3)
Get vector3 by float list.
source code
 
getVector3ByMultiplierPrefix(multiplier, prefix, vector3, xmlElement)
Get vector3 from multiplier, prefix and xml element.
source code
 
getVector3ByMultiplierPrefixes(multiplier, prefixes, vector3, xmlElement)
Get vector3 from multiplier, prefixes and xml element.
source code
 
getVector3ByPrefix(defaultVector3, prefix, xmlElement)
Get vector3 from prefix and xml element.
source code
 
getVector3ByPrefixes(prefixes, vector3, xmlElement)
Get vector3 from prefixes and xml element.
source code
 
getVector3FromXMLElement(xmlElement)
Get vector3 from xml element.
source code
 
getVector3IfNone(vector3)
Get new vector3 if the original vector3 is none.
source code
 
getVector3ListsRecursively(floatLists)
Get vector3 lists recursively.
source code
 
getVisibleObjects(archivableObjects)
Get the visible objects.
source code
 
getXMLElementByKey(key, xmlElement)
Get the xml element by key.
source code
 
getXMLElementObject(evaluatedLinkValue)
Get XMLElementObject.
source code
 
getXMLElementsByKey(key, xmlElement)
Get the xml elements by key.
source code
 
processArchivable(archivableClass, xmlElement)
Get any new elements and process the archivable.
source code
 
processCondition(xmlElement)
Process the xml element condition.
source code
 
removeIdentifiersFromDictionary(dictionary)
Remove the identifier elements from a dictionary.
source code
 
setAttributeDictionaryByArguments(argumentNames, arguments, xmlElement)
Set the attribute dictionary to the arguments.
source code
 
setFunctionLocalDictionary(arguments, function)
Evaluate the function statement and delete the evaluators.
source code
 
setLocalAttribute(xmlElement)
Set the local attribute if any.
source code
Variables [hide private]
  __credits__ = 'Art of Illusion <http://www.artofillusion.org/>'
  globalModuleFunctionsDictionary = {}
  globalCreationDictionary = {}
  globalDictionaryOperatorBegin = {'||': EvaluatorConcatenate, '...
  globalModuleEvaluatorDictionary = {}
  globalFundamentalNameSet = set([])
  globalElementNameSet = set(['setting'])
  globalSplitDictionaryOperator = {'+': EvaluatorAddition, '{': ...
  globalSplitDictionary = getSplitDictionary()
  __package__ = 'fabmetheus_utilities.geometry.geometry_utilities'
Variables Details [hide private]

globalDictionaryOperatorBegin

Value:
{'||': EvaluatorConcatenate, '==': EvaluatorEqual, '>=': EvaluatorGrea\
terEqual, '<=': EvaluatorLessEqual, '!=': EvaluatorNotEqual, '**': Eva\
luatorPower}

globalSplitDictionaryOperator

Value:
{'+': EvaluatorAddition, '{': EvaluatorBracketCurly, '}': Evaluator, '\
(': EvaluatorBracketRound, ')': Evaluator, '[': EvaluatorBracketSquare\
, ']': Evaluator, ',': EvaluatorComma, ':': EvaluatorDictionary, '/': \
EvaluatorDivision, '>': EvaluatorGreater, '<': EvaluatorLess, '%': Eva\
luatorModulo, '*': EvaluatorMultiplication, '-': EvaluatorSubtraction}