java.lang.Object
com.trapezium.chisel.Optimizer
com.trapezium.chisel.reorganizers.InlineCreator
com.trapezium.chisel.reorganizers.DEFToInline
- All Implemented Interfaces:
- java.util.EventListener, com.trapezium.chisel.NodeLocatorListener, com.trapezium.chisel.OptionHolder
- public class DEFToInline
- extends InlineCreator
Chisel to convert top level DEF nodes into Inlines
|
Constructor Summary |
DEFToInline()
Class constructor, indicate DEF nodes are to be converted |
| Methods inherited from class com.trapezium.chisel.Optimizer |
addAdditionalNode, attemptOptimization, booleanToOptionValue, eofTokens, getActionMessage, getAdditionalName, getNodeName, getNumberAdditionalNames, getNumberOptions, getOptionClass, getOptionConstraints, getOptionLabel, getOptionValue, hasFinalCode, intToOptionValue, isDEFUSElistener, isPROTOlistener, isROUTElistener, nodeFound, optimizePossible, optionValueToBoolean, optionValueToInt, printFinalCode, printNumbers, replaceIndexFaceMultiple, replaceRange, replaceStartEnd, replaceValueNodeFaceMultiple, reset, routeFound, setBaseFileName, setBaseFilePath, setDataSource, setNodeName, setOptionConstraints, setOptionValue, setRangeReplacer, summarize |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFToInline
public DEFToInline()
- Class constructor, indicate DEF nodes are to be converted
isDEFlistener
public boolean isDEFlistener()
- Override Optimizer base class template method to indicate this is to be
called for any DEF node.
attemptOptimization
public void attemptOptimization(com.trapezium.vrml.node.Node n)
- Only convert top level Nodes in a Scene
- Overrides:
attemptOptimization in class InlineCreator