qtmodel 0.5.43__tar.gz → 0.5.44__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: qtmodel
3
- Version: 0.5.43
4
- Summary: python modeling for qt 24/11/27
3
+ Version: 0.5.44
4
+ Summary: python modeling for qt 2024-12-09
5
5
  Home-page: https://github.com/Inface0443/pyqt
6
6
  Author: dqy-zhj
7
7
  Author-email: 1105417715@qq.com
@@ -12,9 +12,9 @@ Classifier: Programming Language :: Python :: 3
12
12
  Classifier: Operating System :: OS Independent
13
13
  Description-Content-Type: text/markdown
14
14
 
15
- # 最新版本 V0.5.43 - 2024.12.6
15
+ # 最新版本 V0.5.44 - 2024-12-09
16
16
  > pip install --upgrade qtmodel -i https://pypi.org/simple
17
- - 优化钢束导入并修复单箱多室混凝土截面导入
17
+ - 添加视图控制接口
18
18
  ## 项目管理
19
19
  ### update_bim
20
20
  刷新Bim模型信息
@@ -1945,6 +1945,29 @@ mdb.remove_load_combine(name="荷载组合1")
1945
1945
  ```
1946
1946
  Returns: 无
1947
1947
  ## 视图控制
1948
+ ### set_view_camera
1949
+ 更改三维显示相机设置
1950
+ > 参数:
1951
+ > camera_point: 相机坐标点
1952
+ > focus_point: 相机焦点
1953
+ > camera_rotate:相机绕XYZ旋转角度
1954
+ > scale: 缩放系数
1955
+ ```Python
1956
+ # 示例代码
1957
+ from qtmodel import *
1958
+ odb.set_view_camera(camera_point=(-100,-100,-100),focus_point=(0,0,0))
1959
+ ```
1960
+ Returns: 无
1961
+ ### set_view_direction
1962
+ 更改三维显示默认视图
1963
+ > 参数:
1964
+ > direction: 1-空间视图1 2-前视图 3-三维视图2 4-左视图 5-顶视图 6-右视图 7-空间视图3 8-后视图 9-空间视图4 10-底视图
1965
+ ```Python
1966
+ # 示例代码
1967
+ from qtmodel import *
1968
+ odb.set_view_direction(1)
1969
+ ```
1970
+ Returns: 无
1948
1971
  ### activate_structure
1949
1972
  激活指定阶段和单元,默认激活所有
1950
1973
  > 参数:
@@ -1,6 +1,6 @@
1
- # 最新版本 V0.5.43 - 2024.12.6
1
+ # 最新版本 V0.5.44 - 2024-12-09
2
2
  > pip install --upgrade qtmodel -i https://pypi.org/simple
3
- - 优化钢束导入并修复单箱多室混凝土截面导入
3
+ - 添加视图控制接口
4
4
  ## 项目管理
5
5
  ### update_bim
6
6
  刷新Bim模型信息
@@ -1931,6 +1931,29 @@ mdb.remove_load_combine(name="荷载组合1")
1931
1931
  ```
1932
1932
  Returns: 无
1933
1933
  ## 视图控制
1934
+ ### set_view_camera
1935
+ 更改三维显示相机设置
1936
+ > 参数:
1937
+ > camera_point: 相机坐标点
1938
+ > focus_point: 相机焦点
1939
+ > camera_rotate:相机绕XYZ旋转角度
1940
+ > scale: 缩放系数
1941
+ ```Python
1942
+ # 示例代码
1943
+ from qtmodel import *
1944
+ odb.set_view_camera(camera_point=(-100,-100,-100),focus_point=(0,0,0))
1945
+ ```
1946
+ Returns: 无
1947
+ ### set_view_direction
1948
+ 更改三维显示默认视图
1949
+ > 参数:
1950
+ > direction: 1-空间视图1 2-前视图 3-三维视图2 4-左视图 5-顶视图 6-右视图 7-空间视图3 8-后视图 9-空间视图4 10-底视图
1951
+ ```Python
1952
+ # 示例代码
1953
+ from qtmodel import *
1954
+ odb.set_view_direction(1)
1955
+ ```
1956
+ Returns: 无
1934
1957
  ### activate_structure
1935
1958
  激活指定阶段和单元,默认激活所有
1936
1959
  > 参数:
