Public Member Functions

def addObject (self, obj, child)
 
def execute (self, obj)
 
def onDocumentRestored (self, obj)
 
def set_properties (self, obj)
 

Public Attributes

 Object
 
 Type
 

Detailed Description

The Layer object.

This class is normally used to extend a base `App::FeaturePython` object.

Member Function Documentation

◆ addObject()

def draftobjects.layer.Layer.addObject (   self,
  obj,
  child 
)
Add an object to this object if not in the Group property.

Referenced by ArchPanel.NestTaskPanel.getContainer(), and ArchPanel.NestTaskPanel.getShapes().

◆ execute()

◆ onDocumentRestored()

◆ set_properties()

def draftobjects.layer.Layer.set_properties (   self,
  obj 
)
Set properties only if they don't exist.

References draftutils.translate.QT_TRANSLATE_NOOP, Data::ComplexGeoDataPy.Type, App::DocumentObjectExtensionPy.Type, App::DocumentObjectGroupPy.Type, App::DocumentObjectPy.Type, App::DocumentPy.Type, App::ExtensionContainerPy.Type, App::ExtensionPy.Type, App::GeoFeatureGroupExtensionPy.Type, App::GeoFeaturePy.Type, App::GroupExtensionPy.Type, App::LinkBaseExtensionPy.Type, App::MaterialPy.Type, App::OriginGroupExtensionPy.Type, App::PartPy.Type, App::PropertyContainerPy.Type, Base::AxisPy.Type, Base::BaseClassPy.Type, Base::BoundBoxPy.Type, Base::CoordinateSystemPy.Type, Base::MatrixPy.Type, Base::PersistencePy.Type, Base::PlacementPy.Type, Base::QuantityPy.Type, Base::RotationPy.Type, Base::TypePy.Type, Base::UnitPy.Type, Base::VectorPy.Type, Gui::AxisOriginPy.Type, Gui::CommandPy.Type, Gui::DocumentPy.Type, Gui::LinkViewPy.Type, Gui::PythonWorkbenchPy.Type, Gui::SelectionObjectPy.Type, Gui::ViewProviderDocumentObjectPy.Type, Gui::ViewProviderExtensionPy.Type, Gui::ViewProviderLinkPy.Type, Gui::ViewProviderPy.Type, Gui::WorkbenchPy.Type, Fem::FemMeshPy.Type, Fem::FemPostPipelinePy.Type, FemGui::ViewProviderFemMeshPy.Type, Import::StepShapePy.Type, Measure::MeasurementPy.Type, Mesh::FacetPy.Type, Mesh::MeshFeaturePy.Type, Mesh::MeshPointPy.Type, Mesh::MeshPy.Type, MeshGui::ViewProviderMeshPy.Type, Part::ArcOfCirclePy.Type, Part::ArcOfConicPy.Type, Part::ArcOfEllipsePy.Type, Part::ArcOfHyperbolaPy.Type, Part::ArcOfParabolaPy.Type, Part::ArcPy.Type, Attacher::AttachEnginePy.Type, Part::AttachExtensionPy.Type, Part::BezierCurvePy.Type, Part::BezierSurfacePy.Type, Part::BodyBasePy.Type, Part::BoundedCurvePy.Type, Part::MakePrismPy.Type, Part::BRepOffsetAPI_MakeFillingPy.Type, Part::BRepOffsetAPI_MakePipeShellPy.Type, Part::BSplineCurvePy.Type, Part::BSplineSurfacePy.Type, Part::CirclePy.Type, Part::ConePy.Type, Part::ConicPy.Type, Part::CylinderPy.Type, Part::EllipsePy.Type, Part::ArcOfCircle2dPy.Type, Part::ArcOfConic2dPy.Type, Part::ArcOfEllipse2dPy.Type, Part::ArcOfHyperbola2dPy.Type, Part::ArcOfParabola2dPy.Type, Part::BezierCurve2dPy.Type, Part::BSplineCurve2dPy.Type, Part::Circle2dPy.Type, Part::Conic2dPy.Type, Part::Curve2dPy.Type, Part::Ellipse2dPy.Type, Part::Geometry2dPy.Type, Part::Hyperbola2dPy.Type, Part::Line2dPy.Type, Part::Line2dSegmentPy.Type, Part::OffsetCurve2dPy.Type, Part::Parabola2dPy.Type, Part::GeometryBoolExtensionPy.Type, Part::GeometryCurvePy.Type, Part::GeometryDoubleExtensionPy.Type, Part::GeometryExtensionPy.Type, Part::GeometryIntExtensionPy.Type, Part::GeometryPy.Type, Part::GeometryStringExtensionPy.Type, Part::GeometrySurfacePy.Type, Part::BuildPlateSurfacePy.Type, Part::CurveConstraintPy.Type, Part::PointConstraintPy.Type, Part::HyperbolaPy.Type, Part::LinePy.Type, Part::LineSegmentPy.Type, Part::OffsetCurvePy.Type, Part::OffsetSurfacePy.Type, Part::ParabolaPy.Type, Part::Part2DObjectPy.Type, Part::PartFeaturePy.Type, Part::PlanePy.Type, Part::PlateSurfacePy.Type, Part::PointPy.Type, Part::RectangularTrimmedSurfacePy.Type, Part::UnifySameDomainPy.Type, Part::SpherePy.Type, Part::SurfaceOfExtrusionPy.Type, Part::SurfaceOfRevolutionPy.Type, Part::TopoShapeCompoundPy.Type, Part::TopoShapeCompSolidPy.Type, Part::TopoShapeEdgePy.Type, Part::TopoShapeFacePy.Type, Part::TopoShapePy.Type, Part::TopoShapeShellPy.Type, Part::TopoShapeSolidPy.Type, Part::TopoShapeVertexPy.Type, Part::TopoShapeWirePy.Type, Part::ToroidPy.Type, Part::TrimmedCurvePy.Type, PartDesign::BodyPy.Type, PartDesign::FeaturePy.Type, PartDesignGui::ViewProviderPy.Type, Path::AreaPy.Type, Path::CommandPy.Type, Path::FeatureAreaPy.Type, Path::FeaturePathCompoundPy.Type, Path::PathPy.Type, Path::ToolPy.Type, Path::TooltablePy.Type, Path::VoronoiCellPy.Type, Path::VoronoiEdgePy.Type, Path::VoronoiPy.Type, Path::VoronoiVertexPy.Type, PathSimulator::PathSimPy.Type, Points::PointsPy.Type, Robot::Robot6AxisPy.Type, Robot::RobotObjectPy.Type, Robot::TrajectoryPy.Type, Robot::WaypointPy.Type, Sketcher::ConstraintPy.Type, Sketcher::ExternalGeometryExtensionPy.Type, Sketcher::ExternalGeometryFacadePy.Type, Sketcher::GeometryFacadePy.Type, Sketcher::SketchGeometryExtensionPy.Type, Sketcher::SketchObjectPy.Type, Sketcher::SketchObjectSFPy.Type, Sketcher::SketchPy.Type, Spreadsheet::PropertyColumnWidthsPy.Type, Spreadsheet::PropertyRowHeightsPy.Type, Spreadsheet::PropertySheetPy.Type, Spreadsheet::SheetPy.Type, TechDraw::CenterLinePy.Type, TechDraw::CosmeticEdgePy.Type, TechDraw::CosmeticExtensionPy.Type, TechDraw::CosmeticVertexPy.Type, TechDraw::DrawGeomHatchPy.Type, TechDraw::DrawHatchPy.Type, TechDraw::DrawLeaderLinePy.Type, TechDraw::DrawPagePy.Type, TechDraw::DrawParametricTemplatePy.Type, TechDraw::DrawProjGroupItemPy.Type, TechDraw::DrawProjGroupPy.Type, TechDraw::DrawRichAnnoPy.Type, TechDraw::DrawSVGTemplatePy.Type, TechDraw::DrawTemplatePy.Type, TechDraw::DrawTilePy.Type, TechDraw::DrawTileWeldPy.Type, TechDraw::DrawViewAnnotationPy.Type, TechDraw::DrawViewClipPy.Type, TechDraw::DrawViewCollectionPy.Type, TechDraw::DrawViewDimensionPy.Type, TechDraw::DrawViewDimExtentPy.Type, TechDraw::DrawViewPartPy.Type, TechDraw::DrawViewPy.Type, TechDraw::DrawViewSymbolPy.Type, TechDraw::DrawWeldSymbolPy.Type, TechDraw::GeomFormatPy.Type, App::FeaturePythonPyT< FeaturePyT >.Type, App::Part.Type, App::PropertyData::PropertySpec.Type, Base::PyObjectBase.Type, Base::Type.Type(), Py::Type.Type(), Gui::SelectionChanges.Type, ArchAxis._Axis.Type, ArchAxis._AxisSystem.Type, ArchAxis.ArchGrid.Type, ArchBuilding._Building.Type, ArchBuildingPart.BuildingPart.Type, ArchComponent.Component.Type, ArchEquipment._Equipment.Type, ArchFence._Fence.Type, ArchFloor._Floor.Type, ArchFrame._Frame.Type, ArchMaterial._ArchMaterialContainer.Type, ArchMaterial._ArchMaterial.Type, ArchMaterial._ArchMultiMaterial.Type, ArchPanel._Panel.Type, ArchPanel.PanelView.Type, ArchPanel.PanelCut.Type, ArchPanel.PanelSheet.Type, ArchPipe._ArchPipe.Type, ArchPipe._ArchPipeConnector.Type, ArchPrecast._Precast.Type, ArchProject._Project.Type, ArchRebar._Rebar.Type, ArchReference.ArchReference.Type, ArchRoof._Roof.Type, ArchSchedule._ArchSchedule.Type, ArchSectionPlane._SectionPlane.Type, ArchSectionPlane._ArchDrawingView.Type, ArchSite._Site.Type, ArchSpace._Space.Type, ArchStairs._Stairs.Type, ArchStructure._Structure.Type, ArchStructure._StructuralSystem.Type, ArchTruss.Truss.Type, ArchWall._Wall.Type, ArchWindow._Window.Type, draftobjects.base.DraftObject.Type, draftobjects.draft_annotation.DraftAnnotation.Type, draftobjects.layer.Layer.Type, draftobjects.layer.LayerContainer.Type, draftobjects.wpproxy.WorkingPlaneProxy.Type, femobjects.constant_vacuumpermittivity.ConstantVacuumPermittivity.Type, femobjects.constraint_bodyheatsource.ConstraintBodyHeatSource.Type, femobjects.constraint_electrostaticpotential.ConstraintElectrostaticPotential.Type, femobjects.constraint_flowvelocity.ConstraintFlowVelocity.Type, femobjects.constraint_initialflowvelocity.ConstraintInitialFlowVelocity.Type, femobjects.constraint_sectionprint.ConstraintSectionPrint.Type, femobjects.constraint_selfweight.ConstraintSelfWeight.Type, femobjects.constraint_tie.ConstraintTie.Type, femobjects.element_fluid1D.ElementFluid1D.Type, femobjects.element_geometry1D.ElementGeometry1D.Type, femobjects.element_geometry2D.ElementGeometry2D.Type, femobjects.element_rotation1D.ElementRotation1D.Type, femobjects.material_common.MaterialCommon.Type, femobjects.material_mechanicalnonlinear.MaterialMechanicalNonlinear.Type, femobjects.material_reinforced.MaterialReinforced.Type, femobjects.mesh_boundarylayer.MeshBoundaryLayer.Type, femobjects.mesh_gmsh.MeshGmsh.Type, femobjects.mesh_group.MeshGroup.Type, femobjects.mesh_region.MeshRegion.Type, femobjects.mesh_result.MeshResult.Type, femobjects.result_mechanical.ResultMechanical.Type, femobjects.solver_ccxtools.SolverCcxTools.Type, femsolver.calculix.solver.Proxy.Type, femsolver.elmer.equations.elasticity.Proxy.Type, femsolver.elmer.equations.electricforce.Proxy.Type, femsolver.elmer.equations.electrostatic.Proxy.Type, femsolver.elmer.equations.flow.Proxy.Type, femsolver.elmer.equations.flux.Proxy.Type, femsolver.elmer.equations.heat.Proxy.Type, femsolver.elmer.solver.Proxy.Type, femsolver.z88.solver.Proxy.Type, FemGui::FemSelectionGate.Type, Import::FeatureImportIges.Type(), Import::FeatureImportStep.Type(), BOPTools.JoinFeatures.FeatureConnect.Type, BOPTools.JoinFeatures.FeatureEmbed.Type, BOPTools.JoinFeatures.FeatureCutout.Type, BOPTools.SplitFeatures.FeatureBooleanFragments.Type, BOPTools.SplitFeatures.FeatureSlice.Type, BOPTools.SplitFeatures.FeatureXOR.Type, CompoundTools.CompoundFilter._CompoundFilter.Type, JoinFeatures._PartJoinFeature.Type, PartDesign::Boolean.Type, PartDesign::Pad.Type, PartDesign::Pocket.Type, Mod.PartDesign.InvoluteGearFeature._InvoluteGear.Type, Mod.PartDesign.SprocketFeature.Sprocket.Type, Path::Tool.Type, Robot::Waypoint.Type, Sketcher::ConstraintIds.Type, Sketcher::Constraint.Type, SketcherGui::AutoConstraint.Type, Spreadsheet_legacy.Spreadsheet.Type, Spreadsheet_legacy.SpreadsheetController.Type, Spreadsheet_legacy.SpreadsheetPropertyController.Type, TechDraw::DrawProjGroupItem.Type, TechDraw::DrawViewDimension.Type, TechDrawGui::QGCustomBorder.Type, TechDrawGui::QGCustomClip.Type, TechDrawGui::QGCustomImage.Type, TechDrawGui::QGCustomLabel.Type, TechDrawGui::QGCustomRect.Type, TechDrawGui::QGCustomSvg.Type, TechDrawGui::QGCustomText.Type, TechDrawGui::QGDisplayArea.Type, TechDrawGui::QGMarker.Type, TechDrawGui::QGEPath.Type, TechDrawGui::QGIArrow.Type, TechDrawGui::QGICaption.Type, TechDrawGui::QGICenterLine.Type, TechDrawGui::QGICMark.Type, TechDrawGui::QGIDecoration.Type, TechDrawGui::QGIDimLines.Type, TechDrawGui::QGIDrawingTemplate.Type, TechDrawGui::QGIEdge.Type, TechDrawGui::QGIFace.Type, TechDrawGui::QGIGhostHighlight.Type, TechDrawGui::QGIHighlight.Type, TechDrawGui::QGILeaderLine.Type, TechDrawGui::QGIMatting.Type, TechDrawGui::QGIPrimPath.Type, TechDrawGui::QGIProjGroup.Type, TechDrawGui::QGIRichAnno.Type, TechDrawGui::QGISectionLine.Type, TechDrawGui::QGISVGTemplate.Type, TechDrawGui::QGITemplate.Type, TechDrawGui::QGITile.Type, TechDrawGui::QGIVertex.Type, TechDrawGui::QGIView.Type, TechDrawGui::QGIViewAnnotation.Type, TechDrawGui::QGIBalloonLabel.Type, TechDrawGui::QGIViewBalloon.Type, TechDrawGui::QGIViewClip.Type, TechDrawGui::QGIViewCollection.Type, TechDrawGui::QGIDatumLabel.Type, TechDrawGui::QGIViewDimension.Type, TechDrawGui::QGIViewImage.Type, TechDrawGui::QGIViewPart.Type, TechDrawGui::QGIViewSection.Type, TechDrawGui::QGIViewSpreadsheet.Type, TechDrawGui::QGIViewSymbol.Type, TechDrawGui::QGIWeldSymbol.Type, TechDrawGui::QGMText.Type, TechDrawGui::QGTracker.Type, TechDrawGui::TemplateTextField.Type, DocumentObject.DocumentObject.Type(), and DocumentObject.ViewProvider.Type().

