ParameterizedProfile

ParameterizedProfile

ภาพรวม

ParameterizedProfile เป็นคลาสใน Aspose.3D FOSS สำหรับ Python. สืบทอดจาก: Profile.

คลาสฐานของโปรไฟล์ที่กำหนดพารามิเตอร์ทั้งหมด.

คลาสนี้ประกาศ 8 เมธอดสำหรับอ็อบเจกต์ ParameterizedProfile ในโปรแกรม Python. เมธอดที่มีรวมถึง: __init__, find_property, get_bounding_box, get_entity_renderer_key, get_extent, get_property, remove_property, set_property. สมาชิกสาธารณะทั้งหมดสามารถเข้าถึงได้โดยแอปพลิเคชัน Python ใดก็ได้หลังจากติดตั้งแพคเกจ Aspose.3D FOSS สำหรับ Python. คุณสมบัติ: excluded, name, parent_node, parent_nodes, properties, scene.

คุณสมบัติ

ชื่อประเภทการเข้าถึงคำอธิบาย
parent_nodesList['Node']อ่านรับโหนดพาเรนต์.
parent_nodeOptional['Node']อ่าน/เขียนรับหรือกำหนดโหนดแม่.
excludedboolอ่าน/เขียนรับหรือกำหนดค่าที่ถูกยกเว้น.
scene``อ่าน/เขียนรับหรือกำหนดฉาก.
namestrอ่าน/เขียนรับหรือกำหนดชื่อ.
propertiesPropertyCollectionอ่านรับคุณสมบัติ.

วิธีการ

ลายเซ็นคำอธิบาย
__init__(name: str)Calls init(name) บน ParameterizedProfile ตัวอย่างนี้.
get_extent() → 'Vector2'รับค่าขนาดในมิติ x และ y.
get_entity_renderer_key()ส่งคืนคีย์ของเรนเดอร์เอนทิตี.
get_bounding_box() → BoundingBoxไม่ได้รับการดำเนินการในรุ่น FOSS — โยนข้อยกเว้นขณะรันไทม์. คืนค่า bounding box.
find_property(property_name: str)เรียก find_property(property_name) บนอินสแตนซ์ ParameterizedProfile นี้.
get_property(property: str)เรียก get_property(property) บนอินสแตนซ์ ParameterizedProfile นี้.
set_property(property: str, value)ตั้งค่าค่าของคุณสมบัติ.
remove_property(property)เรียก remove_property(property) บนอินสแตนซ์ของ ParameterizedProfile นี้.

ดูเพิ่มเติม

 ภาษาไทย