QCylinderMesh Class

class Qt3DExtras::QCylinderMesh

원통형 메시. 더 보기...

헤더: #include <Qt3DExtras/QCylinderMesh>
CMake: find_package(Qt6 REQUIRED COMPONENTS 3dextras)
target_link_libraries(mytarget PRIVATE Qt6::3dextras)
qmake: QT += 3dextras
QML에서: CylinderMesh
상속합니다: Qt3DRender::QGeometryRenderer
상태: Deprecated

속성

공용 기능

QCylinderMesh(Qt3DCore::QNode *parent = nullptr)
float length() const
float radius() const
int rings() const
int slices() const

공용 슬롯

void setLength(float length)
void setRadius(float radius)
void setRings(int rings)
void setSlices(int slices)

신호

void lengthChanged(float length)
void radiusChanged(float radius)
void ringsChanged(int rings)
void slicesChanged(int slices)

상세 설명

이 컴포넌트는 머티리얼 컴포넌트와 결합하여 원통을 렌더링하는 데 사용할 수 있습니다.

프로퍼티 문서

length : float

원통의 길이를 유지합니다.

기능에 액세스합니다:

float length() const
void setLength(float length)

알림 신호:

void lengthChanged(float length)

radius : float

원통의 반지름을 보유합니다.

기능에 액세스합니다:

float radius() const
void setRadius(float radius)

알림 신호:

void radiusChanged(float radius)

rings : int

메시의 링 수를 보유합니다.

함수에 액세스합니다:

int rings() const
void setRings(int rings)

알림 신호:

void ringsChanged(int rings)

slices : int

메시의 슬라이스 수를 보유합니다.

함수에 액세스합니다:

int slices() const
void setSlices(int slices)

알림 신호:

void slicesChanged(int slices)

멤버 함수 문서

[explicit] QCylinderMesh::QCylinderMesh(Qt3DCore::QNode *parent = nullptr)

parent 를 사용하여 새 QCylinderMesh를 생성합니다.

© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.