QViewport Class
class Qt3DRender::QViewportQt3D Scene のビューポート。もっと見る...
ヘッダー | #include <QViewport> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS 3drender) target_link_libraries(mytarget PRIVATE Qt6::3drender) |
qmake | QT += 3drender |
QML で | Viewport |
を継承しています: | Qt3DRender::QFrameGraphNode |
ステータス | 非推奨 |
プロパティ
- gamma : float
- normalizedRect : QRectF
パブリック機能
QViewport(Qt3DCore::QNode *parent = nullptr) | |
float | gamma() const |
QRectF | normalizedRect() const |
パブリックスロット
void | setGamma(float gamma) |
void | setNormalizedRect(const QRectF &normalizedRect) |
シグナル
void | gammaChanged(float gamma) |
void | normalizedRectChanged(const QRectF &normalizedRect) |
詳細説明
Qt3DRender::QViewport シーンのレンダリングサーフェスのどの部分にQt3Dがレンダリングされるかを指定します。ビューポートの外側の領域は変更されません。また、ガンマのようなビューポートのレンダリングに対するグローバルパラメータも制御します。
プロパティの説明
gamma : float
ビューポートのガンマ係数を指定します。デフォルトは2.2で、ほとんどの画面で適切な結果が得られるはずです。
アクセス関数
float | gamma() const |
void | setGamma(float gamma) |
通知シグナル:
void | gammaChanged(float gamma) |
normalizedRect : QRectF
ビューポートの正規化された矩形を指定します。つまり、ビューポートの矩形はレンダーサーフェスのサイズに対して相対的に指定されます。サーフェス全体のサイズのビューポートは、デフォルトの [0.0, 0.0, 1.0, 1.0] として指定されます。
アクセス関数
QRectF | normalizedRect() const |
void | setNormalizedRect(const QRectF &normalizedRect) |
通知シグナル
void | normalizedRectChanged(const QRectF &normalizedRect) |
メンバ関数ドキュメント
[explicit]
QViewport::QViewport(Qt3DCore::QNode *parent = nullptr)
与えられたparent で QViewport を構築する。
© 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.