Q3DGraphsWidgetItem Class

Q3D그래프위젯아이템 클래스는 그래프에 대한 창과 렌더링 루프를 제공합니다. 더 보기...

Header: #include <Q3DGraphsWidgetItem>
CMake: find_package(Qt6 REQUIRED COMPONENTS GraphsWidgets)
target_link_libraries(mytarget PRIVATE Qt6::GraphsWidgets)
qmake: QT += graphswidgets
상속합니다: QObject
상속받습니다:

Q3DBarsWidgetItem, Q3DScatterWidgetItem, 그리고 Q3DSurfaceWidgetItem

속성

공공 기능

virtual ~Q3DGraphsWidgetItem() override
QGraphsTheme *activeTheme() const
qsizetype addCustomItem(QCustom3DItem *item)
void addTheme(QGraphsTheme *theme)
float ambientLightStrength() const
qreal aspectRatio() const
QtGraphs3D::CameraPreset cameraPreset() const
QVector3D cameraTargetPosition() const
float cameraXRotation() const
float cameraYRotation() const
float cameraZoomLevel() const
void clearSelection()
int currentFps() const
QList<QCustom3DItem *> customItems() const
QtGraphs3D::GridLineType gridLineType() const
bool hasSeries(QAbstract3DSeries *series) const
qreal horizontalAspectRatio() const
bool isOrthoProjection() const
bool isPolar() const
bool isRotationEnabled() const
bool isSelectionEnabled() const
bool isZoomAtTargetEnabled() const
bool isZoomEnabled() const
float labelMargin() const
QColor lightColor() const
float lightStrength() const
QLocale locale() const
qreal margin() const
float maxCameraXRotation() const
float maxCameraYRotation() const
float maxCameraZoomLevel() const
bool measureFps() const
float minCameraXRotation() const
float minCameraYRotation() const
float minCameraZoomLevel() const
int msaaSamples() const
QtGraphs3D::OptimizationHint optimizationHint() const
QVector3D queriedGraphPosition() const
float radialLabelOffset() const
void releaseCustomItem(QCustom3DItem *item)
void releaseTheme(QGraphsTheme *theme)
void removeCustomItem(QCustom3DItem *item)
void removeCustomItemAt(QVector3D position)
void removeCustomItems()
QSharedPointer<QQuickItemGrabResult> renderToImage(QSize imageSize = QSize()) const
Q3DScene *scene() const
QAbstract3DAxis *selectedAxis() const
QCustom3DItem *selectedCustomItem() const
qsizetype selectedCustomItemIndex() const
QtGraphs3D::ElementType selectedElement() const
int selectedLabelIndex() const
QtGraphs3D::SelectionFlags selectionMode() const
void setActiveTheme(QGraphsTheme *activeTheme)
void setAmbientLightStrength(float newAmbientLightStrength)
void setAspectRatio(qreal ratio)
void setCameraPosition(float horizontal, float vertical, float zoom = 100.0f)
void setCameraPreset(QtGraphs3D::CameraPreset preset)
void setCameraTargetPosition(QVector3D target)
void setCameraXRotation(float rotation)
void setCameraYRotation(float rotation)
void setCameraZoomLevel(float level)
void setGridLineType(const QtGraphs3D::GridLineType &gridLineType)
void setHorizontalAspectRatio(qreal ratio)
void setLabelMargin(float margin)
void setLightColor(QColor newLightColor)
void setLightStrength(float newLightStrength)
void setLocale(const QLocale &locale)
void setMargin(qreal margin)
void setMaxCameraXRotation(float rotation)
void setMaxCameraYRotation(float rotation)
void setMaxCameraZoomLevel(float level)
void setMeasureFps(bool enable)
void setMinCameraXRotation(float rotation)
void setMinCameraYRotation(float rotation)
void setMinCameraZoomLevel(float level)
void setMsaaSamples(int samples)
void setOptimizationHint(QtGraphs3D::OptimizationHint hint)
void setOrthoProjection(bool enable)
void setPolar(bool enable)
void setRadialLabelOffset(float offset)
void setRotationEnabled(bool enable)
void setSelectionEnabled(bool enable)
void setSelectionMode(const QtGraphs3D::SelectionFlags &selectionMode)
void setShadowQuality(const QtGraphs3D::ShadowQuality &shadowQuality)
void setShadowStrength(float newShadowStrength)
void setWidget(QQuickWidget *widget)
void setWrapCameraXRotation(bool wrap)
void setWrapCameraYRotation(bool wrap)
void setZoomAtTargetEnabled(bool enable)
void setZoomEnabled(bool enable)
QtGraphs3D::ShadowQuality shadowQuality() const
float shadowStrength() const
QList<QGraphsTheme *> themes() const
QQuickWidget *widget() const
bool wrapCameraXRotation() const
bool wrapCameraYRotation() const

