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.
94 lines
3.3 KiB
XML
94 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="BaseClassPy"
|
|
Name="AxisOriginPy"
|
|
Twin="AxisOrigin"
|
|
TwinPointer="AxisOrigin"
|
|
Include="Gui/AxisOrigin.h"
|
|
Namespace="Gui"
|
|
FatherInclude="Base/BaseClassPy.h"
|
|
FatherNamespace="Base"
|
|
Constructor="true"
|
|
Delete="true">
|
|
<Documentation>
|
|
<Author Licence="LGPL" Name="Zheng, Lei" EMail="realthunder.dev@gmail.com" />
|
|
<UserDocu>Gui.AxisOrigin class.
|
|
|
|
Class for creating a Coin3D representation of a coordinate system.</UserDocu>
|
|
</Documentation>
|
|
<Methode Name="getElementPicked" Const="true">
|
|
<Documentation>
|
|
<UserDocu>getElementPicked(pickedPoint) -> str
|
|
|
|
Returns the picked element name.
|
|
|
|
pickedPoint : coin.SoPickedPoint</UserDocu>
|
|
</Documentation>
|
|
</Methode>
|
|
<Methode Name="getDetailPath" Const="true">
|
|
<Documentation>
|
|
<UserDocu>getDetailPath(subname, path) -> coin.SoDetail or None
|
|
|
|
Returns Coin detail of a subelement.
|
|
Note: Not fully implemented. Currently only returns None.
|
|
|
|
subname : str
|
|
String reference to the subelement.
|
|
path: coin.SoPath
|
|
Output Coin path leading to the returned element detail.</UserDocu>
|
|
</Documentation>
|
|
</Methode>
|
|
<Attribute Name="AxisLength">
|
|
<Documentation>
|
|
<UserDocu>Get/set the axis length.</UserDocu>
|
|
</Documentation>
|
|
<Parameter Name="AxisLength" Type="Float" />
|
|
</Attribute>
|
|
<Attribute Name="LineWidth">
|
|
<Documentation>
|
|
<UserDocu>Get/set the axis line width for rendering.</UserDocu>
|
|
</Documentation>
|
|
<Parameter Name="LineWidth" Type="Float" />
|
|
</Attribute>
|
|
<Attribute Name="PointSize">
|
|
<Documentation>
|
|
<UserDocu>Get/set the origin point size for rendering.</UserDocu>
|
|
</Documentation>
|
|
<Parameter Name="PointSize" Type="Float" />
|
|
</Attribute>
|
|
<Attribute Name="Scale">
|
|
<Documentation>
|
|
<UserDocu>Get/set auto scaling factor, 0 to disable.</UserDocu>
|
|
</Documentation>
|
|
<Parameter Name="Scale" Type="Float" />
|
|
</Attribute>
|
|
<Attribute Name="Plane">
|
|
<Documentation>
|
|
<UserDocu>Get/set axis plane size and distance to axis line.</UserDocu>
|
|
</Documentation>
|
|
<Parameter Name="Plane" Type="Tuple" />
|
|
</Attribute>
|
|
<Attribute Name="Labels">
|
|
<Documentation>
|
|
<UserDocu>Get/set axis component names as a dictionary.
|
|
Available keys are:
|
|
'O': origin
|
|
'X': x axis
|
|
'Y': y axis
|
|
'Z': z axis
|
|
'XY': xy plane
|
|
'XZ': xz plane
|
|
'YZ': yz plane</UserDocu>
|
|
</Documentation>
|
|
<Parameter Name="Labels" Type="Dict" />
|
|
</Attribute>
|
|
<Attribute Name="Node" ReadOnly='true'>
|
|
<Documentation>
|
|
<UserDocu>Get the Coin3D node.</UserDocu>
|
|
</Documentation>
|
|
<Parameter Name="Node" Type="Object" />
|
|
</Attribute>
|
|
</PythonExport>
|
|
</GenerateModel>
|