@@ -9,6 +9,43 @@ class Odb:
9
9
  """
10
10
 
11
11
  # region 视图控制
12
+ @staticmethod
13
+ def set_view_camera(camera_point: tuple[float, float, float], focus_point: tuple[float, float, float],
14
+ camera_rotate: tuple[float, float, float] = (45, 45, 0), scale: float = 0.5):
15
+ """
16
+ 更改三维显示相机设置
17
+ Args:
18
+ camera_point: 相机坐标点
19
+ focus_point: 相机焦点
20
+ camera_rotate:相机绕XYZ旋转角度
21
+ scale: 缩放系数
22
+ Example:
23
+ odb.set_view_camera(camera_point=(-100,-100,100),focus_point=(0,0,0))
24
+ Returns: 无
25
+ """
26
+ try:
27
+ qt_model.SetViewCamera(direction=[camera_point[0], camera_point[1], camera_point[2], focus_point[0], focus_point[1], focus_point[2],
28
+ camera_rotate[0], camera_rotate[1], camera_rotate[2], scale])
29
+ qt_model.UpdateModel()
30
+ except Exception as ex:
31
+ raise Exception(ex)
32
+
33
+ @staticmethod
34
+ def set_view_direction(direction: int = 1):
35
+ """
36
+ 更改三维显示默认视图
37
+ Args:
38
+ direction: 1-空间视图1 2-前视图 3-三维视图2 4-左视图 5-顶视图 6-右视图 7-空间视图3 8-后视图 9-空间视图4 10-底视图
39
+ Example:
40
+ odb.set_view_direction(1)
41
+ Returns: 无
42
+ """
43
+ try:
44
+ qt_model.SetViewDirection(direction=direction)
45
+ qt_model.UpdateModel()
46
+ except Exception as ex:
47
+ raise Exception(ex)
48
+
12
49
  @staticmethod
13
50
  def activate_structure(node_ids: list[int] = None, element_ids: list[int] = None):
14
51
  """
@@ -21,7 +58,7 @@ class Odb:
21
58
  Returns: 无
22
59
  """
23
60
  try:
24
- qt_model.activate_structure(nodeIds=node_ids, elementIds=element_ids)
61
+ qt_model.ActivateStructure(nodeIds=node_ids, elementIds=element_ids)
25
62
  qt_model.UpdateModel()
26
63
  except Exception as ex:
27
64
  raise Exception(ex)
@@ -1,7 +1,7 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: qtmodel
3
- Version: 0.5.43
4
- Summary: python modeling for qt 24/11/27
3
+ Version: 0.5.44
4
+ Summary: python modeling for qt 2024-12-09
5
5
  Home-page: https://github.com/Inface0443/pyqt
6
6
  Author: dqy-zhj
7
7
  Author-email: 1105417715@qq.com
@@ -12,9 +12,9 @@ Classifier: Programming Language :: Python :: 3
12
12
  Classifier: Operating System :: OS Independent
13
13
  Description-Content-Type: text/markdown
14
14
 
15
- # 最新版本 V0.5.43 - 2024.12.6
15
+ # 最新版本 V0.5.44 - 2024-12-09
16
16
  > pip install --upgrade qtmodel -i https://pypi.org/simple
17
- - 优化钢束导入并修复单箱多室混凝土截面导入
17
+ - 添加视图控制接口
18
18
  ## 项目管理
19
19
  ### update_bim
20
20
  刷新Bim模型信息
@@ -1945,6 +1945,29 @@ mdb.remove_load_combine(name="荷载组合1")
1945
1945
  ```
1946
1946
  Returns: 无
1947
1947
  ## 视图控制
1948
+ ### set_view_camera
1949
+ 更改三维显示相机设置
1950
+ > 参数:
1951
+ > camera_point: 相机坐标点
1952
+ > focus_point: 相机焦点
1953
+ > camera_rotate:相机绕XYZ旋转角度
1954
+ > scale: 缩放系数
1955
+ ```Python
1956
+ # 示例代码
1957
+ from qtmodel import *
1958
+ odb.set_view_camera(camera_point=(-100,-100,-100),focus_point=(0,0,0))
1959
+ ```
1960
+ Returns: 无
1961
+ ### set_view_direction
1962
+ 更改三维显示默认视图
1963
+ > 参数:
1964
+ > direction: 1-空间视图1 2-前视图 3-三维视图2 4-左视图 5-顶视图 6-右视图 7-空间视图3 8-后视图 9-空间视图4 10-底视图
1965
+ ```Python
1966
+ # 示例代码
1967
+ from qtmodel import *
1968
+ odb.set_view_direction(1)
1969
+ ```
1970
+ Returns: 无
1948
1971
  ### activate_structure
1949
1972
  激活指定阶段和单元,默认激活所有
1950
1973
  > 参数:
@@ -1,3 +1,4 @@
1
+ from datetime import datetime
1
2
  from setuptools import setup, find_packages
2
3
 
3
4
  # 读取文件内容
@@ -5,12 +6,16 @@ with open("README.md", "r", encoding="utf-8") as fh:
5
6
  long_description = fh.read()
6
7
  # python setup.py sdist
7
8
  # twine upload dist/*
9
+ # 获取当前日期和时间
10
+ now = datetime.now()
11
+ today = now.date()
12
+
8
13
  setup(
9
14
  name="qtmodel",
10
- version="0.5.43",
15
+ version="0.5.44",
11
16
  author="dqy-zhj",
12
17
  author_email="1105417715@qq.com",
13
- description="python modeling for qt 24/11/27 ",
18
+ description=f"python modeling for qt {today} ",
14
19
  long_description=long_description, # 使用读取的 README.md 文件内容
15
20
  long_description_content_type="text/markdown", # 指明内容格式为markdown
16
21
  url="https://github.com/Inface0443/pyqt",
File without changes
File without changes
File without changes
File without changes