PySimultan 0.5.9.7__py3-none-any.whl → 0.6.0.1__py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
Files changed (133) hide show
  1. PySimultan2/CHANGELOG.md +4 -0
  2. PySimultan2/__about__.py +1 -1
  3. PySimultan2/data_model.py +3 -3
  4. PySimultan2/default_types.py +39 -8
  5. PySimultan2/files.py +1 -1
  6. PySimultan2/object_mapper.py +2 -0
  7. PySimultan2/resources/BruTile.dll +0 -0
  8. PySimultan2/resources/ComponentBuilder.dll +0 -0
  9. PySimultan2/resources/ComponentBuilder.xml +93 -15
  10. PySimultan2/resources/HelixToolkit.Core.Wpf.dll +0 -0
  11. PySimultan2/resources/HelixToolkit.SharpDX.Core.Wpf.dll +0 -0
  12. PySimultan2/resources/HelixToolkit.SharpDX.Core.dll +0 -0
  13. PySimultan2/resources/HelixToolkit.dll +0 -0
  14. PySimultan2/resources/Python.Runtime.dll +0 -0
  15. PySimultan2/resources/SIMULTAN.Lang.dll +0 -0
  16. PySimultan2/resources/SIMULTAN.Lang.xml +62 -1
  17. PySimultan2/resources/SIMULTAN.UI.dll +0 -0
  18. PySimultan2/resources/SIMULTAN.UI.xml +57 -0
  19. PySimultan2/resources/SIMULTAN.dll +0 -0
  20. PySimultan2/resources/SIMULTAN.xml +73 -3
  21. PySimultan2/resources/System.Reflection.MetadataLoadContext.dll +0 -0
  22. PySimultan2/resources/defaultsettings.xml +0 -0
  23. PySimultan2/simultan_object.py +6 -1
  24. PySimultan2/typings/SIMULTAN/Data/Assets/__init__.pyi +616 -0
  25. PySimultan2/typings/SIMULTAN/Data/Components/__init__.pyi +2538 -0
  26. PySimultan2/typings/SIMULTAN/Data/FlowNetworks/__init__.pyi +499 -0
  27. PySimultan2/typings/SIMULTAN/Data/Geometry/__init__.pyi +2219 -0
  28. PySimultan2/typings/SIMULTAN/Data/MultiValues/__init__.pyi +682 -0
  29. PySimultan2/typings/SIMULTAN/Data/SimMath/__init__.pyi +1654 -0
  30. PySimultan2/typings/SIMULTAN/Data/SimNetworks/__init__.pyi +442 -0
  31. PySimultan2/typings/SIMULTAN/Data/SitePlanner/__init__.pyi +193 -0
  32. PySimultan2/typings/SIMULTAN/Data/Taxonomy/__init__.pyi +367 -0
  33. PySimultan2/typings/SIMULTAN/Data/Users/__init__.pyi +116 -0
  34. PySimultan2/typings/SIMULTAN/Data/ValueMappings/__init__.pyi +212 -0
  35. PySimultan2/typings/SIMULTAN/Data/__init__.pyi +232 -0
  36. PySimultan2/typings/SIMULTAN/DataMapping/__init__.pyi +916 -0
  37. PySimultan2/typings/SIMULTAN/Excel/__init__.pyi +15 -0
  38. PySimultan2/typings/SIMULTAN/Exceptions/__init__.pyi +268 -0
  39. PySimultan2/typings/SIMULTAN/Exchange/SimNetworkConnectors/__init__.pyi +32 -0
  40. PySimultan2/typings/SIMULTAN/Exchange/__init__.pyi +116 -0
  41. PySimultan2/typings/SIMULTAN/Projects/ManagedFiles/__init__.pyi +433 -0
  42. PySimultan2/typings/SIMULTAN/Projects/__init__.pyi +435 -0
  43. PySimultan2/typings/SIMULTAN/Serializer/CODXF/__init__.pyi +103 -0
  44. PySimultan2/typings/SIMULTAN/Serializer/CSV/__init__.pyi +122 -0
  45. PySimultan2/typings/SIMULTAN/Serializer/DXF/__init__.pyi +1335 -0
  46. PySimultan2/typings/SIMULTAN/Serializer/Geometry/__init__.pyi +48 -0
  47. PySimultan2/typings/SIMULTAN/Serializer/JSON/__init__.pyi +562 -0
  48. PySimultan2/typings/SIMULTAN/Serializer/METADXF/__init__.pyi +11 -0
  49. PySimultan2/typings/SIMULTAN/Serializer/PADXF/__init__.pyi +21 -0
  50. PySimultan2/typings/SIMULTAN/Serializer/PPATH/__init__.pyi +11 -0
  51. PySimultan2/typings/SIMULTAN/Serializer/Projects/__init__.pyi +112 -0
  52. PySimultan2/typings/SIMULTAN/Serializer/SIMLINKS/__init__.pyi +5 -0
  53. PySimultan2/typings/SIMULTAN/Serializer/SPDXF/__init__.pyi +13 -0
  54. PySimultan2/typings/SIMULTAN/Serializer/SimGeo/__init__.pyi +54 -0
  55. PySimultan2/typings/SIMULTAN/Serializer/TXDXF/__init__.pyi +46 -0
  56. PySimultan2/typings/SIMULTAN/Serializer/XMI/__init__.pyi +22 -0
  57. PySimultan2/typings/SIMULTAN/Serializer/__init__.pyi +32 -0
  58. PySimultan2/typings/SIMULTAN/Utils/BackgroundWork/__init__.pyi +43 -0
  59. PySimultan2/typings/SIMULTAN/Utils/Collections/__init__.pyi +216 -0
  60. PySimultan2/typings/SIMULTAN/Utils/ElevationProvider/__init__.pyi +66 -0
  61. PySimultan2/typings/SIMULTAN/Utils/Files/__init__.pyi +48 -0
  62. PySimultan2/typings/SIMULTAN/Utils/Randomize/__init__.pyi +11 -0
  63. PySimultan2/typings/SIMULTAN/Utils/Streams/__init__.pyi +59 -0
  64. PySimultan2/typings/SIMULTAN/Utils/UndoRedo/__init__.pyi +133 -0
  65. PySimultan2/typings/SIMULTAN/Utils/__init__.pyi +570 -0
  66. PySimultan2/typings/System/Buffers/Binary/__init__.pyi +248 -0
  67. PySimultan2/typings/System/Buffers/Text/__init__.pyi +91 -0
  68. PySimultan2/typings/System/Buffers/__init__.pyi +192 -0
  69. PySimultan2/typings/System/CodeDom/Compiler/__init__.pyi +137 -0
  70. PySimultan2/typings/System/Collections/Concurrent/__init__.pyi +47 -0
  71. PySimultan2/typings/System/Collections/Generic/__init__.pyi +1293 -0
  72. PySimultan2/typings/System/Collections/ObjectModel/__init__.pyi +166 -0
  73. PySimultan2/typings/System/Collections/Specialized/__init__.pyi +82 -0
  74. PySimultan2/typings/System/Collections/__init__.pyi +403 -0
  75. PySimultan2/typings/System/ComponentModel/__init__.pyi +582 -0
  76. PySimultan2/typings/System/Configuration/Assemblies/__init__.pyi +30 -0
  77. PySimultan2/typings/System/Diagnostics/CodeAnalysis/__init__.pyi +315 -0
  78. PySimultan2/typings/System/Diagnostics/Contracts/__init__.pyi +297 -0
  79. PySimultan2/typings/System/Diagnostics/SymbolStore/__init__.pyi +9 -0
  80. PySimultan2/typings/System/Diagnostics/Tracing/__init__.pyi +641 -0
  81. PySimultan2/typings/System/Diagnostics/__init__.pyi +1101 -0
  82. PySimultan2/typings/System/Globalization/__init__.pyi +1675 -0
  83. PySimultan2/typings/System/IO/Enumeration/__init__.pyi +125 -0
  84. PySimultan2/typings/System/IO/__init__.pyi +2747 -0
  85. PySimultan2/typings/System/Linq/Expressions/__init__.pyi +1815 -0
  86. PySimultan2/typings/System/Net/__init__.pyi +81 -0
  87. PySimultan2/typings/System/Numerics/__init__.pyi +2853 -0
  88. PySimultan2/typings/System/Reflection/Emit/__init__.pyi +1945 -0
  89. PySimultan2/typings/System/Reflection/Metadata/__init__.pyi +24 -0
  90. PySimultan2/typings/System/Reflection/__init__.pyi +2724 -0
  91. PySimultan2/typings/System/Resources/__init__.pyi +205 -0
  92. PySimultan2/typings/System/Runtime/CompilerServices/__init__.pyi +1926 -0
  93. PySimultan2/typings/System/Runtime/ConstrainedExecution/__init__.pyi +49 -0
  94. PySimultan2/typings/System/Runtime/ExceptionServices/__init__.pyi +34 -0
  95. PySimultan2/typings/System/Runtime/InteropServices/ComTypes/__init__.pyi +758 -0
  96. PySimultan2/typings/System/Runtime/InteropServices/Marshalling/__init__.pyi +461 -0
  97. PySimultan2/typings/System/Runtime/InteropServices/ObjectiveC/__init__.pyi +48 -0
  98. PySimultan2/typings/System/Runtime/InteropServices/__init__.pyi +2632 -0
  99. PySimultan2/typings/System/Runtime/Intrinsics/Arm/__init__.pyi +4757 -0
  100. PySimultan2/typings/System/Runtime/Intrinsics/Wasm/__init__.pyi +844 -0
  101. PySimultan2/typings/System/Runtime/Intrinsics/X86/__init__.pyi +5642 -0
  102. PySimultan2/typings/System/Runtime/Intrinsics/__init__.pyi +4504 -0
  103. PySimultan2/typings/System/Runtime/Loader/__init__.pyi +63 -0
  104. PySimultan2/typings/System/Runtime/Remoting/__init__.pyi +7 -0
  105. PySimultan2/typings/System/Runtime/Serialization/__init__.pyi +269 -0
  106. PySimultan2/typings/System/Runtime/Versioning/__init__.pyi +200 -0
  107. PySimultan2/typings/System/Runtime/__init__.pyi +141 -0
  108. PySimultan2/typings/System/Security/Cryptography/__init__.pyi +39 -0
  109. PySimultan2/typings/System/Security/Permissions/__init__.pyi +163 -0
  110. PySimultan2/typings/System/Security/Principal/__init__.pyi +45 -0
  111. PySimultan2/typings/System/Security/__init__.pyi +347 -0
  112. PySimultan2/typings/System/Text/Unicode/__init__.pyi +62 -0
  113. PySimultan2/typings/System/Text/__init__.pyi +1590 -0
  114. PySimultan2/typings/System/Threading/Tasks/Sources/__init__.pyi +76 -0
  115. PySimultan2/typings/System/Threading/Tasks/__init__.pyi +1403 -0
  116. PySimultan2/typings/System/Threading/__init__.pyi +1788 -0
  117. PySimultan2/typings/System/Xml/Schema/__init__.pyi +1255 -0
  118. PySimultan2/typings/System/Xml/Serialization/__init__.pyi +16 -0
  119. PySimultan2/typings/System/Xml/XPath/__init__.pyi +474 -0
  120. PySimultan2/typings/System/Xml/__init__.pyi +2410 -0
  121. PySimultan2/typings/System/__init__.pyi +17821 -0
  122. PySimultan2/utils.py +9 -4
  123. {pysimultan-0.5.9.7.dist-info → pysimultan-0.6.0.1.dist-info}/METADATA +1 -1
  124. pysimultan-0.6.0.1.dist-info/RECORD +174 -0
  125. PySimultan2/resources/SIMULTAN.AutoUpdate.Client.dll +0 -0
  126. PySimultan2/resources/SIMULTAN.AutoUpdate.Client.dll.config +0 -11
  127. PySimultan2/resources/SIMULTAN.AutoUpdate.DataTransferLibrary.dll +0 -0
  128. PySimultan2/resources/SIMULTAN.AutoUpdate.DataTransferLibrary.dll.config +0 -15
  129. PySimultan2/resources/SIMULTAN.Plugins.dll +0 -0
  130. PySimultan2/resources/SIMULTAN.Plugins.xml +0 -396
  131. pysimultan-0.5.9.7.dist-info/RECORD +0 -81
  132. {pysimultan-0.5.9.7.dist-info → pysimultan-0.6.0.1.dist-info}/WHEEL +0 -0
  133. {pysimultan-0.5.9.7.dist-info → pysimultan-0.6.0.1.dist-info}/licenses/LICENSE.txt +0 -0
