87 lines
3.3 KiB
XML
87 lines
3.3 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<GenerateModel xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="generateMetaModel_Module.xsd">
|
|
<PythonExport
|
|
Father="DocumentObjectPy"
|
|
Name="GeoFeaturePy"
|
|
Twin="GeoFeature"
|
|
TwinPointer="GeoFeature"
|
|
Include="App/GeoFeature.h"
|
|
Namespace="App"
|
|
FatherInclude="App/DocumentObjectPy.h"
|
|
FatherNamespace="App">
|
|
<Documentation>
|
|
<Author Licence="LGPL" Name="Jürgen Riegel" EMail="FreeCAD@juergen-riegel.net" />
|
|
<UserDocu>App.GeoFeature class.
|
|
|
|
Base class of all geometric document objects.
|
|
This class does the whole placement and position handling.
|
|
With the method `getPropertyOfGeometry` is possible to obtain
|
|
the main geometric property in general form, without reference
|
|
to any particular property name.</UserDocu>
|
|
</Documentation>
|
|
<Methode Name="getPaths">
|
|
<Documentation>
|
|
<UserDocu>getPaths()
|
|
|
|
Returns all possible paths to the root of the document.
|
|
Note: Not implemented.</UserDocu>
|
|
</Documentation>
|
|
</Methode>
|
|
<Methode Name="getGlobalPlacement">
|
|
<Documentation>
|
|
<UserDocu>getGlobalPlacement() -> Base.Placement
|
|
Deprecated: This function does not handle Links correctly. Use getGlobalPlacementOf instead.
|
|
|
|
Returns the placement of the object in the global coordinate space, respecting all stacked
|
|
relationships.
|
|
Note: This function is not available during recompute, as there the placements of parents
|
|
can change after the execution of this object, rendering the result wrong.</UserDocu>
|
|
</Documentation>
|
|
</Methode>
|
|
<Methode Name="getGlobalPlacementOf" Static="true">
|
|
<Documentation>
|
|
<UserDocu>getGlobalPlacementOf(targetObj, rootObj, subname) -> Base.Placement
|
|
Selection example: obj = "part1" sub = "linkToPart2.LinkToBody.Pad.face1"
|
|
|
|
Global placement of Pad in this context :
|
|
getGlobalPlacementOf(pad, part1, "linkToPart2.LinkToBody.Pad.face1")
|
|
|
|
Global placement of linkToPart2 in this context :
|
|
getGlobalPlacementOf(linkToPart2, part1, "linkToPart2.LinkToBody.Pad.face1")
|
|
|
|
Returns the placement of the object in the global coordinate space, respecting all stacked
|
|
relationships.
|
|
</UserDocu>
|
|
</Documentation>
|
|
</Methode>
|
|
<Methode Name="getPropertyNameOfGeometry">
|
|
<Documentation>
|
|
<UserDocu>getPropertyNameOfGeometry() -> str or None
|
|
|
|
Returns the property name of the actual geometry.
|
|
For example for a Part feature it returns the value 'Shape', for a mesh feature the value
|
|
'Mesh' and so on.
|
|
If an object has no such property then None is returned.</UserDocu>
|
|
</Documentation>
|
|
</Methode>
|
|
<Methode Name="getPropertyOfGeometry">
|
|
<Documentation>
|
|
<UserDocu>getPropertyOfGeometry() -> object or None
|
|
|
|
Returns the property of the actual geometry.
|
|
For example for a Part feature it returns its Shape property, for a Mesh feature its
|
|
Mesh property and so on.
|
|
If an object has no such property then None is returned.
|
|
Unlike to getPropertyNameOfGeometry this function returns the geometry, not its name.</UserDocu>
|
|
</Documentation>
|
|
</Methode>
|
|
<Attribute Name="ElementMapVersion" ReadOnly="true">
|
|
<Documentation>
|
|
<UserDocu>Element map version</UserDocu>
|
|
</Documentation>
|
|
<Parameter Name="ElementMapVersion" Type="String" />
|
|
</Attribute>
|
|
<CustomAttributes />
|
|
</PythonExport>
|
|
</GenerateModel>
|