Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.trapezium.chisel.condensers
Class Remove_material_node  view Remove_material_node download Remove_material_node.java

java.lang.Object
  extended bycom.trapezium.chisel.Optimizer
      extended bycom.trapezium.chisel.condensers.Remove_material_node
All Implemented Interfaces:
java.util.EventListener, com.trapezium.chisel.NodeLocatorListener, com.trapezium.chisel.OptionHolder

public class Remove_material_node
extends com.trapezium.chisel.Optimizer

Remove_material_node is a custom chisel designed by Johannes Johannsen This code was generated by Chisel Developer Kit version 1.0


Field Summary
(package private)  boolean remove_only_if_texture_available
           
(package private) static int REMOVE_ONLY_IF_TEXTURE_AVAILABLE_OPTION
           
 
Fields inherited from class com.trapezium.chisel.Optimizer
baseFileName, baseFilePath, dataSource
 
Constructor Summary
Remove_material_node()
           
 
Method Summary
 void attemptOptimization(com.trapezium.vrml.node.Node n)
          Called when node of specified type found in graph traversal
 int getNumberOptions()
          Get the number of options available for this chisel
 java.lang.Class getOptionClass(int offset)
          Get the data type of an option
 java.lang.Object getOptionConstraints(int offset)
          Get the constraints on an option
 java.lang.String getOptionLabel(int offset)
          Get the label for an option
 java.lang.Object getOptionValue(int offset)
          Get the value of an option
(package private)  boolean optimizationOK(com.trapezium.vrml.node.Node n)
          Check if Node should be modified.
 void optimize(com.trapezium.chisel.TokenPrinter tp, java.lang.Object param, int startTokenOffset, int endTokenOffset)
          Called to regenerate a portion of the text in a file.
 void reset()
          reset called just before chisel is run on a new file
 void setOptionValue(int offset, java.lang.Object value)
          Set the value of an option
 
Methods inherited from class com.trapezium.chisel.Optimizer
addAdditionalNode, attemptOptimization, booleanToOptionValue, eofTokens, getActionMessage, getAdditionalName, getNodeName, getNumberAdditionalNames, hasFinalCode, intToOptionValue, isDEFlistener, isDEFUSElistener, isPROTOlistener, isROUTElistener, nodeFound, optimizePossible, optionValueToBoolean, optionValueToInt, printFinalCode, printNumbers, replaceIndexFaceMultiple, replaceRange, replaceStartEnd, replaceValueNodeFaceMultiple, routeFound, setBaseFileName, setBaseFilePath, setDataSource, setNodeName, setOptionConstraints, setRangeReplacer, summarize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

REMOVE_ONLY_IF_TEXTURE_AVAILABLE_OPTION

static final int REMOVE_ONLY_IF_TEXTURE_AVAILABLE_OPTION
See Also:
Constant Field Values

remove_only_if_texture_available

boolean remove_only_if_texture_available
Constructor Detail

Remove_material_node

public Remove_material_node()
Method Detail

reset

public void reset()
reset called just before chisel is run on a new file


getNumberOptions

public int getNumberOptions()
Get the number of options available for this chisel


getOptionClass

public java.lang.Class getOptionClass(int offset)
Get the data type of an option


getOptionLabel

public java.lang.String getOptionLabel(int offset)
Get the label for an option


getOptionValue

public java.lang.Object getOptionValue(int offset)
Get the value of an option


setOptionValue

public void setOptionValue(int offset,
                           java.lang.Object value)
Set the value of an option


getOptionConstraints

public java.lang.Object getOptionConstraints(int offset)
Get the constraints on an option


optimizationOK

boolean optimizationOK(com.trapezium.vrml.node.Node n)
Check if Node should be modified. TODO: user defined


attemptOptimization

public void attemptOptimization(com.trapezium.vrml.node.Node n)
Called when node of specified type found in graph traversal


optimize

public void optimize(com.trapezium.chisel.TokenPrinter tp,
                     java.lang.Object param,
                     int startTokenOffset,
                     int endTokenOffset)
Called to regenerate a portion of the text in a file.