@@ -1879,6 +1879,15 @@
1879
1879
  <param name="_file">he file</param>
1880
1880
  <returns>the retrieved resource or null</returns>
1881
1881
  </member>
1882
+ <member name="M:SIMULTAN.Data.Assets.AssetManager.GetFirstResourceWithTag(System.String,System.String)">
1883
+ <summary>
1884
+ Tries to find a resource file by a tag
1885
+ </summary>
1886
+ <param name="taxonomyKey">Taxonomy key of the tag</param>
1887
+ <param name="taxonomyEntryKey">Taxonomy entry key of the tag</param>
1888
+ <returns>The first resource with the tag or null if not found</returns>
1889
+ <exception cref="T:System.ArgumentNullException">If an argument is null</exception>
1890
+ </member>
1882
1891
  <member name="M:SIMULTAN.Data.Assets.AssetManager.SynchronizeResources(System.Collections.Generic.IEnumerable{System.IO.FileInfo},System.Collections.Generic.IEnumerable{System.IO.DirectoryInfo},System.Boolean,System.Boolean)">
1883
1892
  <summary>
1884
1893
  Checks if the given files and resources are represented by resources. Can create missing resources.
@@ -9426,6 +9435,14 @@
9426
9435
  <param name="e2">Edge 2</param>
