App: expose methods of ComplexGeoData to Python

This commit is contained in:
wmayer
2021-10-05 12:43:28 +02:00
parent d569c8aa25
commit df0c7b7818
2 changed files with 313 additions and 34 deletions

View File

@@ -5,7 +5,7 @@
Name="ComplexGeoDataPy"
Twin="ComplexGeoData"
Include="App/ComplexGeoData.h"
TwinPointer="ComplexGeoData"
TwinPointer="ComplexGeoData"
Namespace="Data"
FatherInclude="Base/PersistencePy.h"
FatherNamespace="Base"
@@ -14,34 +14,85 @@
<Author Licence="LGPL" Name="Juergen Riegel" EMail="Juergen.Riegel@web.de" />
<UserDocu>Father of all complex geometric data types</UserDocu>
</Documentation>
<Methode Name="getElementTypes" Const="true">
<Documentation>
<UserDocu>Return a list of element types</UserDocu>
</Documentation>
</Methode>
<Methode Name="countSubElements" Const="true">
<Documentation>
<UserDocu>Return the number of elements of a type</UserDocu>
</Documentation>
</Methode>
<Methode Name="getFacesFromSubelement" Const="true">
<Documentation>
<UserDocu>Return vertexes and faces from a sub-element</UserDocu>
</Documentation>
</Methode>
<Attribute Name="BoundBox" ReadOnly="true">
<Documentation>
<UserDocu>Get the BoundBox of the object</UserDocu>
</Documentation>
<Parameter Name="BoundBox" Type="Object" />
</Attribute>
<Attribute Name="Placement" ReadOnly="false">
<Documentation>
<UserDocu>Get the current transformation of the object as placement</UserDocu>
</Documentation>
<Parameter Name="Placement" Type="Object" />
</Attribute>
<Attribute Name="Matrix" ReadOnly="false">
<Documentation>
<UserDocu>Get the current transformation of the object as matrix</UserDocu>
</Documentation>
<Parameter Name="Matrix" Type="Object" />
</Attribute>
<Attribute Name="Tag">
<Documentation>
<UserDocu>Geometry Tag</UserDocu>
</Documentation>
<Parameter Name="Tag" Type="Int"/>
</Attribute>
<Methode Name="getLinesFromSubelement" Const="true">
<Documentation>
<UserDocu>Return vertexes and lines from a sub-element</UserDocu>
</Documentation>
</Methode>
<Methode Name="getPoints" Const="true">
<Documentation>
<UserDocu>Return a tuple of points and normals with a given accuracy</UserDocu>
</Documentation>
</Methode>
<Methode Name="getLines" Const="true">
<Documentation>
<UserDocu>Return a tuple of points and lines with a given accuracy</UserDocu>
</Documentation>
</Methode>
<Methode Name="getFaces" Const="true">
<Documentation>
<UserDocu>Return a tuple of points and triangles with a given accuracy</UserDocu>
</Documentation>
</Methode>
<Methode Name="applyTranslation">
<Documentation>
<UserDocu>Apply an additional translation to the placement</UserDocu>
</Documentation>
</Methode>
<Methode Name="applyRotation">
<Documentation>
<UserDocu>Apply an additional rotation to the placement</UserDocu>
</Documentation>
</Methode>
<Methode Name="transformGeometry">
<Documentation>
<UserDocu>Apply a transformation to the underlying geometry</UserDocu>
</Documentation>
</Methode>
<Attribute Name="BoundBox" ReadOnly="true">
<Documentation>
<UserDocu>Get the BoundBox of the object</UserDocu>
</Documentation>
<Parameter Name="BoundBox" Type="Object" />
</Attribute>
<Attribute Name="CenterOfGravity" ReadOnly="true">
<Documentation>
<UserDocu>Get the center of gravity</UserDocu>
</Documentation>
<Parameter Name="CenterOfGravity" Type="Object" />
</Attribute>
<Attribute Name="Placement" ReadOnly="false">
<Documentation>
<UserDocu>Get the current transformation of the object as placement</UserDocu>
</Documentation>
<Parameter Name="Placement" Type="Object" />
</Attribute>
<Attribute Name="Matrix" ReadOnly="false">
<Documentation>
<UserDocu>Get the current transformation of the object as matrix</UserDocu>
</Documentation>
<Parameter Name="Matrix" Type="Object" />
</Attribute>
<Attribute Name="Tag">
<Documentation>
<UserDocu>Geometry Tag</UserDocu>
</Documentation>
<Parameter Name="Tag" Type="Int"/>
</Attribute>
</PythonExport>
</GenerateModel>