신호

void activeThemeChanged(QGraphsTheme *activeTheme)
void ambientLightStrengthChanged()
void aspectRatioChanged(qreal ratio)
void cameraPresetChanged(QtGraphs3D::CameraPreset preset)
void cameraTargetPositionChanged(QVector3D target)
void cameraXRotationChanged(float rotation)
void cameraYRotationChanged(float rotation)
void cameraZoomLevelChanged(float zoomLevel)
void currentFpsChanged(int fps)
void gridLineTypeChanged()
void horizontalAspectRatioChanged(qreal ratio)
void labelMarginChanged(float margin)
void lightColorChanged()
void lightStrengthChanged()
void localeChanged(const QLocale &locale)
void marginChanged(qreal margin)
void maxCameraXRotationChanged(float rotation)
void maxCameraYRotationChanged(float rotation)
void maxCameraZoomLevelChanged(float zoomLevel)
void measureFpsChanged(bool enabled)
void minCameraXRotationChanged(float rotation)
void minCameraYRotationChanged(float rotation)
void minCameraZoomLevelChanged(float zoomLevel)
void msaaSamplesChanged(int samples)
void optimizationHintChanged(QtGraphs3D::OptimizationHint hint)
void orthoProjectionChanged(bool enabled)
void polarChanged(bool enabled)
void queriedGraphPositionChanged(QVector3D data)
void radialLabelOffsetChanged(float offset)
void rotationEnabledChanged(bool enable)
void selectedElementChanged(QtGraphs3D::ElementType type)
void selectionEnabledChanged(bool enable)
void selectionModeChanged(const QtGraphs3D::SelectionFlags selectionMode)
void shadowQualityChanged(QtGraphs3D::ShadowQuality quality)
void shadowStrengthChanged()
void wrapCameraXRotationChanged(bool wrap)
void wrapCameraYRotationChanged(bool wrap)
void zoomAtTargetEnabledChanged(bool enable)
void zoomEnabledChanged(bool enable)

상세 설명

이 클래스는 QWindow 를 서브클래스하고 이를 상속하는 그래프에 렌더링 루프를 제공합니다.

이 클래스를 직접 사용할 필요는 없고 그 서브클래스 중 하나를 사용해야 합니다.

멀티샘플링은 QSurfaceFormat 에서 기본적으로 꺼져 있습니다. 멀티샘플링을 사용하려면 사용자 지정 서피스 형식을 기본 서피스 형식으로 설정합니다. 사용자 지정 서피스 형식을 가져오려면 QQuick3D::idealSurfaceFormat()를 사용합니다.

또한 Q3DBarsWidgetItem, Q3DScatterWidgetItem, Q3DSurfaceWidgetItem, Qt Graphs 3D용 C++ 클래스를참조하십시오 .

프로퍼티 문서

activeTheme : QGraphsTheme*

이 속성은 그래프의 활성 테마를 보유합니다.

activeTheme 을 그래프에 사용할 활성 테마로 설정합니다. 암시적으로 addTheme()를 호출하여 테마의 소유권을 이 그래프로 이전합니다.

activeTheme 이 null이면 임시 기본 테마가 만들어집니다. 이 임시 테마는 나중에 테마를 명시적으로 설정하면 삭제됩니다. 테마를 설정한 후에도 테마의 속성을 수정할 수 있으며 수정 사항은 즉시 적용됩니다.

기능 액세스:

QGraphsTheme *activeTheme() const
void setActiveTheme(QGraphsTheme *activeTheme)

알림 신호:

void activeThemeChanged(QGraphsTheme *activeTheme)

ambientLightStrength : float

이 속성은 전체 그래프에 대한 주변광 강도를 유지합니다.

이 값은 조명 위치에 관계없이 그래프 전체에 색상이 얼마나 균일하고 밝게 표시되는지를 결정합니다.

값은 0.0f1.0f 사이여야 합니다.

기능에 액세스합니다:

float ambientLightStrength() const
void setAmbientLightStrength(float newAmbientLightStrength)

알림 신호:

void ambientLightStrengthChanged()

aspectRatio : qreal

이 속성은 가로 평면에서 가장 긴 축과 y축 사이의 그래프 배율 비율을 유지합니다.

기본값은 2.0 입니다.

참고: Q3DBarsWidgetItem 에는 영향을 미치지 않습니다.

기능에 액세스합니다:

qreal aspectRatio() const
void setAspectRatio(qreal ratio)

알림 신호:

void aspectRatioChanged(qreal ratio)

