Print at Dec 20, 2025, 9:04:59 AM

Posted by bandara at Jun 5, 2011, 8:06:59 PM
confused   how to get selected drawing to another swing interface
hi,
I'm a university student, i try to arrange the furniture inside a rectangular room, with use of 2D bin packing algorithms. Its not productively make sense (in real world), but in scope wise, it was approved to develop.
My project have more things to do, like:
*Check area selected larger than selected furniture inside room.
*Add human posture value to furniture before arrangement.
*Arrange them in new interface using 2D First Fit and Next Fit Decreasing Height algorithms.
*Show final arrangement in 3D.

It lot ha...:) but in this case i want to know how to get selected item, which we draw (which we select always rectangular area) to another swing interface.
I tried http://www.sweethome3d.com/pluginDeveloperGuide.jsp
as starting step, but its not work due to following line.
or (PieceOfFurniture piece : getHome().getFurniture()) {
it says there is no getHome() method.
But i called a new swing interface, after click on that created plugin menu.

I tried your API, since i'm not expert with API's i cudnt find good path yet.

Can any one guide me, in this case, like what are the materials or classes i should follow, and more detail on this. How i should start this.

Thankx.