some fixes and comparison interface for Unit and Quantity python objects
This commit is contained in:
@@ -9,41 +9,30 @@
|
||||
FatherInclude="Base/PyObjectBase.h"
|
||||
Namespace="Base"
|
||||
NumberProtocol="true"
|
||||
RichCompare="true"
|
||||
Constructor="true"
|
||||
Delete="true"
|
||||
FatherNamespace="Base">
|
||||
<Documentation>
|
||||
<Author Licence="LGPL" Name="Juergen Riegel" EMail="FreeCAD@juergen-riegel.net" />
|
||||
<UserDocu>Unit
|
||||
defines a unit type and calculate and compare.
|
||||
<UserDocu>
|
||||
Unit
|
||||
defines a unit type, calculate and compare.
|
||||
|
||||
The following constructors are supported:
|
||||
Unit() -- empty constructor
|
||||
Unit(Unit) -- copy constructor
|
||||
Unit(string) -- parse the string for units
|
||||
</UserDocu>
|
||||
The following constructors are supported:
|
||||
Unit() -- empty constructor
|
||||
Unit(i1,i2,i3,i4,i5,i6,i7,i8) -- unit signature
|
||||
Unit(Quantity) -- copy unit from Quantity
|
||||
Unit(Unit) -- copy constructor
|
||||
Unit(string) -- parse the string for units
|
||||
</UserDocu>
|
||||
<DeveloperDocu>Unit</DeveloperDocu>
|
||||
</Documentation>
|
||||
<Methode Name="multiply">
|
||||
<Attribute Name="Type" ReadOnly="true">
|
||||
<Documentation>
|
||||
<UserDocu>
|
||||
multiply(Placement)
|
||||
Multiply this axis with a placement
|
||||
</UserDocu>
|
||||
<UserDocu>holds the unit type as a string, e.g. 'Area'.</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
<Methode Name="getType">
|
||||
<Documentation>
|
||||
<UserDocu>
|
||||
get the type of the unit as string
|
||||
</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
<Attribute Name="Dimensions" ReadOnly="false">
|
||||
<Documentation>
|
||||
<UserDocu>get the dimension as a vector with 8 fields</UserDocu>
|
||||
</Documentation>
|
||||
<Parameter Name="Direction" Type="Object" />
|
||||
<Parameter Name="Type" Type="String" />
|
||||
</Attribute>
|
||||
</PythonExport>
|
||||
</GenerateModel>
|
||||
|
||||
Reference in New Issue
Block a user