이 페이지에서

Q3DGraphsWidgetItem Class

Q3DGraphsWidgetItem 클래스는 그래프를 위한 창과 렌더링 루프를 제공합니다. 더 보기...

헤더: #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
qreal cutoffMargin() const
void doPicking(QPoint point)
void doRayPicking(QVector3D origin, QVector3D direction)
QtGraphs3D::DragMode dragMode() const
QtGraphs3D::GridLineType gridLineType() const
bool hasSeries(QAbstract3DSeries *series) const
qreal horizontalAspectRatio() const
bool isOrthoProjection() const
bool isPanEnabled() 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
QtGraphs3D::ShadowQuality shadowQuality() const
float shadowStrength() const
QList<QGraphsTheme *> themes() const
QtGraphs3D::TransparencyTechnique transparencyTechnique() const
QQuickWidget *widget() const
bool wrapCameraXRotation() const
bool wrapCameraYRotation() 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 setCutoffMargin(qreal margin)
void setDragMode(QtGraphs3D::DragMode newDragMode)
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)
(since 6.12) void setPanButton(Qt::MouseButtons button)
void setPanEnabled(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 setTransparencyTechnique(QtGraphs3D::TransparencyTechnique technique)
void setWidget(QQuickWidget *widget)
void setWrapCameraXRotation(bool wrap)
void setWrapCameraYRotation(bool wrap)
void setZoomAtTargetEnabled(bool enable)
void setZoomEnabled(bool enable)

신호

void activeThemeChanged(QGraphsTheme*activeTheme)
void ambientLightStrengthChanged()
void aspectRatioChanged(qreal 비율)
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 cutoffMarginChanged(qreal newMargin)
void dragModeChanged(QtGraphs3D::DragMode 드래그 모드)
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 panEnabledChanged(bool enable)
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 transparencyTechniqueChanged(QtGraphs3D::TransparencyTechnique technique)
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)

Notifier 신호:

void activeThemeChanged(QGraphsTheme *activeTheme)

ambientLightStrength : float

이 속성은 그래프 전체의 주변광 강도를 결정합니다.

이 값은 빛의 위치와 관계없이 그래프 전체에 걸쳐 색상이 얼마나 균일하고 밝게 표시될지를 결정합니다.

값은 0.0f 과 1.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도 참조하십시오 .

cameraPreset : QtGraphs3D::CameraPreset

카메라가 현재 사용하고 있는 사전 설정된 카메라 위치입니다. 이 값은 CameraPreset 열거형의 값 중 하나로 설정할 수 있습니다. 이 속성을 사용하면 그래프를 볼 때 적용할 미리 정의된 카메라 각도를 설정할 수 있습니다.

기본적으로 카메라 프리셋은 CameraPreset::FrontLow 로 설정되어 있습니다.

참고: cameraXRotation, cameraYRotation 또는 cameraZoomLevel 속성을 설정했거나 setCustomCamera()를 호출한경우 , setCameraPreset()이 다시 호출되거나 프리셋이 다른 값으로 변경될 때까지 이 속성은 CameraPreset::NoPreset을 반환합니다.

액세스 함수:

QtGraphs3D::CameraPreset cameraPreset() const
void setCameraPreset(QtGraphs3D::CameraPreset preset)

Notifier 신호:

void cameraPresetChanged(QtGraphs3D::CameraPreset preset)

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 의 기본값은 카메라에 확대 또는 축소 설정이 되어 있지 않음을 의미합니다. 이 값은 minCameraZoomLevel 및 maxCameraZoomLevel 속성에 의해 제한됩니다.

액세스 함수:

float cameraZoomLevel() const
void setCameraZoomLevel(float level)

알림 신호:

void cameraZoomLevelChanged(float zoomLevel)

minCameraZoomLevel 및 maxCameraZoomLevel도 참조하십시오 .

[read-only] currentFps : int

이 속성은 지난 1초 동안의 렌더링 결과를 저장합니다.

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

액세스 함수:

int currentFps() const

알림 신호:

void currentFpsChanged(int fps)

measureFps도 참조하십시오 .

[since 6.11] cutoffMargin : qreal

이 속성은 축 한계와 그래프 요소가 제거되는 위치 사이의 간격에 사용되는 값을 저장합니다.

참고: 막대 그래프에는 영향을 미치지않습니다 .

이 열거형은 Qt 6.11에서 도입되었습니다.

액세스 함수:

qreal cutoffMargin() const
void setCutoffMargin(qreal margin)

Notifier 신호:

void cutoffMarginChanged(qreal newMargin)

[since 6.12] dragMode : QtGraphs3D::DragMode

그래프에서 발생하는 드래그 이벤트가 어떻게 해석될지 결정하며, ` QtGraphs3D::DragMode ` 열거형의 값 중 하나를 가집니다.

기본값은 ` QtGraphs3D::DragMode::Rotate`입니다.

이 열거형은 Qt 6.12에서 도입되었습니다.

액세스 함수:

QtGraphs3D::DragMode dragMode() const
void setDragMode(QtGraphs3D::DragMode newDragMode)

알림 신호:

void dragModeChanged(QtGraphs3D::DragMode dragMode)

panEnabled도 참조하십시오 .

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 입니다.

이 속성은 Q3DBarsWidgetItem 에는 영향을 미치지 않으며, 는 barThickness 및 barSpacing 속성을 통해 수평면의 스케일링을 처리합니다. 극좌표 그래프도 이 속성을 무시합니다.

액세스 함수:

qreal horizontalAspectRatio() const
void setHorizontalAspectRatio(qreal ratio)

알림 신호:

void horizontalAspectRatioChanged(qreal ratio)

aspectRatio, polar, Q3DBarsWidgetItem::barThickness 및 Q3DBarsWidgetItem::barSpacing도 참조하십시오 .

labelMargin : float

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

음수 값을 지정하면 레이블이 플롯 영역 안쪽에 배치되고, 양수 값을 지정하면 플롯 영역 바깥쪽에 배치됩니다. 값이 음수일 경우 레이블의 자동 회전 기능이 비활성화됩니다. 기본값은 0.1

Access 함수:

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.0f 와 10.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축 회전 각도(도)를 저장합니다. 기본값은 180.0

액세스 함수:

float maxCameraXRotation() const
void setMaxCameraXRotation(float rotation)

알림 신호:

void maxCameraXRotationChanged(float rotation)

maxCameraYRotation : float

이 속성은 카메라가 대상 지점을 중심으로 회전할 때의 최대 Y축 회전 각도(도 단위)를 나타냅니다. 기본값은 90.0

액세스 함수:

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)

관련 항목: cameraZoomLevel 및 minCameraZoomLevel.

measureFps : bool

이 속성은 렌더링이 요청 시마다 수행되는 것이 아니라 지속적으로 수행되는지 여부를 나타냅니다.

true 인 경우, 렌더링은 연속적으로 수행되며 currentFps 속성의 값이 업데이트됩니다. 기본값은 false 입니다.

액세스 함수:

bool measureFps() const
void setMeasureFps(bool enable)

Notifier 신호:

void measureFpsChanged(bool enabled)

currentFps도 참조하십시오 .

minCameraXRotation : float

이 속성은 카메라가 대상 지점을 중심으로 회전할 때의 최소 X축 회전 각도(도 단위)를 나타냅니다. 기본값은 -180.0

액세스 함수:

float minCameraXRotation() const
void setMinCameraXRotation(float rotation)

알림 신호:

void minCameraXRotationChanged(float rotation)

minCameraYRotation : float

이 속성은 카메라가 대상 지점을 중심으로 회전할 때의 최소 Y축 회전 각도(도)를 나타냅니다. 기본값은 0.0

액세스 함수:

float minCameraYRotation() const
void setMinCameraYRotation(float rotation)

알림 신호:

void minCameraYRotationChanged(float rotation)

minCameraZoomLevel : float

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

최소 레벨이 기존 최대 레벨보다 높은 새로운 값으로 설정되면, 최대 레벨도 새로운 최소 레벨로 조정됩니다. 현재 줌 레벨(zoomLevel)이 새로운 범위 밖인 경우에도 마찬가지로 조정됩니다. minCameraZoomLevel은 1.0f 보다 낮게 설정할 수 없습니다. 기본값은 10.0f 입니다.

액세스 함수:

float minCameraZoomLevel() const
void setMinCameraZoomLevel(float level)

알림 신호:

void minCameraZoomLevelChanged(float zoomLevel)

cameraZoomLevel 및 maxCameraZoomLevel도 참조하십시오 .

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도 참조하십시오 .

[since 6.12] panEnabled : bool

이 속성은 해당 입력 핸들러가 그래프 패닝을 허용하는지 여부를 나타냅니다.

기본값은 ` true`입니다.

이 열거형은 Qt 6.12에서 도입되었습니다.

액세스 함수:

bool isPanEnabled() const
void setPanEnabled(bool enable)

알림 신호:

void panEnabledChanged(bool enable)

dragMode 및 setPanButton()도 참조하십시오 .

polar : bool

이 속성은 가로축이 극좌표축으로 변경되더라도 유지됩니다.

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

기본값은 false 입니다.

액세스 함수:

bool isPolar() const
void setPolar(bool enable)

알림 신호:

void polarChanged(bool enabled)

orthoProjection 및 radialLabelOffset도 참조하십시오 .

[read-only] queriedGraphPosition : 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 : QtGraphs3D::ElementType

이 속성은 그래프에서 선택된 요소를 저장합니다.

이 속성은 선택된 요소의 유형을 조회하는 데 사용할 수 있습니다. 이 유형은 그래프에서 새로운 선택이 이루어지고 ‘ selectedElementChanged ’ 신호가 발생하기 전까지 유효합니다.

이 신호는 예를 들어, ‘ Scatter Graph ’ 탭의 Graph Gallery 예제에서 시연된 바와 같이 사용자 정의 입력 핸들러를 구현하는 데 사용할 수 있습니다.

액세스 함수:

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.0 과 100.0 사이여야 합니다.

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

액세스 함수:

float shadowStrength() const
void setShadowStrength(float newShadowStrength)

알림 신호:

void shadowStrengthChanged()

[since 6.9] transparencyTechnique : QtGraphs3D::TransparencyTechnique

사용할 투명도 기법을 지정합니다. 기본값은 ` Default`입니다. 투명한 표면 그래프를 렌더링할 때는 ` Approximate ` 또는 ` Accurate`을 사용하십시오. 다른 그래프 유형의 경우 ` Default `을 사용해야 합니다.

상수설명
Default순서 독립적 투명도 기법이 사용되지 않음을 나타냅니다. 최고의 성능을 제공합니다. 그래프에 투명도가 포함되지 않거나, 막대 그래프나 산점도 그래프에서 인스턴싱을 동시에 사용하는 경우, 즉 ` optimizationHint `가 `{QtGraphs3D::OptimizationHint::Default}`인 경우에 사용하십시오.
Approximate그래프가 순서 독립적 투명도를 근사적으로 구현하려고 시도함을 나타냅니다. 이 방법은 ` Accurate `보다 빠르며 구형 하드웨어에서도 작동하지만, 결과가 부정확할 수 있습니다. 순서 독립적 투명도가 필요하지만, 정확한 순서 독립적 투명도를 사용할 때보다 성능 저하가 적어야 할 때 사용합니다.
Accurate정확한 순서 독립적 투명도가 사용됨을 나타냅니다. 완벽한 투명도 렌더링이 필요한 경우에 사용하십시오.

이 열거형은 Qt 6.9에서 도입되었습니다.

액세스 함수:

QtGraphs3D::TransparencyTechnique transparencyTechnique() const
void setTransparencyTechnique(QtGraphs3D::TransparencyTechnique technique)

알림 신호:

void transparencyTechniqueChanged(QtGraphs3D::TransparencyTechnique technique)

QtGraphs3D::TransparencyTechnique도 참조하십시오 .

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 )를 그래프에 추가합니다. addTheme을 통해 추가된 테마는 직접 사용되지 않습니다. 그래프에는 해당 테마의 소유권만 부여됩니다. 테마 객체( theme )는 null이거나 이미 다른 그래프에 추가된 상태여서는 안 됩니다.

releaseTheme() 및 setActiveTheme()도 참조하십시오 .

void Q3DGraphsWidgetItem::clearSelection()

연결된 모든 시리즈에서 선택한 항목을 지웁니다.

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

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

addCustomItem()도 참조하십시오 .

void Q3DGraphsWidgetItem::doPicking(QPoint point)

point 의 뷰 좌표를 사용하여 그래프의 요소들에 대해 픽킹을 수행하며, 가장 먼저 닿은 항목을 선택합니다. 기본 입력 처리 방식은 onTapped 이벤트를 수신하면 이 작업을 수행합니다.

selectedElement도 참조하십시오 .

void Q3DGraphsWidgetItem::doRayPicking(QVector3D origin, QVector3D direction)

origin 부터 시작하여 direction 에 따라 그래프의 요소들에 대해 피킹을 수행하며, 가장 먼저 일치하는 항목을 선택합니다.

selectedElement도 참조하십시오 .

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` 형식의 이미지로 렌더링합니다. 렌더링이 완료되면 해당 이미지에 접근하는 데 사용할 수 있는 `grab` 결과에 대한 공유 포인터를 반환합니다. 이미지는 현재 안티앨리어싱 설정으로 렌더링됩니다.

QQuickItem::grabToImage()도 참조하십시오 .

QAbstract3DAxis *Q3DGraphsWidgetItem::selectedAxis() const

어떤 레이블 유형이든 상관없이 ‘ selectedElementChanged ’ 신호를 수신한 후 선택된 축을 가져오는 데 사용할 수 있습니다. 선택 상태는 다음 ‘ selectedElementChanged ’ 신호가 전송될 때까지 유효합니다.

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

selectedElement도 참조하십시오 .

QCustom3DItem *Q3DGraphsWidgetItem::selectedCustomItem() const

Q3DGraphsWidgetItem::ElementType::CustomItem 유형의 ` selectedElementChanged ` 신호를 수신한 후, 선택된 사용자 정의 항목을 가져오는 데 사용할 수 있습니다. 항목의 소유권은 그래프에 남아 있습니다. 선택 상태는 다음 ` selectedElementChanged ` 신호가 발생할 때까지 유효합니다.

선택된 사용자 정의 항목에 대한 포인터를 반환하거나 null을 반환합니다.

selectedElement도 참조하십시오 .

qsizetype Q3DGraphsWidgetItem::selectedCustomItemIndex() const

Q3DGraphsWidgetItem::ElementType::CustomItem 유형의 ` selectedElementChanged ` 신호를 수신한 후, 선택된 사용자 정의 항목의 인덱스를 조회하는 데 사용할 수 있습니다. 선택 상태는 다음 ` selectedElementChanged ` 신호가 발생할 때까지 유효합니다.

선택된 사용자 정의 항목의 인덱스를 반환하거나, -1을 반환합니다.

selectedElement도 참조하십시오 .

int Q3DGraphsWidgetItem::selectedLabelIndex() const

어떤 라벨 유형이든 ‘ selectedElementChanged ’ 신호를 수신한 후, 선택된 라벨의 인덱스를 조회하는 데 사용할 수 있습니다. 선택 상태는 다음 ‘ selectedElementChanged ’ 신호가 발생할 때까지 유효합니다.

선택된 레이블의 인덱스를 반환하거나, -1을 반환합니다.

selectedElement도 참조하십시오 .

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

카메라의 회전 각도와 거리를 설정하는 유틸리티 함수입니다. `horizontal ` 및 ` vertical `는 사용할 카메라 회전 각도를 정의합니다. 선택적 매개변수 ` zoom `를 지정하면 ` minCameraZoomLevel ` 및 ` maxCameraZoomLevel ` 속성으로 정의된 범위 내에서 카메라의 줌 비율을 설정할 수 있습니다.

[slot, since 6.12] void Q3DGraphsWidgetItem::setPanButton(Qt::MouseButtons button)

3D 그래프에서 패닝을 트리거하는 데 사용되는 마우스 button 를 설정합니다.

이 함수는 Qt 6.12에서 도입되었습니다.

panEnabled도 참조하십시오 .

[slot] 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()도 참조하십시오 .

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