|
|||||||||
| Home >> All >> com >> trapezium >> vrml >> [ visitor overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
com.trapezium.vrml.visitor
Class ComplexityData

java.lang.Objectcom.trapezium.vrml.visitor.ComplexityData
- public class ComplexityData
- extends java.lang.Object
Information related to complexity of a scene graph.
This is used to accumulate error and polygon count information during the processing of files. The ComplexityVisitor contains a ComplexityData element where it stores its information.
If several files are being processed, a single global ComplexityData object is used to contain the sum of their information. Each time a ComplexityVisitor completes its traversal of the scene graph, it updates the global ComplexityData with the data from that single traversal (see the "addInfo" method).
- Since:
- 1.0
- Version:
- 1.1, 14 Jan 1998
| Field Summary | |
(package private) int |
coneCount
|
(package private) int |
cylinderCount
|
(package private) int |
errorCount
|
(package private) int |
fileCount
|
(package private) java.util.Vector |
inlineFileList
|
(package private) int |
nonconformanceCount
|
(package private) int |
polygonCount
|
(package private) int |
sphereCount
|
(package private) int |
warningCount
|
| Constructor Summary | |
ComplexityData()
class constructor |
|
| Method Summary | |
void |
addInfo(ComplexityData cd)
add information from another complexity data object |
int |
getConeCount()
how many cones were found? |
int |
getCylinderCount()
how many cylinders were found? |
int |
getErrorCount()
how many errors were encountered? |
int |
getFileCount()
how many files were processed |
int |
getInlineCount()
how many inline files were found? |
int |
getNonconformanceCount()
get nonconformance count |
int |
getPolygonCount()
how many polygons were found? |
int |
getSphereCount()
how many spheres were found? |
int |
getWarningCount()
how many warnings were encountered? |
void |
incConeCount()
increment cone count |
void |
incCylinderCount()
increment cylinder count |
void |
incInline(java.lang.String inlineUrl)
add an inline file if not already in the list |
void |
incPolygonCount(int inc)
increment polygon count |
void |
incSphereCount()
increment sphere count |
void |
setErrorCount(int ec)
set the error count, comes from LintVisitor |
void |
setNonconformanceCount(int ncc)
Set the nonconformance count |
void |
setWarningCount(int wc)
set the warning count, comes from LintVisitor |
void |
summary(java.io.PrintStream ps)
print summary information to a PrintStream |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
polygonCount
int polygonCount
coneCount
int coneCount
sphereCount
int sphereCount
cylinderCount
int cylinderCount
fileCount
int fileCount
warningCount
int warningCount
errorCount
int errorCount
nonconformanceCount
int nonconformanceCount
inlineFileList
java.util.Vector inlineFileList
| Constructor Detail |
ComplexityData
public ComplexityData()
- class constructor
| Method Detail |
incInline
public void incInline(java.lang.String inlineUrl)
- add an inline file if not already in the list
getInlineCount
public int getInlineCount()
- how many inline files were found?
getFileCount
public int getFileCount()
- how many files were processed
incPolygonCount
public void incPolygonCount(int inc)
- increment polygon count
incConeCount
public void incConeCount()
- increment cone count
incSphereCount
public void incSphereCount()
- increment sphere count
incCylinderCount
public void incCylinderCount()
- increment cylinder count
setWarningCount
public void setWarningCount(int wc)
- set the warning count, comes from LintVisitor
setErrorCount
public void setErrorCount(int ec)
- set the error count, comes from LintVisitor
setNonconformanceCount
public void setNonconformanceCount(int ncc)
- Set the nonconformance count
getPolygonCount
public int getPolygonCount()
- how many polygons were found?
getConeCount
public int getConeCount()
- how many cones were found?
getSphereCount
public int getSphereCount()
- how many spheres were found?
getCylinderCount
public int getCylinderCount()
- how many cylinders were found?
getWarningCount
public int getWarningCount()
- how many warnings were encountered?
getErrorCount
public int getErrorCount()
- how many errors were encountered?
getNonconformanceCount
public int getNonconformanceCount()
- get nonconformance count
addInfo
public void addInfo(ComplexityData cd)
- add information from another complexity data object
summary
public void summary(java.io.PrintStream ps)
- print summary information to a PrintStream
|
|||||||||
| Home >> All >> com >> trapezium >> vrml >> [ visitor overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
com.trapezium.vrml.visitor.ComplexityData