QCameraLens Class
class Qt3DRender::QCameraLensQt3DRender::QCameraLens 3DシーンのCameraを定義するために使用される投影行列を指定します。詳細...
ヘッダー | #include <Qt3DRender/QCameraLens> |
CMakeの | find_package(Qt6 REQUIRED COMPONENTS 3drender) target_link_libraries(mytarget PRIVATE Qt6::3drender) |
qmake | QT += 3drender |
QML で | CameraLens |
を継承しています: | Qt3DCore::QComponent |
ステータス | 非推奨 |
パブリックな型
enum | ProjectionType { OrthographicProjection, PerspectiveProjection, FrustumProjection, CustomProjection } |
プロパティ
|
|
パブリック機能
QCameraLens(Qt3DCore::QNode *parent = nullptr) | |
float | aspectRatio() const |
float | bottom() const |
float | exposure() const |
float | farPlane() const |
float | fieldOfView() const |
float | left() const |
float | nearPlane() const |
QMatrix4x4 | projectionMatrix() const |
Qt3DRender::QCameraLens::ProjectionType | projectionType() const |
float | right() const |
void | setFrustumProjection(float left, float right, float bottom, float top, float nearPlane, float farPlane) |
void | setOrthographicProjection(float left, float right, float bottom, float top, float nearPlane, float farPlane) |
void | setPerspectiveProjection(float fieldOfView, float aspectRatio, float nearPlane, float farPlane) |
float | top() const |
パブリックスロット
void | setAspectRatio(float aspectRatio) |
void | setBottom(float bottom) |
void | setExposure(float exposure) |
void | setFarPlane(float farPlane) |
void | setFieldOfView(float fieldOfView) |
void | setLeft(float left) |
void | setNearPlane(float nearPlane) |
void | setProjectionMatrix(const QMatrix4x4 &projectionMatrix) |
void | setProjectionType(Qt3DRender::QCameraLens::ProjectionType projectionType) |
void | setRight(float right) |
void | setTop(float top) |
シグナル
void | aspectRatioChanged(float aspectRatio) |
void | bottomChanged(float bottom) |
void | exposureChanged(float exposure) |
void | farPlaneChanged(float farPlane) |
void | fieldOfViewChanged(float fieldOfView) |
void | leftChanged(float left) |
void | nearPlaneChanged(float nearPlane) |
void | projectionMatrixChanged(const QMatrix4x4 &projectionMatrix) |
void | projectionTypeChanged(Qt3DRender::QCameraLens::ProjectionType projectionType) |
void | rightChanged(float right) |
void | topChanged(float top) |
メンバー型ドキュメント
enum QCameraLens::ProjectionType
Qt3DRender::QCameraLens のどのパラメータを使って射影行列を計算するかを指定する。
定数 | 値 | 説明 |
---|---|---|
Qt3DRender::QCameraLens::OrthographicProjection | 0 | 直交投影 |
Qt3DRender::QCameraLens::PerspectiveProjection | 1 | 透視投影 |
Qt3DRender::QCameraLens::FrustumProjection | 2 | フルストゥム投影 |
Qt3DRender::QCameraLens::CustomProjection | 3 | ユーザー定義のカスタム投影 |
プロパティ・ドキュメンテーション
aspectRatio : float
カメラレンズの現在のアスペクト比を保持します。
注意: :投影タイプがQt3DRender::QCameraLens::PerspectiveProjection でない場合、戻り値は未定義の場合があります。
アクセス関数:
float | aspectRatio() const |
void | setAspectRatio(float aspectRatio) |
通知シグナル:
void | aspectRatioChanged(float aspectRatio) |
bottom : float
カメラレンズの現在の底面を保持する。
注意: 投影タイプがQt3DRender::QCameraLens::PerspectiveProjection の場合、戻り値は未定義の場合があります。
アクセス関数:
float | bottom() const |
void | setBottom(float bottom) |
通知シグナル:
void | bottomChanged(float bottom) |
exposure : float
カメラレンズの現在の露出を保持します。
アクセス機能
float | exposure() const |
void | setExposure(float exposure) |
通知信号
void | exposureChanged(float exposure) |
farPlane : float
カメラレンズの現在のニアプレーンを保持します。
アクセス機能:
float | farPlane() const |
void | setFarPlane(float farPlane) |
通知信号
void | farPlaneChanged(float farPlane) |
fieldOfView : float
カメラレンズの現在の視野を保持します。
注意: :投影タイプがQt3DRender::QCameraLens::PerspectiveProjection でない場合、戻り値は未定義の場合があります。
アクセス関数:
float | fieldOfView() const |
void | setFieldOfView(float fieldOfView) |
通知シグナル:
void | fieldOfViewChanged(float fieldOfView) |
left : float
カメラレンズの現在の左平面を保持する。
注意: 投影タイプがQt3DRender::QCameraLens::PerspectiveProjection の場合、戻り値は未定義の場合があります。
アクセス関数:
float | left() const |
void | setLeft(float left) |
通知シグナル:
void | leftChanged(float left) |
nearPlane : float
カメラレンズの現在のニアプレーンを保持します。
アクセス機能:
float | nearPlane() const |
void | setNearPlane(float nearPlane) |
通知信号
void | nearPlaneChanged(float nearPlane) |
projectionMatrix : QMatrix4x4
カメラレンズの現在の投影行列を保持します。
アクセス機能:
QMatrix4x4 | projectionMatrix() const |
void | setProjectionMatrix(const QMatrix4x4 &projectionMatrix) |
通知信号:
void | projectionMatrixChanged(const QMatrix4x4 &projectionMatrix) |
projectionType : ProjectionType
カメラの投影タイプを保持します。
アクセス機能
Qt3DRender::QCameraLens::ProjectionType | projectionType() const |
void | setProjectionType(Qt3DRender::QCameraLens::ProjectionType projectionType) |
通知信号:
void | projectionTypeChanged(Qt3DRender::QCameraLens::ProjectionType projectionType) |
Qt3DRender::QCameraLens::ProjectionTypeも参照してください 。
right : float
カメラレンズの現在の右平面を保持する。
注意: 投影タイプがQt3DRender::QCameraLens::PerspectiveProjection の場合、戻り値は未定義の場合があります。
アクセス関数:
float | right() const |
void | setRight(float right) |
通知シグナル:
void | rightChanged(float right) |
top : float
カメラレンズの現在の上面を保持する。
注意: 投影タイプがQt3DRender::QCameraLens::PerspectiveProjection の場合、戻り値は未定義の場合があります。
アクセス関数:
float | top() const |
void | setTop(float top) |
通知シグナル:
void | topChanged(float top) |
メンバ関数ドキュメント
[explicit]
QCameraLens::QCameraLens(Qt3DCore::QNode *parent = nullptr)
QCameraLensを構築する。parent
[slot]
void QCameraLens::setAspectRatio(float aspectRatio)
投影のアスペクト比をaspectRatio に設定します。 これは投影行列の更新をトリガーします。
注意: これは、投影タイプがQt3DRender::QCameraLens::PerspectiveProjection でない場合は、何の効果もありません。
注意: プロパティのセッター関数aspectRatio 。
aspectRatio()も参照してください 。
[slot]
void QCameraLens::setBottom(float bottom)
投影の下端ウ ィ ン ド ウ座標をbottom に設定 し ます。 こ れに よ り 、 投影行列が更新 さ れます。
注: プロジェクションタイプがQt3DRender::QCameraLens::PerspectiveProjection の場合は効果がありません。
注: プロパティbottom のセッター関数です。
bottom()も参照してください 。
[slot]
void QCameraLens::setExposure(float exposure)
カメラレンズのexposure
注: exposure プロパティのセッター関数。
exposure()も参照 。
[slot]
void QCameraLens::setFarPlane(float farPlane)
投影の遠平面をfarPlane に設定します。 これは、投影行列の更新をトリガーします。
注意: プロパティfarPlane に対するセッター関数です。
farPlane()も参照してください 。
[slot]
void QCameraLens::setFieldOfView(float fieldOfView)
投影の視野をfieldOfView 度に設定する。これは投影行列の更新をトリガーします。
注意: これは、投影タイプがQt3DRender::QCameraLens::PerspectiveProjection でない場合は、何の効果もありません。
注意: プロパティfieldOfView のセッター関数です。
fieldOfView()も参照してください 。
void QCameraLens::setFrustumProjection(float left, float right, float bottom, float top, float nearPlane, float farPlane)
left,right,bottom,top,nearPlane,farPlane に基づいて正射投影を定義する。
[slot]
void QCameraLens::setLeft(float left)
投影の左下ウ ィ ン ド ウ座標をleft に設定 し ます。 こ れに よ り 、 投影行列が更新 さ れます。
注: プロジェクションタイプがQt3DRender::QCameraLens::PerspectiveProjection の場合は効果がありません。
注: プロパティleft のセッター関数です。
left()も参照してください 。
[slot]
void QCameraLens::setNearPlane(float nearPlane)
投影のニアプレーンをnearPlane に設定します。 これは、投影行列の更新をトリガーします。
注意: プロパティnearPlane に対するセッター関数です。
nearPlane()も参照してください 。
void QCameraLens::setOrthographicProjection(float left, float right, float bottom, float top, float nearPlane, float farPlane)
left,right,bottom,top,nearPlane,farPlane に基づいて正射投影を定義する。
void QCameraLens::setPerspectiveProjection(float fieldOfView, float aspectRatio, float nearPlane, float farPlane)
fieldOfView,aspectRatio,nearPlane,farPlane に基づいて透視投影を定義する。
[slot]
void QCameraLens::setProjectionMatrix(const QMatrix4x4 &projectionMatrix)
投影行列をprojectionMatrix に設定します。
注意 :これは投影タイプをQt3DRender::QCameraLens::CustomProjection に設定するので、指定されたかもしれない他のすべてのカメラパラメータを無視します。
注意: プロパティprojectionMatrix に対するセッター関数.
projectionMatrix()も参照してください 。
[slot]
void QCameraLens::setProjectionType(Qt3DRender::QCameraLens::ProjectionType projectionType)
レンズの投影タイプを設定しますprojectionType 。
注: Qt3DRender::QCameraLens::Frustum とQt3DRender::QCameraLens::PerspectiveProjection は、同じ投影を指定する2つの異なる方法です。
注意: プロパティのセッター関数projectionType 。
projectionType()も参照してください 。
[slot]
void QCameraLens::setRight(float right)
投影の右上のウ ィ ン ド ウ座標をright に設定 し ます。 こ れに よ り 、 投影行列が更新 さ れます。
注: プロジェクションタイプがQt3DRender::QCameraLens::PerspectiveProjection の場合、この関数は動作しません。
注: プロパティright のセッター関数です。
right()も参照してください 。
[slot]
void QCameraLens::setTop(float top)
投影のウィンドウ上端座標をtop に設定します。 これは投影行列の更新をトリガーします。
注: プロジェクションタイプがQt3DRender::QCameraLens::PerspectiveProjection の場合、この関数は動作しません。
注: プロパティtop のセッター関数です。
top()も参照してください 。
© 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.