<t>Sir, I got selected Room area too, use getSelectedItems.<br/>
<br/>
How can i get width of furniture which selected (as in same way we can get selected furniture width) but which is inside that selected room.<br/>
When i get those values separately, it gives answer. But as together, there's no ...
Search found 13 matches
- Thu Jul 14, 2011 10:38 am
- Forum: Developers
- Topic: how to get area of room
- Replies: 12
- Views: 7404
- Thu Jul 14, 2011 9:44 am
- Forum: Developers
- Topic: how to get area of room
- Replies: 12
- Views: 7404
Re: how to get area of room
<r>Sir, i got the area by this code<br/>
float area=0.0f;<br/>
for (Room piece : getHome().getRooms()) {<br/>
area=piece.getArea();<br/>
}<br/>
Tx for your support,i need more <E>:)</E><br/>
<br/>
Sir, this returns the area of last drawn room.<br/>
Can u tell me, how could i get area of any selected ...
float area=0.0f;<br/>
for (Room piece : getHome().getRooms()) {<br/>
area=piece.getArea();<br/>
}<br/>
Tx for your support,i need more <E>:)</E><br/>
<br/>
Sir, this returns the area of last drawn room.<br/>
Can u tell me, how could i get area of any selected ...
- Wed Jul 13, 2011 6:41 pm
- Forum: Developers
- Topic: how to get area of room
- Replies: 12
- Views: 7404
Re: how to get area of room
dear Puybaret Sir,
Please sir, i even don't know about "factory reference class".
But you know how to request the area of displayed Room.
Please sir, tell me how i should do it.
Please sir, i cant continue my project without this Room area value.
Please sir, i even don't know about "factory reference class".
But you know how to request the area of displayed Room.
Please sir, tell me how i should do it.
Please sir, i cant continue my project without this Room area value.
- Tue Jul 12, 2011 4:08 pm
- Forum: Developers
- Topic: how to get area of room
- Replies: 12
- Views: 7404
Re: how to get area of room
Sir, can you tell me factory reference class for
getArea() -> to get the area of the room
Because my supervisor told me that, there should be a class which reference the value for Room class.
Thanx.
getArea() -> to get the area of the room
Because my supervisor told me that, there should be a class which reference the value for Room class.
Thanx.
- Mon Jul 11, 2011 2:44 pm
- Forum: Developers
- Topic: how to get area of room
- Replies: 12
- Views: 7404
Re: how to get area of room
<t>Sir, do i have to use any actionListners to do it, or is there any other class/object that i have to create, before calling getArea.<br/>
I'm confusing, how that real values, come to method when calling it.<br/>
I "sout" getPoints using "for" loop, but it returned values which i call when create ...
I'm confusing, how that real values, come to method when calling it.<br/>
I "sout" getPoints using "for" loop, but it returned values which i call when create ...
- Mon Jul 11, 2011 3:21 am
- Forum: Developers
- Topic: how to get area of room
- Replies: 12
- Views: 7404
Re: how to get area of room
<r>yep, tx on that sir,<br/>
<br/>
But this not return the area of room that i draw in sweethome 3D, it return 16 always. Check this image link<br/>
<URL url="http://www.image-share.com/ijpg-768-257.html">http://www.image-share.com/ijpg-768-257.html</URL><br/>
<br/>
Although i draw 127.16 sized room ...
<br/>
But this not return the area of room that i draw in sweethome 3D, it return 16 always. Check this image link<br/>
<URL url="http://www.image-share.com/ijpg-768-257.html">http://www.image-share.com/ijpg-768-257.html</URL><br/>
<br/>
Although i draw 127.16 sized room ...
- Sun Jul 10, 2011 7:20 pm
- Forum: Developers
- Topic: how to get area of room
- Replies: 12
- Views: 7404
Re: how to get area of room
<t>float s1[][] = { { 0, 0 }, { 0, 4 }, { 4, 0 }, { 4, 4 } };<br/>
Room newRoom = new Room(s1);<br/>
float s2[][] = newRoom.getPoints(); <br/>
Room r1=new Room(s2);<br/>
area=r1.getArea();<br/>
JOptionPane.showMessageDialog(null, area);<br/>
<br/>
//this result 8.0 always, for all shapes of rooms ...
Room newRoom = new Room(s1);<br/>
float s2[][] = newRoom.getPoints(); <br/>
Room r1=new Room(s2);<br/>
area=r1.getArea();<br/>
JOptionPane.showMessageDialog(null, area);<br/>
<br/>
//this result 8.0 always, for all shapes of rooms ...
- Sun Jul 10, 2011 5:04 pm
- Forum: Developers
- Topic: how to get area of room
- Replies: 12
- Views: 7404
Re: how to get area of room
I got ur point, to get a area we need more than 3 points.
But i need to get the area of room which i draw in sweethome3D.
I still couldnt get that area.
Can you please give a code to get the area of room. Please sir, with out that room area i can't continue my project.
But i need to get the area of room which i draw in sweethome3D.
I still couldnt get that area.
Can you please give a code to get the area of room. Please sir, with out that room area i can't continue my project.
- Thu Jun 23, 2011 2:24 pm
- Forum: Developers
- Topic: how to get area of room
- Replies: 12
- Views: 7404
how to get area of room
<r>Hi I saw this topic in earlier too, but our experts answer was get a tape and measure <E>:)</E><br/>
<br/>
But i really need to get the area of room to call in my plugin.<br/>
I know there is a method getArea() in Room class, but it got constructor of float [][]. <br/>
i.e. Room(float[][] points ...
<br/>
But i really need to get the area of room to call in my plugin.<br/>
I know there is a method getArea() in Room class, but it got constructor of float [][]. <br/>
i.e. Room(float[][] points ...
- Tue Jun 21, 2011 7:40 pm
- Forum: Developers
- Topic: how to get selected drawing to another swing interface
- Replies: 5
- Views: 4153
Re: how to get selected drawing to another swing interface
getArea() returns a float, not float array.
So, how can i get it?
So, how can i get it?