Download

Online

Gallery

Blog

  Index  | Recent Threads  | List Attachments  | Search
 Welcome Guest  |  Register  |  Login
Login Name  Password
 

Sweet Home 3D Forum



No member browsing this thread
Thread Status: Active
Total posts in this thread: 9
[ Jump to Last Post ]
Post new Thread
Author
Previous Thread This topic has been viewed 2653 times and has 8 replies Next Thread
rahul18bisht
Member



india
Joined: Mar 21, 2011
Post Count: 21
Status: Offline
Reply to this Post  Reply with Quote 
how to restrict user to create walls at 90 degrees only, not greater and less than 90 degree, only at 90 degrees

i am developing code for creating walls at 90 degress only, by the user, in which user can create walls at 90 degrees only, not greater and less than 90 degree, only at 90 degrees.??????????????

plz help and provide sample code for this
[Mar 21, 2011, 5:50:05 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
alied
Member
Member's Avatar

Argentina
Joined: Sep 8, 2009
Post Count: 40
Status: Offline
Reply to this Post  Reply with Quote 
Re: how to restrict user to create walls at 90 degrees only, not greater and less than 90 degree, only at 90 degrees

check PlanController.java and PlanComponent.java
change the behaviour in the state CREATE_WALL (I'm typing from memory, so the actual name might be different)
[Mar 21, 2011, 5:13:50 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
rahul18bisht
Member



india
Joined: Mar 21, 2011
Post Count: 21
Status: Offline
Reply to this Post  Reply with Quote 
Re: how to restrict user to create walls at 90 degrees only, not greater and less than 90 degree, only at 90 degrees

may you provide sample coding for above problem of walls at 90 degrees only plzzzz.?????????
[Mar 22, 2011, 6:17:34 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Puybaret
Expert
Member's Avatar

France
Joined: Nov 7, 2005
Post Count: 9178
Status: Offline
Reply to this Post  Reply with Quote 
Re: how to restrict user to create walls at 90 degrees only, not greater and less than 90 degree, only at 90 degrees

What is your project?
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D developer
[Mar 22, 2011, 6:41:24 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
rahul18bisht
Member



india
Joined: Mar 21, 2011
Post Count: 21
Status: Offline
Reply to this Post  Reply with Quote 
Re: how to restrict user to create walls at 90 degrees only, not greater and less than 90 degree, only at 90 degrees

in our project we have to calculate the cost of home built using sweethome3d existing public lincense code in our java swing project.
Problem is that we have to restrict user that he/she can create walls only at 90 degrees, neither greater nor less than 90 degrees, only at 90 degrees.
So , how to do that, or what changes to do in sweethome3d existing code.????????????????????
[Mar 22, 2011, 1:38:14 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Puybaret
Expert
Member's Avatar

France
Joined: Nov 7, 2005
Post Count: 9178
Status: Offline
Reply to this Post  Reply with Quote 
Re: how to restrict user to create walls at 90 degrees only, not greater and less than 90 degree, only at 90 degrees

I would be happy to help you further but first, I would like to be sure that you understand the spirit of open source projects:
Are you aware (or your client if you do some consulting service) that if you build a software derived from a GNU GPL project like Sweet Home 3D and want to distribute it, you will be obliged to redistribute it under the same license, making the source code of the modification publicly available?
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D developer
[Mar 22, 2011, 2:07:16 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
rahul18bisht
Member



india
Joined: Mar 21, 2011
Post Count: 21
Status: Offline
Reply to this Post  Reply with Quote 
Re: how to restrict user to create walls at 90 degrees only, not greater and less than 90 degree, only at 90 degrees

yeah !!! sure i am understand the spirit of open source project, and will make it publicly available, once we overcome from the problems, we are facing to create wall at 90 degrees only.

So, plz sir ,, could you explain or provide sample code what to do in order to create walls at 90 degrees only, not other than 90 degrees at floor plan area ???????????????
[Mar 26, 2011, 6:24:57 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Puybaret
Expert
Member's Avatar

France
Joined: Nov 7, 2005
Post Count: 9178
Status: Offline
Reply to this Post  Reply with Quote 
Re: how to restrict user to create walls at 90 degrees only, not greater and less than 90 degree, only at 90 degrees

What didn't you understand in alied answer?
To be more accurate, you would have to change WallDrawingState class implementation in PlanController class. There's one value to change there and you'll get a 90° step instead of a 15° step when magnetism is on!

By the way, stop flooding in the forum.
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D developer
[Mar 26, 2011, 8:38:24 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
rahul18bisht
Member



india
Joined: Mar 21, 2011
Post Count: 21
Status: Offline
Reply to this Post  Reply with Quote 
Re: how to restrict user to create walls at 90 degrees only, not greater and less than 90 degree, only at 90 degrees

thanks sir for answering !!!
[Mar 28, 2011, 7:29:26 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
[ Jump to Last Post ]
Show Printable Version of Thread  Post new Thread

    Get Sweet Home 3D at SourceForge.net. Fast, secure and Free Open Source software downloads
   
© Copyright 2006-2024 eTeks - All rights reserved