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.
84 lines
2.5 KiB
XML
84 lines
2.5 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="PyObjectBase"
|
|
Name="AxisPy"
|
|
Twin="Axis"
|
|
TwinPointer="Axis"
|
|
Include="Base/Axis.h"
|
|
FatherInclude="Base/PyObjectBase.h"
|
|
Namespace="Base"
|
|
Constructor="true"
|
|
Delete="true"
|
|
FatherNamespace="Base">
|
|
<Documentation>
|
|
<Author Licence="LGPL" Name="Juergen Riegel" EMail="FreeCAD@juergen-riegel.net" />
|
|
<UserDocu>Base.Axis class.
|
|
|
|
An Axis defines a direction and a position (base) in 3D space.
|
|
|
|
The following constructors are supported:
|
|
|
|
Axis()
|
|
Empty constructor.
|
|
|
|
Axis(axis)
|
|
Copy constructor.
|
|
axis : Base.Axis
|
|
|
|
Axis(base, direction)
|
|
Define from a position and a direction.
|
|
base : Base.Vector
|
|
direction : Base.Vector</UserDocu>
|
|
<DeveloperDocu>Axis</DeveloperDocu>
|
|
</Documentation>
|
|
<Methode Name="copy">>
|
|
<Documentation>
|
|
<UserDocu>copy() -> Base.Axis
|
|
|
|
Returns a copy of this Axis.</UserDocu>
|
|
</Documentation>
|
|
</Methode>
|
|
<Methode Name="move">
|
|
<Documentation>
|
|
<UserDocu>move(vector) -> None
|
|
|
|
Move the axis base along the given vector.
|
|
|
|
vector : Base.Vector
|
|
Vector by which to move the axis.</UserDocu>
|
|
</Documentation>
|
|
</Methode>
|
|
<Methode Name="multiply">
|
|
<Documentation>
|
|
<UserDocu>multiply(placement) -> Base.Axis
|
|
|
|
Multiply this axis by a placement.
|
|
|
|
placement : Base.Placement
|
|
Placement by which to multiply the axis.</UserDocu>
|
|
</Documentation>
|
|
</Methode>
|
|
<Methode Name="reversed">
|
|
<Documentation>
|
|
<UserDocu>reversed() -> Base.Axis
|
|
|
|
Compute the reversed axis. This returns a new Base.Axis with
|
|
the original direction reversed.</UserDocu>
|
|
</Documentation>
|
|
</Methode>
|
|
<Attribute Name="Base" ReadOnly="false">
|
|
<Documentation>
|
|
<UserDocu>Base position vector of the Axis.</UserDocu>
|
|
</Documentation>
|
|
<Parameter Name="Base" Type="Object" />
|
|
</Attribute>
|
|
<Attribute Name="Direction" ReadOnly="false">
|
|
<Documentation>
|
|
<UserDocu>Direction vector of the Axis.</UserDocu>
|
|
</Documentation>
|
|
<Parameter Name="Direction" Type="Object" />
|
|
</Attribute>
|
|
</PythonExport>
|
|
</GenerateModel>
|