Search found 40 matches

by alied
Fri Sep 23, 2011 2:54 am
Forum: Developers
Topic: Details about rendering engine
Replies: 1
Views: 4182

Re: Details about rendering engine

<r>Hi nasevz<br/>
You can find all your answers in PhotoRenderer.java[1]; specially the constructor
<CODE><s>[code]</s><i>
</i>public PhotoRenderer(Home, Object3DFactory, Quality)
<e>[/code]</e></CODE>
and
<CODE><s>[code]</s><i>
</i>public void render(BufferedImage, Camera, ImageObserver)
<e>[/code ...
by alied
Sat Aug 27, 2011 2:36 am
Forum: Developers
Topic: Place Furniture randomly
Replies: 5
Views: 3606

Re: Place Furniture randomly

Just out of curiosity: how do you plan to do it?
A plugin is the most straightforward way I can think of.
by alied
Thu Aug 25, 2011 1:56 am
Forum: Developers
Topic: Place Furniture randomly
Replies: 5
Views: 3606

Re: Place Furniture randomly

<t>Well, I think it is because that feature is not a standard one for home design (nor one most people would ask for). However, it is a chance for you to develop such a feature.<br/>
It should not be that difficult to develop a plugin which does that. One solution can be to randomly move the ...
by alied
Tue Jun 28, 2011 9:05 pm
Forum: Wishlist
Topic: Feature "Replace with..."
Replies: 5
Views: 4346

Re: Feature "Replace with..."

<t>In deed, if I remove a HomePieceOfFurniture from the Home, create a new one with the removed dimensions and coordinates (and maybe some other properties), and then add it to the Home (I can get the current Home from a Plugin, then get the selected items, remove and add) the rest would be a UI to ...
by alied
Thu Apr 21, 2011 6:50 pm
Forum: Developers
Topic: Plugin - Creating Objects with other Properties
Replies: 25
Views: 23790

Re: Plugin - Creating Objects with other Properties

<r>Still, there is something you can do without messing with the code.<br/>
in your Plugin constructor, get the Home and add a listener:
<CODE><s>[code]</s><i>
</i>getHome().addFurnitureListener(new CollectionListener<HomePieceOfFurniture>(){
void collectionChanged(CollectionEvent ...
by alied
Mon Apr 18, 2011 7:02 pm
Forum: New versions
Topic: Sweet Home 3D 3.2
Replies: 8
Views: 47816

Re: Sweet Home 3D 3.2

<r>Hallo Hans:<br/>
that should be a Ubuntu issue. I'm using Windows XP SP3, SH3D Version 3.2 Beta 4, Java version 1.7.0-ea, and everything works fine.<br/>
<I><s>[i]</s>There is a small bug in the grid: it doesn't show subdivisions<e>[/i]</e></I><br/>
Even zooming in and out up (or down) to its ...
by alied
Mon Apr 18, 2011 6:33 pm
Forum: Developers
Topic: Plugin - Creating Objects with other Properties
Replies: 25
Views: 23790

Re: Plugin - Creating Objects with other Properties

<r><I><s>[i]</s>how can I control it without changing the SH3D code?<e>[/i]</e></I><br/>
you can add a listener to your Home object[1], then create your custom PieceOfFurniture, delete the original, and add yours (remember either remove your listener before adding your object, or check before if it ...
by alied
Thu Apr 07, 2011 12:48 pm
Forum: Developers
Topic: Add furniture progamatically !!!
Replies: 7
Views: 4738

Re: Add furniture progamatically !!!

<r>some useful URLs:<br/>
HomePieceOfFurniture constructor[1]<br/>
Adding a HomePieceOfFurniture to a Home[2], [3]<br/>
[1]<URL url="http://www.sweethome3d.com/javadoc/com/eteks/sweethome3d/model/HomePieceOfFurniture.html#HomePieceOfFurniture%28com.eteks.sweethome3d.model.PieceOfFurniture%29"><LINK ...
by alied
Mon Apr 04, 2011 3:04 am
Forum: Developers
Topic: Add furniture progamatically !!!
Replies: 7
Views: 4738

Re: Add furniture progamatically !!!

<t>typing from memory:<br/>
Home myHome = new Home();<br/>
HomePieceofFurniture hpf = new HomePieceofFurniture(somePieceOfFurniture);<br/>
myHome.addFurniture(hpf);<br/>
<br/>
The point is, you need a instance of a class implementing PieceOfFurniture e.g. CatalogPieceOFFurniture, which you can get ...