QConeGeometry Class

class Qt3DExtras::QConeGeometry

QConeGeometry 클래스를 사용하면 3D 공간에서 원뿔을 만들 수 있습니다. 더 보기...

Header: #include <Qt3DExtras/QConeGeometry>
CMake: find_package(Qt6 REQUIRED COMPONENTS 3dextras)
target_link_libraries(mytarget PRIVATE Qt6::3dextras)
qmake: QT += 3dextras
QML에서: ConeGeometry
상속합니다: Qt3DCore::QGeometry
상태: Deprecated

속성

공용 기능

float bottomRadius() const
bool hasBottomEndcap() const
bool hasTopEndcap() const
Qt3DCore::QAttribute *indexAttribute() const
float length() const
Qt3DCore::QAttribute *normalAttribute() const
Qt3DCore::QAttribute *positionAttribute() const
int rings() const
int slices() const
Qt3DCore::QAttribute *texCoordAttribute() const
float topRadius() const
void updateIndices()
void updateVertices()

공용 슬롯

void setBottomRadius(float bottomRadius)
void setHasBottomEndcap(bool hasBottomEndcap)
void setHasTopEndcap(bool hasTopEndcap)
void setLength(float length)
void setRings(int rings)
void setSlices(int slices)
void setTopRadius(float topRadius)

신호

void bottomRadiusChanged(float bottomRadius)
void hasBottomEndcapChanged(bool hasBottomEndcap)
void hasTopEndcapChanged(bool hasTopEndcap)
void lengthChanged(float length)
void ringsChanged(int rings)
void slicesChanged(int slices)
void topRadiusChanged(float topRadius)

상세 설명

QConeGeometry 클래스는 QConeMesh 에서 내부적으로 가장 일반적으로 사용되지만 사용자 정의 Qt3DRender::QGeometryRenderer 하위 클래스에서도 사용할 수 있습니다. 이 클래스는 원뿔과 잘린 원뿔을 모두 생성할 수 있습니다.

프로퍼티 문서

bottomRadius : float

원뿔의 아래쪽 반경을 유지합니다.

기능에 액세스합니다:

float bottomRadius() const
void setBottomRadius(float bottomRadius)

알림 신호:

void bottomRadiusChanged(float bottomRadius)

hasBottomEndcap : bool

원뿔 바닥이 막혀 있는지 또는 열려 있는지 여부를 결정합니다.

기능에 접근합니다:

bool hasBottomEndcap() const
void setHasBottomEndcap(bool hasBottomEndcap)

알림 신호:

void hasBottomEndcapChanged(bool hasBottomEndcap)

hasTopEndcap : bool

원뿔 상단의 뚜껑이 닫혀 있는지 또는 열려 있는지 결정합니다.

기능에 접근합니다:

bool hasTopEndcap() const
void setHasTopEndcap(bool hasTopEndcap)

알림 신호:

void hasTopEndcapChanged(bool hasTopEndcap)

[read-only] indexAttribute : Qt3DCore::QAttribute* const

지오메트리 인덱스 속성을 보유합니다.

함수에 액세스합니다:

Qt3DCore::QAttribute *indexAttribute() const

length : float

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

기능에 액세스합니다:

float length() const
void setLength(float length)

알림 신호:

void lengthChanged(float length)

[read-only] normalAttribute : Qt3DCore::QAttribute* const

지오메트리 노멀 속성을 보유합니다.

함수에 액세스합니다:

Qt3DCore::QAttribute *normalAttribute() const

[read-only] positionAttribute : Qt3DCore::QAttribute* const

지오메트리 위치 속성을 보유합니다.

함수에 액세스합니다:

Qt3DCore::QAttribute *positionAttribute() const

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)

[read-only] texCoordAttribute : Qt3DCore::QAttribute* const

지오메트리 텍스처 좌표 속성을 보유합니다.

함수에 액세스합니다:

Qt3DCore::QAttribute *texCoordAttribute() const

topRadius : float

원뿔의 상단 반경을 유지합니다.

기능에 액세스합니다:

float topRadius() const
void setTopRadius(float topRadius)

알림 신호:

void topRadiusChanged(float topRadius)

멤버 함수 문서

void QConeGeometry::updateIndices()

지오메트리 속성을 기반으로 인덱스를 업데이트합니다.

void QConeGeometry::updateVertices()

지오메트리 속성을 기반으로 버텍스를 업데이트합니다.

© 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.