QPointSize Class

class Qt3DRender::QPointSize

ラスタライズされたポイントのサイズを指定する。静的に設定するか、シェーダプログラムによって設定します。詳細...

ヘッダー #include <QPointSize>
CMake: find_package(Qt6 REQUIRED COMPONENTS 3drender)
target_link_libraries(mytarget PRIVATE Qt6::3drender)
qmake QT += 3drender
QML で PointSize
を継承しています: Qt3DRender::QRenderState
ステータス非推奨

パブリックな型

enum SizeMode { Fixed, Programmable }

プロパティ

パブリック機能

Qt3DRender::QPointSize::SizeMode sizeMode() const
float value() const

パブリックスロット

void setSizeMode(Qt3DRender::QPointSize::SizeMode sizeMode)
void setValue(float value)

シグナル

void sizeModeChanged(Qt3DRender::QPointSize::SizeMode sizeMode)
void valueChanged(float value)

詳細説明

sizeMode プロパティが SizeMode::Fixed に設定されている場合、値が利用可能であれば、glPointSize() を使用して設定されます。SizeMode::Programmable を使用している場合、gl_PointSize はシェーダープログラム内で設定する必要があり、その場合、このRenderState に提供された値は無視されます。

メンバ型ドキュメント

enum QPointSize::SizeMode

この列挙は、サイズモードの値を指定する。

定数説明
Qt3DRender::QPointSize::Fixed0ポイントサイズはQPointSize::value による。
Qt3DRender::QPointSize::Programmable1ポイントサイズの値はシェーダで設定する必要があります。

プロパティのドキュメント

sizeMode : SizeMode

使用する sizeMode を指定します。

アクセス関数

Qt3DRender::QPointSize::SizeMode sizeMode() const
void setSizeMode(Qt3DRender::QPointSize::SizeMode sizeMode)

通知シグナル

void sizeModeChanged(Qt3DRender::QPointSize::SizeMode sizeMode)

value : float

使用するポイントサイズの値を指定する。

アクセス関数:

float value() const
void setValue(float value)

通知シグナル

void valueChanged(float value)

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