Referenced by draftobjects.array.Array.attach(), draftobjects.patharray.PathArray.attach(), draftobjects.pathtwistedarray.PathTwistedArray.attach(), draftobjects.pointarray.PointArray.attach(), draftobjects.layer.Layer.onDocumentRestored(), draftobjects.patharray.PathArray.onDocumentRestored(), draftobjects.pathtwistedarray.PathTwistedArray.onDocumentRestored(), and draftobjects.pointarray.PointArray.onDocumentRestored().

Member Data Documentation

◆ Object

draftobjects.layer.Layer.Object

Referenced by draftviewproviders.view_layer.ViewProviderLayer.activate(), ArchPanel.CommandPanelSheet.Activated(), OpenSCADFeatures.ViewProviderTree.attach(), draftviewproviders.view_base.ViewProviderDraft.attach(), draftviewproviders.view_dimension.ViewProviderLinearDimension.attach(), draftviewproviders.view_dimension.ViewProviderAngularDimension.attach(), draftviewproviders.view_draft_annotation.ViewProviderDraftAnnotation.attach(), draftviewproviders.view_layer.ViewProviderLayer.attach(), draftviewproviders.view_layer.ViewProviderLayerContainer.attach(), PathScripts.PathArray.ViewProviderArray.attach(), PathScripts.PathCopy.ViewProviderPathCopy.attach(), PathScripts.PathDressupDragknife.ViewProviderDressup.attach(), PathScripts.PathHop.ViewProviderPathHop.attach(), PathScripts.PathOpGui.ViewProvider.attach(), ArchSite.Compass.buildCoordinates(), ArchReference.ViewProviderArchReference.checkChanges(), ArchComponent.ViewProviderComponent.claimChildren(), draftviewproviders.view_base.ViewProviderDraft.claimChildren(), draftviewproviders.view_draft_annotation.ViewProviderDraftAnnotation.claimChildren(), draftviewproviders.view_draftlink.ViewProviderDraftLink.claimChildren(), draftviewproviders.view_layer.ViewProviderLayer.claimChildren(), draftviewproviders.view_wire.ViewProviderWire.claimChildren(), femviewprovider.view_mesh_gmsh.VPMeshGmsh.claimChildren(), femviewprovider.view_result_mechanical.VPResultMechanical.claimChildren(), OpenSCADFeatures.ViewProviderTree.claimChildren(), BOPTools.JoinFeatures.ViewProviderConnect.claimChildren(), BOPTools.JoinFeatures.ViewProviderEmbed.claimChildren(), BOPTools.JoinFeatures.ViewProviderCutout.claimChildren(), BOPTools.SplitFeatures.ViewProviderBooleanFragments.claimChildren(), BOPTools.SplitFeatures.ViewProviderSlice.claimChildren(), BOPTools.SplitFeatures.ViewProviderXOR.claimChildren(), PathScripts.PathArray.ViewProviderArray.claimChildren(), PathScripts.PathDressupDragknife.ViewProviderDressup.claimChildren(), Spreadsheet_legacy.ViewProviderSpreadsheet.claimChildren(), PathScripts.PathOpGui.ViewProvider.clearTaskPanel(), ArchBuildingPart.ViewProviderBuildingPart.cloneUp(), ArchStructure.StructureTaskPanel.connectNodes(), ArchBuildingPart.ViewProviderBuildingPart.createGroup(), femviewprovider.view_mesh_gmsh.VPMeshGmsh.doubleClicked(), femviewprovider.view_mesh_gmsh.VPMeshGmsh.dragObject(), BOPTools.JoinFeatures.ViewProviderConnect.dragObject(), BOPTools.SplitFeatures.ViewProviderBooleanFragments.dragObject(), BOPTools.SplitFeatures.ViewProviderXOR.dragObject(), femviewprovider.view_mesh_gmsh.VPMeshGmsh.dropObject(), BOPTools.JoinFeatures.ViewProviderConnect.dropObject(), BOPTools.SplitFeatures.ViewProviderBooleanFragments.dropObject(), BOPTools.SplitFeatures.ViewProviderXOR.dropObject(), ArchStructure.StructureTaskPanel.extendNodes(), draftviewproviders.view_wire.ViewProviderWire.flatten(), Mod.Show.Containers.Container.getCSChildren(), Mod.Show.Containers.Container.getDynamicChildren(), ArchBuildingPart.ViewProviderBuildingPart.getIcon(), ArchComponent.ViewProviderComponent.getIcon(), draftviewproviders.view_array.ViewProviderDraftArray.getIcon(), draftviewproviders.view_base.ViewProviderDraft.getIcon(), draftviewproviders.view_dimension.ViewProviderDimensionBase.getIcon(), draftviewproviders.view_draftlink.ViewProviderDraftLink.getIcon(), femviewprovider.view_base_femobject.VPBaseFemObject.getIcon(), femviewprovider.view_material_common.VPMaterialCommon.getIcon(), OpenSCADFeatures.ViewProviderTree.getIcon(), PathScripts.PathOpGui.ViewProvider.getIcon(), Mod.Show.Containers.Container.getStaticChildren(), Mod.Show.Containers.Container.getVisGroupChildren(), Mod.Show.Containers.Container.hasObjectRecursive(), draftviewproviders.view_dimension.ViewProviderLinearDimension.is_linked_to_circle(), Mod.Show.Containers.Container.isACS(), ArchSchedule.CommandArchSchedule.IsActive(), Mod.Show.Containers.Container.isAVisGroup(), Mod.Show.Containers.Container.isChildVisible(), draftviewproviders.view_layer.ViewProviderLayerContainer.merge_by_name(), draftviewproviders.view_base.ViewProviderDraft.onChanged(), BOPTools.JoinFeatures.ViewProviderEmbed.onDelete(), BOPTools.JoinFeatures.ViewProviderCutout.onDelete(), ArchReference.ViewProviderArchReference.onOpen(), ArchReference.ViewProviderArchReference.onReload(), ArchBuildingPart.ViewProviderBuildingPart.reorder(), ArchStructure.StructureTaskPanel.resetNodes(), draftviewproviders.view_layer.ViewProviderLayer.select_contents(), Mod.Show.Containers.Container.self_check(), ArchComponent.ViewProviderComponent.setDisplayMode(), ArchComponent.ViewProviderComponent.setEdit(), Mod.PartDesign.SprocketFeature.ViewProviderSprocket.setEdit(), PathScripts.PathOpGui.ViewProvider.setupTaskPanel(), ArchBuildingPart.ViewProviderBuildingPart.setWorkingPlane(), femviewprovider.view_result_mechanical.VPResultMechanical.unsetEdit(), ArchBuildingPart.ViewProviderBuildingPart.writeCamera(), draftviewproviders.view_wpproxy.ViewProviderWorkingPlaneProxy.writeCamera(), ArchBuildingPart.ViewProviderBuildingPart.writeInventor(), and draftviewproviders.view_wpproxy.ViewProviderWorkingPlaneProxy.writeState().

◆ Type


The documentation for this class was generated from the following file:
  • Sources/FreeCAD/src/Mod/Draft/draftobjects/layer.py