[Polycasso-commit] SF.net SVN: polycasso:[147] trunk/polycasso/src/com/mebigfatguy/polycasso/ Image
Brought to you by:
dbrosius
|
From: <dbr...@us...> - 2009-12-07 04:52:10
|
Revision: 147
http://polycasso.svn.sourceforge.net/polycasso/?rev=147&view=rev
Author: dbrosius
Date: 2009-12-07 04:52:03 +0000 (Mon, 07 Dec 2009)
Log Message:
-----------
add getBestData method
Modified Paths:
--------------
trunk/polycasso/src/com/mebigfatguy/polycasso/ImageGenerator.java
Modified: trunk/polycasso/src/com/mebigfatguy/polycasso/ImageGenerator.java
===================================================================
--- trunk/polycasso/src/com/mebigfatguy/polycasso/ImageGenerator.java 2009-12-07 04:47:57 UTC (rev 146)
+++ trunk/polycasso/src/com/mebigfatguy/polycasso/ImageGenerator.java 2009-12-07 04:52:03 UTC (rev 147)
@@ -79,6 +79,16 @@
}
/**
+ * returns the best polygon data that has been generated thus far
+ *
+ * @return the array of polygons that are to be rendered
+ */
+ public PolygonData[] getBestData() {
+ synchronized(lock) {
+ return bestData.clone();
+ }
+ }
+ /**
* allows interested parties to register to receive events when a new best image has been
* found.
*
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|