horizontalAspectRatio참조하세요 .

cameraTargetPosition : QVector3D

이 프로퍼티는 카메라 타겟 위치를 3D 공간에서 벡터 또는 버텍스로 유지합니다.

기본값은 QVector3D(0.0, 0.0, 0.0) 입니다.

유효한 좌표 값은 -1.0...1.0 사이이며, 에지 값은 해당 축 범위의 에지를 나타냅니다. 이 범위를 벗어나는 모든 값은 가장자리에 고정됩니다.

기능에 액세스합니다:

QVector3D cameraTargetPosition() const
void setCameraTargetPosition(QVector3D target)

알림 신호:

void cameraTargetPositionChanged(QVector3D target)

cameraXRotation : float

이 프로퍼티는 대상 지점을 중심으로 카메라의 X 회전 각도(도)를 보유합니다.

기능에 액세스합니다:

float cameraXRotation() const
void setCameraXRotation(float rotation)

알림 신호:

void cameraXRotationChanged(float rotation)

cameraYRotation : float

이 프로퍼티는 대상 지점을 중심으로 카메라의 Y 회전 각도를 도 단위로 저장합니다.

함수에 액세스합니다:

float cameraYRotation() const
void setCameraYRotation(float rotation)

알림 신호:

void cameraYRotationChanged(float rotation)

cameraZoomLevel : float

이 속성은 카메라 줌 레벨을 백분율로 표시합니다.

기본값인 100.0f 은 카메라에 줌 인 또는 줌 아웃이 설정되어 있지 않음을 의미합니다. 이 값은 minCameraZoomLevelmaxCameraZoomLevel 속성에 의해 제한됩니다.

기능에 액세스합니다:

float cameraZoomLevel() const
void setCameraZoomLevel(float level)

알림 신호:

void cameraZoomLevelChanged(float zoomLevel)

minCameraZoomLevelmaxCameraZoomLevel참조하세요 .

[read-only] currentFps : const int

이 프로퍼티에는 지난 1초 동안의 렌더링 결과가 저장됩니다.

FPS 측정이 활성화되면 결과는 이 읽기 전용 프로퍼티에 저장됩니다. 측정이 활성화된 후 이 값이 업데이트되기까지 최소 1초가 걸립니다.

기능 액세스:

int currentFps() const

알림 신호:

void currentFpsChanged(int fps)

measureFps참조하세요 .

gridLineType : QtGraphs3D::GridLineType

이 속성은 격자선 유형이 QtGraphs3D::GridLineType::Shader 또는 QtGraphs3D::GridLineType::Geometry 인지 여부를 보유합니다.

이 값은 모든 격자선에 영향을 줍니다.

액세스 함수:

QtGraphs3D::GridLineType gridLineType() const
void setGridLineType(const QtGraphs3D::GridLineType &gridLineType)

알림 신호:

void gridLineTypeChanged()

QtGraphs3D::GridLineType참조하세요 .

horizontalAspectRatio : qreal

이 속성은 X축과 Z축 사이의 그래프 배율 비율을 보유합니다.

0.0 값은 축 범위에 따른 자동 배율을 나타냅니다. 기본값은 0.0 입니다.

barThicknessbarSpacing 속성을 통해 가로 평면에서 배율을 처리하는 Q3DBarsWidgetItem 에는 영향을 미치지 않습니다. 극좌표 그래프도 이 속성을 무시합니다.

기능에 접근합니다:

qreal horizontalAspectRatio() const
void setHorizontalAspectRatio(qreal ratio)

알림 신호:

void horizontalAspectRatioChanged(qreal ratio)

aspectRatio, polar, Q3DBarsWidgetItem::barThickness, Q3DBarsWidgetItem::barSpacing참조하세요 .

labelMargin : float

이 속성은 축 레이블 배치의 여백을 지정합니다.

음수 값은 레이블을 플롯 영역 안쪽에 배치하고 양수 값은 플롯 영역 바깥쪽에 배치합니다. 값이 음수이면 레이블 자동 회전이 비활성화됩니다. 기본값은 다음과 같습니다. 0.1

기능에 액세스합니다:

float labelMargin() const
void setLabelMargin(float margin)

알림 신호:

void labelMarginChanged(float margin)

QAbstract3DAxis::labelAutoAngle참조하세요 .

lightColor : QColor

이 프로퍼티에는 앰비언트 및 스페큘러 라이트의 색이 저장됩니다.

이 값은 Q3DScene 에 지정된 조명에 영향을 줍니다.

함수에 액세스합니다:

QColor lightColor() const
void setLightColor(QColor newLightColor)

알림 신호:

void lightColorChanged()

lightStrength : float

