PythoncadWishTraker item #2913581, was opened at 2009-12-13 09:13
Message generated for change (Settings changed) made by matteoboscolo
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=1334597&aid=2913581&group_id=263167
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
>Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: Missing an hide/unhide entity comand
Initial Comment:
As most of the cad pakage Pythoncad need a hide/uncover command ..
workaround is to work with layer and hide uncover the layer ..
but will be nice to have a specific command for all the entity and that it works in all level not only the current ..
Matteo
----------------------------------------------------------------------
Comment By: Gertwin (gertwin)
Date: 2009-12-14 21:08
Message:
Yes, I see, it is controlled by the self.__visible property of the Entity
class.
I can check this value when drawing the entities.
So what I need for this function is new viewport state in which hidden
entities are drawn.
Besides that I need to know the color, linestyle and lineweight for the
hidden and visible entities.
I think these colors can be defined in the program (not variable to the
user) there must only be a contrast between the two (gray for normal, white
for hidden?)
I will add a function to control the viewport state, changing the state
means a redraw in the new state.
The show() command:
1) change the state of the viewport, viewport draws all hidden entities.
2) user picks some hidden entities.
3) entity properties are updated
4) change the state of the viewport, viewport hides all hidden entities.
Same kind of function for locked entities?
----------------------------------------------------------------------
Comment By: Matteo Boscolo (matteoboscolo)
Date: 2009-12-14 18:57
Message:
the Entity class have already a variable and method that define this
state..
we have the show() and hide() method ...
so may be we just need a way to show visible entity or hidden entity ...
we need to decide how to do this command ...
my proposal is:
create a hide() comand that allow the use to select the entity and hide
it.
create a show() command that temporary show the hidden entity with a
different color. and allow the user to select only the hidden entity
changing the color..
----------------------------------------------------------------------
Comment By: Gertwin (gertwin)
Date: 2009-12-14 13:06
Message:
Maybe a solution is to add a set of common properties to the entities.
F.i. a variable "visible" (true/false)
Also a properties inspector window is needed to view or modify these
properties.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=1334597&aid=2913581&group_id=263167
|