Layer Layer.hxx cadex/Drawing/Layer.hxx. More...
Public Member Functions | |
__init__ (self, *args) | |
Constructor. | |
SetName (self, theName) | |
Sets a layer name. | |
Name (self) | |
Returns a layer name. | |
SetUuid (self, theUuid) | |
Uuid (self) | |
IsVisible (self) | |
Returns true if the drawing layer is visible. | |
SetIsVisible (self, theIsVisible) | |
Sets Layer visibility status. | |
Add (self, theElement) | |
Adds element to the drawing layer. | |
Remove (self, theElement) | |
Removes element from the drawing layer. | |
Contains (self, theElement) | |
Returns true if element has already been added to the drawing layer. | |
Accept (self, theVisitor) | |
Accepts the element visitor. | |
![]() | |
Id (self) | |
Return unique identifier of public object. | |
IsNull (self) | |
Static Public Member Functions | |
CompareType (theObject) | |
Cast (theBase) | |
Layer Layer.hxx cadex/Drawing/Layer.hxx.
Provides logical grouping of Element objects.
Layers are commonly used to group objects in the drawing by function (e.g. walls, furniture, etc.), but in principle they can represent any type of virtual grouping. All objects in a layer share appearance, can be shown and hidden together. A drawing element can only belong to one layer.
The drawing layer holds an IsVisible() attribute, which is true by default.
manufacturingtoolkit.CadExMTK.Drawing_Layer.__init__ | ( | self, | |
* | args ) |
Constructor.
Creates not initialized object, for which IsNull() returns true.
Reimplemented from manufacturingtoolkit.CadExMTK.BaseObject.