이 프로퍼티는 전체 그래프의 스페큘러 라이트 강도를 유지합니다.

값은 0.0f10.0f 사이여야 합니다.

이 값은 Q3DScene 에 지정된 조명에 영향을 줍니다.

함수에 액세스합니다:

float lightStrength() const
void setLightStrength(float newLightStrength)

알림 신호:

void lightStrengthChanged()

locale : QLocale

이 속성은 다양한 숫자 레이블 서식을 지정하는 데 사용되는 로캘을 저장합니다.

기본값은 "C" 로캘입니다.

함수에 액세스합니다:

QLocale locale() const
void setLocale(const QLocale &locale)

알림 신호:

void localeChanged(const QLocale &locale)

QValue3DAxis::labelFormat참조하세요 .

margin : qreal

이 속성은 플로팅 가능한 그래프 영역의 가장자리와 그래프 배경의 가장자리 사이에 남은 공간에 사용되는 절대값을 보유합니다.

여백 값이 음수인 경우 여백은 자동으로 결정되며 계열 내 항목의 크기와 그래프 유형에 따라 달라질 수 있습니다. 그래프 가로 세로 비율이 기본값에서 변경되지 않은 경우 이 값은 Y축 범위의 일부분으로 해석됩니다. 기본값은 -1.0 입니다.

참고: 분산형 그래프의 여백을 자동으로 결정된 여백보다 작게 설정하면 그래프 가장자리에 있는 분산형 항목이 그래프 배경과 겹칠 수 있습니다.

참고: 분산형 및 표면 그래프에서 여백이 축 레이블 크기에 비해 작은 경우 축의 가장자리 레이블 위치가 인접 축의 가장자리 레이블과 겹치지 않도록 조정됩니다.

기능에 액세스합니다:

qreal margin() const
void setMargin(qreal margin)

알림 신호:

void marginChanged(qreal margin)

maxCameraXRotation : float

이 속성은 대상 지점을 중심으로 카메라의 최대 X 회전 각도(도)를 보유합니다.

기능에 액세스합니다:

float maxCameraXRotation() const
void setMaxCameraXRotation(float rotation)

알림 신호:

void maxCameraXRotationChanged(float rotation)

maxCameraYRotation : float

이 프로퍼티는 대상 지점을 중심으로 카메라의 최대 Y 회전 각도를 도 단위로 저장합니다.

함수에 액세스합니다:

float maxCameraYRotation() const
void setMaxCameraYRotation(float rotation)

알림 신호:

void maxCameraYRotationChanged(float rotation)

maxCameraZoomLevel : float

이 속성은 허용되는 최대 카메라 줌 레벨을 유지합니다.

최대 레벨이 기존 최소 레벨보다 낮은 새 값으로 설정되면 최소 레벨도 새 최대 레벨로 조정됩니다. 현재 cameraZoomLevel 이 새 범위를 벗어나면 이 값도 조정됩니다. 기본값은 500.0f 입니다.

기능에 액세스합니다:

float maxCameraZoomLevel() const
void setMaxCameraZoomLevel(float level)

알림 신호:

void maxCameraZoomLevelChanged(float zoomLevel)

cameraZoomLevelminCameraZoomLevel참조하세요 .

measureFps : bool

이 속성은 렌더링이 온디맨드가 아닌 연속적으로 수행되는지 여부를 보유합니다.

true 인 경우 렌더링이 계속되고 currentFps 속성 값이 업데이트됩니다. 기본값은 false 입니다.

함수 액세스:

bool measureFps() const
void setMeasureFps(bool enable)

알림 신호:

void measureFpsChanged(bool enabled)

currentFps참조하세요 .

minCameraXRotation : float

이 속성은 대상 지점을 중심으로 카메라의 최소 X 회전 각도(도)를 유지합니다.

기능에 액세스합니다:

float minCameraXRotation() const
void setMinCameraXRotation(float rotation)

알림 신호:

void minCameraXRotationChanged(float rotation)

minCameraYRotation : float

이 프로퍼티는 대상 지점을 중심으로 카메라의 최소 Y 회전 각도(도)를 유지합니다.

함수에 액세스합니다:

float minCameraYRotation() const
void setMinCameraYRotation(float rotation)

알림 신호:

void minCameraYRotationChanged(float rotation)

minCameraZoomLevel : float

이 속성은 허용되는 최소 카메라 줌 레벨을 유지합니다.

최소 레벨이 기존 최대 레벨보다 높은 새 값으로 설정되면 최대 레벨도 새 최소 레벨로 조정됩니다. 현재 줌 레벨이 새 범위를 벗어나면 이 값도 조정됩니다. 최소 카메라 줌 레벨은 1.0f 이하로 설정할 수 없습니다. 기본값은 10.0f 입니다.

