|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.j3d.utils.geometry.StripifierStats
public class StripifierStats
This class collects statistics on the Stripifier. The statistics are cumulative over all calls to stripify() until clearData() is called.
Field Summary | |
---|---|
(package private) int[] |
counts
|
(package private) int |
maxStripLen
|
(package private) int |
minStripLen
|
(package private) boolean |
noData
|
(package private) int |
numFaces
|
(package private) int |
numStrips
|
(package private) int |
numVerts
|
(package private) long |
time
|
(package private) int |
totalTris
|
Constructor Summary | |
---|---|
StripifierStats()
|
Method Summary | |
---|---|
void |
clearData()
Clears the statistical data |
double |
getAvgNumVertsPerTri()
Returns the average number of vertices per triangle in the stripified data |
double |
getAvgStripLength()
Return the average length of the strips created by the stripifier |
int |
getMaxStripLength()
Returns the length in triangles of the longest strip created by the stripifier. |
int |
getMinStripLength()
Returns the length in triangles of the shortest strip created by the stripifier. |
int |
getNumOrigTris()
Returns the number of triangles in the original, un-stripified data. |
int |
getNumOrigVerts()
Returns the number of vertices in the original, un-stripified data |
int |
getNumStrips()
Returns the number of strips created by the stripifier. |
int |
getNumVerts()
Returns the number of vertices in the stripified data. |
int[] |
getStripLengthCounts()
Returns an array of length 14 that contains the number of strips of a given length created by the stripifier. |
long |
getTotalTime()
Returns the total time spent in the stripify() method |
int |
getTotalTris()
Returns the number of triangles in the stripified data. |
java.lang.String |
toString()
Returns a formated String that can be used to print out the Stripifier stats. |
(package private) void |
updateInfo(long ntime,
java.util.ArrayList strips,
int nNumFaces)
|
(package private) void |
updateInfo(long ntime,
int scLen,
int[] sc,
int nNumFaces)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
int numStrips
int numVerts
int minStripLen
int maxStripLen
int totalTris
int numFaces
long time
int[] counts
boolean noData
Constructor Detail |
---|
StripifierStats()
Method Detail |
---|
public int getNumOrigTris()
public int getNumOrigVerts()
public int getNumStrips()
public int getNumVerts()
public int getTotalTris()
public int getMinStripLength()
public int getMaxStripLength()
public double getAvgStripLength()
public double getAvgNumVertsPerTri()
public long getTotalTime()
public int[] getStripLengthCounts()
public java.lang.String toString()
toString
in class java.lang.Object
public void clearData()
void updateInfo(long ntime, java.util.ArrayList strips, int nNumFaces)
void updateInfo(long ntime, int scLen, int[] sc, int nNumFaces)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |