Now all escaping required for the C++ code generation is done when the .cpp/.h files are generated. Previously, only newlines were escaped automatically. This was a) inconsistent and b) leaked c++ details into the xml data. In addition, the escaping is now done in one central place, harmonizing the three previous implementations. Pre-existing c++ escape sequences in the XML files have been replaced by their literal equivalent so that the resulting python doc sting remains unchanged.
64 lines
2.4 KiB
XML
64 lines
2.4 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
|
|
|
|
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="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>
|
|
<CustomAttributes />
|
|
</PythonExport>
|
|
</GenerateModel>
|