기능에 액세스합니다:

float minCameraZoomLevel() const
void setMinCameraZoomLevel(float level)

알림 신호:

void minCameraZoomLevelChanged(float zoomLevel)

cameraZoomLevelmaxCameraZoomLevel참조하세요 .

msaaSamples : int

이 속성은 MSAA에서 사용된 샘플 수를 보유합니다.

사용된 MSAA 샘플 수를 samples 로 설정합니다. 샘플 수는 0, 2, 4, 8 중 하나 일 수 있습니다.

기능에 액세스합니다:

int msaaSamples() const
void setMsaaSamples(int samples)

알림 신호:

void msaaSamplesChanged(int samples)

optimizationHint : QtGraphs3D::OptimizationHint

렌더링 최적화를 위해 기본 모드 또는 레거시 모드를 사용할지 여부를 지정합니다.

기본 모드는 인스턴스 렌더링을 사용하며 대부분의 시스템에서 최상의 성능으로 전체 기능 세트를 제공합니다. 정적 모드는 그래프 렌더링을 최적화하며 변경되지 않는 대규모 데이터 세트에 이상적입니다. 동적 데이터 변경 및 항목 회전 시 속도가 느려집니다. 선택이 최적화되지 않으므로 대규모 데이터 세트에 정적 모드를 사용하는 것은 바람직하지 않습니다. 정적 최적화는 분산형 그래프에서만 작동합니다. 레거시 모드는 인스턴스화 없이 그래프의 모든 항목을 개별적으로 렌더링합니다. 기본 모드가 작동하지 않는 경우, 즉 대상 시스템이 인스턴싱을 지원하지 않는 경우에만 사용해야 합니다. 기본값은 QtGraphs3D::OptimizationHint::Default 입니다.

참고: 일부 환경에서는 모든 항목이 단일 그리기 호출을 사용하여 렌더링되고 그래픽 드라이버마다 호출당 최대 버텍스 수를 다르게 지원하기 때문에 정적 최적화를 사용하는 대형 그래프가 렌더링되지 않을 수 있습니다. 이는 주로 32비트 및 OpenGL ES2 플랫폼에서 발생하는 문제입니다. 이 문제를 해결하려면 버텍스 수가 적은 아이템 메쉬를 선택하거나 포인트 메쉬를 사용하세요.

함수에 액세스합니다:

QtGraphs3D::OptimizationHint optimizationHint() const
void setOptimizationHint(QtGraphs3D::OptimizationHint hint)

알림 신호:

void optimizationHintChanged(QtGraphs3D::OptimizationHint hint)

QAbstract3DSeries::mesh참조하세요 .

orthoProjection : bool

이 속성은 그래프를 표시하는 데 직교 투영을 사용할지 여부를 보유합니다.

기본값은 false 입니다.

참고: true 로 설정하면 그림자가 비활성화됩니다.

기능에 액세스합니다:

bool isOrthoProjection() const
void setOrthoProjection(bool enable)

알림 신호:

void orthoProjectionChanged(bool enabled)

QAbstract3DAxis::labelAutoAngle참조하세요 .

polar : bool

이 속성은 가로축이 극축으로 변경되는지 여부를 유지합니다.

true 인 경우 x축은 각축이 되고 z축은 방사형 축이 됩니다. 막대 그래프에는 극좌표 모드를 사용할 수 없습니다.

기본값은 false 입니다.

기능에 접근합니다:

bool isPolar() const
void setPolar(bool enable)

통지 신호:

void polarChanged(bool enabled)

orthoProjectionradialLabelOffset참조하세요 .

[read-only] queriedGraphPosition : const QVector3D

이 속성은 각 축을 따라 쿼리된 최신 그래프 위치 값을 보유합니다.

이 읽기 전용 속성에는 Q3DScene::graphPositionQuery 의 결과가 포함됩니다. 값은 [-1, 1] 범위로 정규화됩니다. 쿼리된 위치가 그래프 범위를 벗어난 경우 값은 실제 위치를 반영하지 않고 대신 범위 밖의 정의되지 않은 위치 [-1, 1] 를 나타냅니다. 쿼리가 수행될 때까지 값은 정의되지 않은 상태로 유지됩니다.

특정 화면 위치와 일치하는 하나의 정확한 3D 좌표는 없으므로 일관성을 유지하기 위해 쿼리는 항상 그래프를 둘러싼 보이지 않는 상자의 안쪽 면에 대해 수행됩니다.

