Qt3DRender::QPointSize Class
class Qt3DRender::QPointSizeラスタライズされた点のサイズを指定します。静的に設定することも、シェーダープログラムで設定することもできます。詳細...
| ヘッダー: | #include <qpointsize.h> |
| 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 } |
プロパティ
パブリック関数
パブリックスロット
| 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::Fixed | 0 | ポイントサイズは、QPointSize::value によって決定されます。 |
Qt3DRender::QPointSize::Programmable | 1 | ポイントサイズの値は、シェーダーで設定する必要があります。 |
プロパティのドキュメント
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) |
© 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.