9427
9436
  <returns>true if edges share a vertex</returns>
9428
9437
  </member>
9438
+ <member name="M:SIMULTAN.Data.Geometry.EdgeAlgorithms.IsHorizontal(SIMULTAN.Data.Geometry.Edge,System.Double)">
9439
+ <summary>
9440
+ Returns if the edge is horizontal (the Y component of it's direction &lt;= epsilon)
9441
+ </summary>
9442
+ <param name="e">The edge</param>
9443
+ <param name="epsilon">The epsilon</param>
9444
+ <returns>If the edge is horizontal</returns>
9445
+ </member>
9429
9446
  <member name="T:SIMULTAN.Data.Geometry.EdgeLoopAlgorithms">
9430
9447
  <summary>
9431
9448
  Provides algorithms that work on EdgeLoop instances
@@ -9569,6 +9586,13 @@
9569
9586
  <param name="polygon">The polygon</param>
9570
9587
  <returns>The perimeter length</returns>
9571
9588
  </member>
9589
+ <member name="M:SIMULTAN.Data.Geometry.EdgeLoopAlgorithms.BoundaryFace(SIMULTAN.Data.Geometry.EdgeLoop)">
9590
+ <summary>
9591
+ Returns the face that has the edge loop as boundary
9592
+ </summary>
9593
+ <param name="loop">The loop</param>
9594
+ <returns>The face that has the edge loop as boundary</returns>
9595
+ </member>
9572
9596
  <member name="T:SIMULTAN.Data.Geometry.GeometricRelation">
9573
9597
  <summary>
9574
9598
  Enumeration for describing geometric relations for intersection tests
@@ -9921,6 +9945,25 @@
9921
9945
  <param name="tolerance">The numerical tolerance</param>
9922
9946
  <returns>True when the ray intersects the face, otherwise False</returns>
9923
9947
  </member>
9948
+ <member name="M:SIMULTAN.Data.Geometry.FaceAlgorithms.FindOrthogonalDirectionInFace(SIMULTAN.Data.Geometry.Edge,SIMULTAN.Data.Geometry.Face,System.Double)">
9949
+ <summary>
9950
+ Tries to find a direction orthogonal to the <paramref name="inputEdge"/> that points into the plane of the given <paramref name="face"/>.
9951
+ Returns the zero vector if it could not be found (Happens if face does not have an area)
9952
+ </summary>
9953
+ <param name="inputEdge">The input edge</param>
9954
+ <param name="face">The face</param>
9955
+ <param name="epsilon">The epsilon for numerical stability</param>
9956
+ <returns>The direction orthogonal to the <paramref name="inputEdge"/> pointing into <paramref name="face"/></returns>
9957
+ </member>
9958
+ <member name="M:SIMULTAN.Data.Geometry.FaceAlgorithms.AngleBetweenOrthogonalFaceDirections(SIMULTAN.Data.SimMath.SimVector3D,SIMULTAN.Data.SimMath.SimVector3D,SIMULTAN.Data.SimMath.SimVector3D)">
9959
+ <summary>
9960
+ Gets the angle between two orthogonal face directions around an edge direction.
9961
+ </summary>
9962
+ <param name="currentFaceDirection">is the direction orthogonal to the <paramref name="edgeDirection"/> of the current face.</param>
9963
+ <param name="edgeDirection">is the edges direction</param>
9964
+ <param name="otherFaceDirection">is the direction orthogonal to the <paramref name="edgeDirection"/> of the other edge to find the angle of</param>
9965
+ <returns>The angle of <paramref name="otherFaceDirection"/> to <paramref name="currentFaceDirection"/> around <paramref name="edgeDirection"/> from 0 to 2 pi</returns>
9966
+ </member>
9924
9967
  <member name="T:SIMULTAN.Data.Geometry.GeometryAlgorithms">
9925
9968
  <summary>
9926
9969
  Provides general algorithms for geometries (intersections, closest points, ...)
@@ -9978,6 +10021,17 @@
9978
10021
  <param name="l1Direction">Direction of the second line</param>
9979
10022
  <returns>l0Point: Point on the first line, l0Param: line parameter of l1Point, l1Param: Same for second line</returns>
9980
10023
  </member>
10024
+ <member name="M:SIMULTAN.Data.Geometry.GeometryAlgorithms.TryOrthogonalize(SIMULTAN.Data.SimMath.SimVector3D,SIMULTAN.Data.SimMath.SimVector3D,System.Double,SIMULTAN.Data.SimMath.SimVector3D@)">
10025
+ <summary>
10026
+ Tries to orthogonalize a vector to a reference vector using the Gram-Schmidt process.
10027
+ Fails if the two vectors are collinear.
10028
+ </summary>
10029
+ <param name="reference">The reference vector</param>
10030
+ <param name="toOrthogonalize">The vector that should be made orthogonal to the reference vector</param>
10031
+ <param name="epsilon">The epsilon for numeric comparisons</param>
10032
+ <param name="result">The resulting orthogonalized vector</param>
10033
+ <returns>True if successful, false if both vectors are collinear</returns>
10034
+ </member>
9981
10035
  <member name="T:SIMULTAN.Data.Geometry.ModelInconsistentException">
9982
10036
  <summary>
9983
10037
  Exception when GeometryModel is inconsistent
@@ -10129,7 +10183,7 @@
10129
10183
  <param name="p">A point consisting of longitude (x), latitude (y) and height relative to surface (z)</param>
10130
10184
  <returns>The point in the Cartesian coordinate system of the WGS reference ellipsoid.</returns>
10131
10185
  </member>
10132
- <member name="M:SIMULTAN.Data.Geometry.GeoReferenceAlgorithms.CartToWGS84(SIMULTAN.Data.SimMath.SimPoint3D,System.Double)">
10186
+ <member name="M:SIMULTAN.Data.Geometry.GeoReferenceAlgorithms.CartToWGS84(SIMULTAN.Data.SimMath.SimPoint3D,System.Double,System.Int32)">
10133
10187
  <summary>
10134
10188
  Transforms a point with cartesian coordinates into the WGS coordinate system.
10135
10189
  https://gssc.esa.int/navipedia/index.php/Ellipsoidal_and_Cartesian_Coordinates_Conversion
@@ -10137,6 +10191,7 @@
10137
10191
  </summary>
10138
10192
  <param name="point">A point in the catesian space with [0,0,0] being the earths center.</param>
10139
10193
  <param name="precision">The precision of the calculation.</param>
10194
+ <param name="maxIterations">Maximum number of iterations to prevent infinite loops</param>
10140
10195
  <returns>The point in the WGS coordinate system.</returns>
10141
10196
  </member>
10142
10197
  <member name="M:SIMULTAN.Data.Geometry.GeoReferenceAlgorithms.TangentFrame(SIMULTAN.Data.SimMath.SimPoint3D)">
@@ -12656,6 +12711,7 @@
12656
12711
  <member name="P:SIMULTAN.Data.Geometry.PFace.Orientation">
12657
12712
  <summary>
12658
12713
  Returns the orientation relative to the Face
12714
+ Forward means the Normal of the Face points inside the volume
12659
12715
  </summary>
12660
12716
  </member>
12661
12717
  <member name="M:SIMULTAN.Data.Geometry.PFace.#ctor(SIMULTAN.Data.Geometry.Face,SIMULTAN.Data.Geometry.Volume,SIMULTAN.Data.Geometry.GeometricOrientation)">
@@ -20925,6 +20981,18 @@
20925
20981
  Tells whether the network has a parent
20926
20982
  </summary>
20927
20983
  </member>
20984
+ <member name="T:SIMULTAN.Data.SimNetworks.SimNetwork.AssociationChangedEventHandler">
20985
+ <summary>
20986
+ Event handler delegate for the <see cref="E:SIMULTAN.Data.SimNetworks.SimNetwork.AssociationChanged"/> event.
20987
+ </summary>
20988
+ <param name="sender">The sender</param>
20989
+ <param name="elements">The network elements of which the association changed</param>
20990
+ </member>
20991
+ <member name="E:SIMULTAN.Data.SimNetworks.SimNetwork.AssociationChanged">
20992
+ <summary>
20993
+ Invoked when the association relationship in one or more network elements changed
20994
+ </summary>
20995
+ </member>
20928
20996
  <member name="M:SIMULTAN.Data.SimNetworks.SimNetwork.#ctor(System.String)">
20929
20997
  <summary>
20930
20998
  Constructs a new SimNetwork
@@ -21096,10 +21164,11 @@
21096
21164
  <param name="parent">The parent network</param>
21097
21165
  <returns>Returns the cloned SimNetworkBLock, and a Dictionary with the original and cloned port LocalId pairs</returns>
21098
21166
  </member>
21099
- <member name="M:SIMULTAN.Data.SimNetworks.SimNetworkBlock.RemoveComponentInstance">
21167
+ <member name="M:SIMULTAN.Data.SimNetworks.SimNetworkBlock.RemoveComponentInstance(System.Boolean)">
21100
21168
  <summary>
21101
21169
  Removes the assigned component instance from the block as well as from the ports of the block
21102
21170
  </summary>
21171
+ <param name="sendAssociatedEvent">If the AssociationChanged event on the network should be called</param>
21103
21172
  </member>
21104
21173
  <member name="M:SIMULTAN.Data.SimNetworks.SimNetworkBlock.AssignComponent(SIMULTAN.Data.Components.SimComponent,System.Boolean)">
21105
21174
  <summary>
@@ -32217,13 +32286,14 @@
32217
32286
  <param name="key"></param>
32218
32287
  <param name="value"></param>
32219
32288
  </member>
32220
- <member name="M:SIMULTAN.Serializer.XMLIOExtensions.LoadInnerText(System.Xml.XmlElement,System.String,System.Action{System.String})">
32289
+ <member name="M:SIMULTAN.Serializer.XMLIOExtensions.LoadInnerText(System.Xml.XmlElement,System.String,System.Action{System.String},System.Xml.XmlNamespaceManager)">
32221
32290
  <summary>
32222
32291
  Loads an xml node and converts the content
32223
32292
  </summary>
32224
32293
  <param name="node">The XMLElement onto which the xpath is applied</param>
32225
32294
  <param name="xpath">The xpath expression</param>
32226
32295
  <param name="converter">Convert to convert the content string</param>
32296
+ <param name="nsmgr">Namespace manager of the xml node</param>
32227
32297
  <returns>True when the xpath has selected an element, False otherwise</returns>
32228
32298
  </member>
32229
32299
  <member name="T:SIMULTAN.Utils.AdmissibilityQueries">
Binary file
@@ -322,7 +322,12 @@ class SimultanObject(object, metaclass=MetaMock):
322
322
  slot)
323
323
 
324
324
  def remove_referenced_component(self, referenced_component: 'SimultanObject'):
325
- utils.remove_referenced_component(self._wrapped_obj, referenced_component._wrapped_obj)
325
+
326
+ if isinstance(referenced_component, SimComponent):
327
+ utils.remove_referenced_component(self._wrapped_obj, referenced_component)
328
+ elif isinstance(referenced_component, SimultanObject):
329
+ utils.remove_referenced_component(self._wrapped_obj, referenced_component._wrapped_obj)
330
+
326
331
 
327
332
  def add_asset(self,
328
333
  resource_file_entry: 'ResourceFileEntry',