참고: 막대 그래프는 그래프 바닥 수준에서만 그래프 위치를 쿼리할 수 있으므로 막대 그래프의 경우 y값은 항상 0이며 그래프의 바닥이 포함된 화면 위치에서만 유효한 쿼리를 수행할 수 있습니다.

기능에 액세스합니다:

QVector3D queriedGraphPosition() const

알림 신호:

void queriedGraphPositionChanged(QVector3D data)

Q3DScene::graphPositionQuery참조하세요 .

radialLabelOffset : float

이 속성은 방사형 극축의 축 레이블에 대한 정규화된 수평 오프셋을 유지합니다.

0.0 값은 레이블이 0각 각축 격자선 옆에 그려져야 함을 나타냅니다. 1.0 값은 레이블이 그래프 배경의 가장자리에서 일반적인 위치에 그려지도록 지정합니다. 기본값은 1.0 입니다.

polar 속성 값이 false 인 경우 이 속성은 무시됩니다.

기능에 액세스합니다:

float radialLabelOffset() const
void setRadialLabelOffset(float offset)

알림 신호:

void radialLabelOffsetChanged(float offset)

polar참조하세요 .

rotationEnabled : bool

이 프로퍼티는 이 입력 핸들러가 그래프 회전을 허용할지 여부를 저장합니다.

기본값은 true 입니다.

함수 액세스:

bool isRotationEnabled() const
void setRotationEnabled(bool enable)

알림 신호:

void rotationEnabledChanged(bool enable)

[read-only] scene : Q3DScene* const

이 프로퍼티에는 장면을 조작하고 장면 요소에 액세스하는 데 사용할 수 있는 Q3DScene 포인터가 저장됩니다.

이 프로퍼티는 읽기 전용입니다.

함수 액세스:

Q3DScene *scene() const

[read-only] selectedElement : const QtGraphs3D::ElementType

이 속성은 그래프에서 선택한 요소를 보유합니다.

이 속성은 선택한 요소 유형을 쿼리하는 데 사용할 수 있습니다. 이 유형은 그래프에서 새 선택이 이루어지고 selectedElementChanged 신호가 전송될 때까지 유효합니다.

이 신호는 예를 들어 그래프 갤러리의 Scatter Graph 탭 아래 예시된 것처럼 사용자 지정 입력 핸들러를 구현하는 데 사용할 수 있습니다.

기능에 액세스합니다:

QtGraphs3D::ElementType selectedElement() const

알림 신호:

void selectedElementChanged(QtGraphs3D::ElementType type)

selectedLabelIndex(), selectedAxis(), selectedCustomItemIndex(), selectedCustomItem(), Q3DBarsWidgetItem::selectedSeries(), Q3DScatterWidgetItem::selectedSeries(), Q3DSurfaceWidgetItem::selectedSeries(), Q3DScene::setSelectionQueryPosition()도 참조하세요 .

selectionEnabled : bool

이 프로퍼티는 이 입력 핸들러가 그래프에서 선택을 허용할지 여부를 저장합니다.

기본값은 true 입니다.

액세스 함수:

bool isSelectionEnabled() const
void setSelectionEnabled(bool enable)

알림 신호:

void selectionEnabledChanged(bool enable)

selectionMode : QtGraphs3D::SelectionFlags

아이템 선택 모드.

SelectionFlags의 조합입니다. 기본값은 Item 입니다. 그래프 유형에 따라 다른 선택 모드를 지원합니다.

접근 기능:

QtGraphs3D::SelectionFlags selectionMode() const
void setSelectionMode(const QtGraphs3D::SelectionFlags &selectionMode)

통지 신호:

void selectionModeChanged(const QtGraphs3D::SelectionFlags selectionMode)

QtGraphs3D::SelectionFlags참조하세요 .

shadowQuality : QtGraphs3D::ShadowQuality

이 프로퍼티는 그림자의 퀄리티를 보유합니다.

ShadowQuality 열거형 값 중 하나입니다. 기본값은 Medium 입니다.

참고: 그림자 품질을 특정 수준으로 설정하는 데 실패하면 성공적으로 설정될 때까지 수준이 낮아집니다. 변경이 이루어질 때마다 shadowQualityChanged 신호가 전송됩니다.

기능에 액세스합니다:

QtGraphs3D::ShadowQuality shadowQuality() const
void setShadowQuality(const QtGraphs3D::ShadowQuality &shadowQuality)

알림 신호:

void shadowQualityChanged(QtGraphs3D::ShadowQuality quality)

QtGraphs3D::ShadowQuality참조하세요 .

shadowStrength : float

이 속성은 전체 그래프의 그림자 강도를 유지합니다.

숫자가 높을수록 그림자가 더 어두워집니다. 값은 0.0100.0 사이여야 합니다.

