RectangleShape
סקירה כללית
RectangleShape היא מחלקה ב-Aspose.3D FOSS עבור Python. יורשת מ: ParameterizedProfile.
פרופיל מלבן תואם ל-IFC.
המחלקה הזו מגדירה 9 שיטות עבור אובייקטים של RectangleShape בתוכניות Python. השיטות הזמינות כוללות: __init__, find_property, get_bounding_box, get_entity_renderer_key, get_extent, get_property, remove_property, set_property. כל החברים הציבוריים נגישים לכל יישום Python לאחר התקנת חבילת Aspose.3D FOSS עבור Python. מאפיינים: depth, excluded, name, parent_node, parent_nodes, properties, ועוד 2.
מאפיינים
| שם | סוג | גישה | תיאור |
|---|---|---|---|
width | float | קריאה/כתיבה | מקבל או מגדיר את הרוחב. |
depth | float | קריאה/כתיבה | מקבל או מגדיר את העומק. |
parent_nodes | List['Node'] | קריאה | מקבל את צמתי ההורה. |
parent_node | Optional['Node'] | קריאה/כתיבה | מקבל או מגדיר את צומת האב. |
excluded | bool | קריאה/כתיבה | מקבל או מגדיר את excluded. |
scene | `` | קריאה/כתיבה | מקבל או מגדיר את הסצנה. |
name | str | קריאה/כתיבה | מקבל או מגדיר את השם. |
properties | PropertyCollection | קריאה | מקבל את המאפיינים. |
שיטות
| חתימה | תיאור |
|---|---|
__init__(name: str, width: float, depth: float) | Calls init(name, width, depth) במופע RectangleShape זה. |
get_extent() → 'Vector2' | מקבל את ההיקף בממד x ו-y. |
__init__(name: str) | Calls init(name) במופע RectangleShape זה. |
get_entity_renderer_key() | מחזיר את מפתח ה-entity renderer. |
get_bounding_box() → BoundingBox | לא מיושם במהדורת FOSS — נזרק בזמן ריצה. מחזיר את תיבת הגבול. |
find_property(property_name: str) | קורא ל-find_property(property_name) על המופע RectangleShape הזה. |
get_property(property: str) | קורא ל-get_property(property) על המופע RectangleShape הזה. |
set_property(property: str, value) | מגדיר את ערך המאפיין. |
remove_property(property) | קורא ל-remove_property(property) על המופע RectangleShape הזה. |