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

Quick Search    Search Deep

com.trapezium.chisel.reducers
Class IFS_PolygonRemover  view IFS_PolygonRemover download IFS_PolygonRemover.java

java.lang.Object
  extended bycom.trapezium.chisel.Optimizer
      extended bycom.trapezium.chisel.reducers.IFS_SpaceStructureLoader
          extended bycom.trapezium.chisel.reducers.IFS_PolygonRemover
All Implemented Interfaces:
java.util.EventListener, com.trapezium.chisel.NodeLocatorListener, com.trapezium.chisel.OptionHolder

public class IFS_PolygonRemover
extends IFS_SpaceStructureLoader

This is a polygon reduction tool, removes smallest triangles in an IndexedFaceSet.


Nested Class Summary
 
Nested classes inherited from class com.trapezium.chisel.reducers.IFS_SpaceStructureLoader
IFS_SpaceStructureLoader.SpaceStructureParam
 
Field Summary
(package private) static int MINFACE
           
(package private)  int minNumberFaces
           
(package private) static int PERCENT
           
(package private)  int percentThreshold
           
(package private) static int PRESERVE_COLOR_BOUNDARIES
           
(package private)  boolean preserveColorBoundaries
           
 
Fields inherited from class com.trapezium.chisel.reducers.IFS_SpaceStructureLoader
coordToSpace, SS_Color, SS_ColorIndex, SS_Coordinate, SS_CoordIndex, SS_TexCoordIndex
 
Fields inherited from class com.trapezium.chisel.Optimizer
baseFileName, baseFilePath, dataSource
 
Constructor Summary
IFS_PolygonRemover()
           
 
Method Summary
 int getNumberOptions()
          Get the number of control options available for this chisel.
 java.lang.Class getOptionClass(int offset)
          Get the class for an option
 java.lang.Object getOptionConstraints(int offset)
          Get current option value
 java.lang.String getOptionLabel(int offset)
          Get a specific control option label
 java.lang.Object getOptionValue(int offset)
          Get current option value
 void replaceCoord(com.trapezium.chisel.TokenPrinter tp, com.trapezium.vrml.node.space.SpaceStructure ss, int startTokenOffset, int endTokenOffset)
           
 void setOptionValue(int offset, java.lang.Object value)
          Set option value
 
Methods inherited from class com.trapezium.chisel.reducers.IFS_SpaceStructureLoader
associate, attemptOptimization, getSpaceStructure, hasSpaceStructure, optimize, replaceColor, replaceColorIndex, replaceCoordIndex, replaceTexCoordIndex, setSpaceStructure
 
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, reset, 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

minNumberFaces

int minNumberFaces

percentThreshold

int percentThreshold

preserveColorBoundaries

boolean preserveColorBoundaries

MINFACE

static final int MINFACE
See Also:
Constant Field Values

PERCENT

static final int PERCENT
See Also:
Constant Field Values

PRESERVE_COLOR_BOUNDARIES

static final int PRESERVE_COLOR_BOUNDARIES
See Also:
Constant Field Values
Constructor Detail

IFS_PolygonRemover

public IFS_PolygonRemover()
Method Detail

replaceCoord

public void replaceCoord(com.trapezium.chisel.TokenPrinter tp,
                         com.trapezium.vrml.node.space.SpaceStructure ss,
                         int startTokenOffset,
                         int endTokenOffset)
Specified by:
replaceCoord in class IFS_SpaceStructureLoader

getNumberOptions

public int getNumberOptions()
Description copied from class: com.trapezium.chisel.Optimizer
Get the number of control options available for this chisel.


getOptionClass

public java.lang.Class getOptionClass(int offset)
Get the class for an option


getOptionLabel

public java.lang.String getOptionLabel(int offset)
Description copied from class: com.trapezium.chisel.Optimizer
Get a specific control option label


getOptionValue

public java.lang.Object getOptionValue(int offset)
Description copied from class: com.trapezium.chisel.Optimizer
Get current option value


setOptionValue

public void setOptionValue(int offset,
                           java.lang.Object value)
Description copied from class: com.trapezium.chisel.Optimizer
Set option value


getOptionConstraints

public java.lang.Object getOptionConstraints(int offset)
Description copied from class: com.trapezium.chisel.Optimizer
Get current option value