이 값은 Q3DScene 에 지정된 조명에 영향을 줍니다.

기능에 액세스합니다:

float shadowStrength() const
void setShadowStrength(float newShadowStrength)

알림 신호:

void shadowStrengthChanged()

wrapCameraXRotation : bool

이 속성은 X 회전의 최소 및 최대 제한의 동작을 유지합니다.

true 로 설정하면 카메라의 X 회전이 최소에서 최대로, 최대에서 최소로 래핑됩니다. false 로 설정하면 카메라의 X 회전이 최소값과 최대값에 의해 결정된 섹터로 제한됩니다. 기본값은 true 으로 설정됩니다.

기능 액세스:

bool wrapCameraXRotation() const
void setWrapCameraXRotation(bool wrap)

알림 신호:

void wrapCameraXRotationChanged(bool wrap)

wrapCameraYRotation : bool

이 속성은 Y 회전의 최소 및 최대 제한의 동작을 유지합니다.

true 인 경우 카메라의 Y 회전은 최소에서 최대로, 최대에서 최소로 래핑됩니다. false 인 경우 카메라의 Y 회전은 최소값과 최대값에 의해 결정된 섹터로 제한됩니다. 기본적으로 true 로 설정됩니다.

기능에 액세스합니다:

bool wrapCameraYRotation() const
void setWrapCameraYRotation(bool wrap)

알림 신호:

void wrapCameraYRotationChanged(bool wrap)

zoomAtTargetEnabled : bool

이 속성은 확대/축소 후 그래프의 확대된 점이 같은 위치에 유지되도록 확대/축소 시 카메라 대상을 변경할지 여부를 지정합니다.

기본값은 true 입니다.

기능에 액세스합니다:

bool isZoomAtTargetEnabled() const
void setZoomAtTargetEnabled(bool enable)

알림 신호:

void zoomAtTargetEnabledChanged(bool enable)

zoomEnabled : bool

이 프로퍼티는 이 입력 핸들러가 그래프 확대/축소를 허용할지 여부를 저장합니다.

기본값은 true 입니다.

함수 액세스:

bool isZoomEnabled() const
void setZoomEnabled(bool enable)

알림 신호:

void zoomEnabledChanged(bool enable)

멤버 함수 문서

[override virtual noexcept] Q3DGraphsWidgetItem::~Q3DGraphsWidgetItem()

Q3DGraphsWidgetItem 을 파괴합니다.

qsizetype Q3DGraphsWidgetItem::addCustomItem(QCustom3DItem *item)

그래프에 QCustom3DItem item 을 추가합니다. 그래프는 추가된 항목의 소유권을 갖습니다.

추가 작업이 성공하면 추가된 항목의 인덱스를, null 항목을 추가하려고 하면 -1을, 이미 추가된 항목을 추가하려고 하면 해당 항목의 인덱스를 반환합니다.

항목은 삽입된 순서대로 렌더링됩니다. 단색 및 투명 항목이 있는 경우 렌더링 순서를 고려해야 합니다.

removeCustomItems(), removeCustomItem(), removeCustomItemAt() 및 customItems()도 참조하세요 .

void Q3DGraphsWidgetItem::addTheme(QGraphsTheme *theme)

주어진 theme 을 그래프에 추가합니다. 추가 테마를 통해 추가된 테마는 바로 사용할 수 없습니다. 그래프에는 테마의 소유권만 부여됩니다. theme 은 null이거나 다른 그래프에 이미 추가되어 있으면 안 됩니다.

releaseTheme() 및 setActiveTheme()도 참조하세요 .

void Q3DGraphsWidgetItem::clearSelection()

첨부된 모든 시리즈에서 선택을 지웁니다.

QList<QCustom3DItem *> Q3DGraphsWidgetItem::customItems() const

추가된 모든 사용자 정의 항목의 목록을 반환합니다.

addCustomItem()도 참조하세요 .

bool Q3DGraphsWidgetItem::hasSeries(QAbstract3DSeries *series) const

series 가 그래프에 이미 추가되었는지 여부를 반환합니다.

void Q3DGraphsWidgetItem::releaseCustomItem(QCustom3DItem *item)

주어진 item 의 소유권을 되찾고 그래프에서 item 을 제거합니다.

참고: 동일한 항목이 그래프에 다시 추가되면 텍스처 또는 텍스처 파일을 다시 설정해야 합니다.

QCustom3DItem::setTextureImage() 및 QCustom3DItem::setTextureFile()도 참조하세요 .

void Q3DGraphsWidgetItem::releaseTheme(QGraphsTheme *theme)

이 그래프에 추가된 경우 theme 의 소유권을 호출자에게 다시 반환합니다. 릴리스된 theme 을 사용 중인 경우 새 기본 테마가 만들어지고 활성 상태로 설정됩니다.

기본 테마를 해제했다가 나중에 다시 추가하면 다른 테마처럼 작동합니다.

addTheme() 및 setActiveTheme()도 참조하세요 .

void Q3DGraphsWidgetItem::removeCustomItem(QCustom3DItem *item)

사용자 정의 item 를 제거합니다. 할당된 리소스를 삭제합니다.

void Q3DGraphsWidgetItem::removeCustomItemAt(QVector3D position)

position 에서 모든 사용자 지정 항목을 제거합니다. 해당 항목에 할당된 리소스를 삭제합니다.

void Q3DGraphsWidgetItem::removeCustomItems()

모든 사용자 지정 항목을 제거합니다. 해당 항목에 할당된 리소스를 삭제합니다.

QSharedPointer<QQuickItemGrabResult> Q3DGraphsWidgetItem::renderToImage(QSize imageSize = QSize()) const

현재 프레임을 imageSize 의 이미지로 렌더링합니다. 결과가 준비되면 렌더링된 이미지에 액세스하는 데 사용할 수 있는 공유 포인터를 반환합니다. 이미지가 현재 앤티앨리어싱 설정으로 렌더링됩니다.

QQuickItem::grabToImage()도 참조하세요 .

QAbstract3DAxis *Q3DGraphsWidgetItem::selectedAxis() const

모든 레이블 유형으로 selectedElementChanged 신호를 수신한 후 선택한 축을 가져오는 데 사용할 수 있습니다. 선택은 다음 selectedElementChanged 신호까지 유효합니다.

선택한 축에 대한 포인터를 반환하거나 null을 반환합니다.

selectedElement참조하세요 .

QCustom3DItem *Q3DGraphsWidgetItem::selectedCustomItem() const

Q3D그래프위젯아이템::엘리먼트타입::커스텀아이템 타입으로 selectedElementChanged 신호를 수신한 후 선택한 커스텀 아이템을 가져오는 데 사용할 수 있습니다. 항목의 소유권은 그래프에 유지됩니다. 선택은 다음 selectedElementChanged 신호까지 유효합니다.

선택한 사용자 정의 항목에 대한 포인터 또는 null을 반환합니다.

selectedElement참조하세요 .

qsizetype Q3DGraphsWidgetItem::selectedCustomItemIndex() const

Q3D그래프위젯아이템::엘리먼트타입::커스텀아이템 타입으로 selectedElementChanged 신호를 수신한 후 선택한 커스텀 아이템의 인덱스를 쿼리하는 데 사용할 수 있습니다. 선택은 다음 selectedElementChanged 신호까지 유효합니다.

선택한 사용자 지정 항목의 인덱스 또는 -1을 반환합니다.

selectedElement참조하세요 .

int Q3DGraphsWidgetItem::selectedLabelIndex() const

모든 라벨 유형으로 selectedElementChanged 신호를 수신한 후 선택한 라벨의 인덱스를 쿼리하는 데 사용할 수 있습니다. 선택은 다음 selectedElementChanged 신호까지 유효합니다.

선택한 레이블의 인덱스 또는 -1을 반환합니다.

selectedElement도 참조하세요 .

void Q3DGraphsWidgetItem::setCameraPosition(float horizontal, float vertical, float zoom = 100.0f)

카메라 회전과 거리를 설정하는 유틸리티 기능.horizontalvertical 은 사용할 카메라 회전을 정의합니다. 선택적으로 zoom 매개변수를 지정하여 minCameraZoomLevelmaxCameraZoomLevel 속성에 정의된 범위 내에서 카메라의 줌 비율을 설정할 수 있습니다.

void Q3DGraphsWidgetItem::setWidget(QQuickWidget *widget)

지정된 widget 인스턴스를 위젯 항목의 QQuickWidget 로 사용하도록 설정합니다. 그래프는 QQuickWidget 의 콘텐츠로 설정됩니다.

그래프는 QQuickWidgets를 사용하는 위젯 애플리케이션에서만 렌더링할 수 있습니다.

사용 예:

QQuickWidget quickwidget;
Q3DBarsWidgetItem graph;
graph.setWidget(&quickwidget);

widget()도 참조하세요 .

QList<QGraphsTheme *> Q3DGraphsWidgetItem::themes() const

추가된 모든 테마의 목록을 반환합니다.

addTheme()도 참조하세요 .

QQuickWidget *Q3DGraphsWidgetItem::widget() const

위젯 항목에 설정된 QQuickWidget 인스턴스에 대한 포인터를 반환합니다.

setWidget()도 참조하세요 .

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