Kanzi 4.1.1
CameraMetadata Interface Reference

Metadata definitions for Camera. More...

Inheritance diagram for CameraMetadata:
[legend]

Public Attributes

DynamicPropertyType< FloatAspectRatioProperty
 Sets the aspect ratio of the camera.
 
DynamicPropertyType< Vector4AsymmetricFovProperty
 Sets the field of view of the camera in degrees toward the left, right, up, and down.
 
DynamicPropertyType< BooleanDisableAspectRatioProperty
 Whether to use the aspect ratio setting from the viewport in render pass.
 
DynamicPropertyType< FloatFovProperty = new DynamicPropertyType<>("Camera.Fov", Float.class)
 Sets the field of view of the camera in degrees.
 
DynamicPropertyType< Matrix4x4Enums.FieldOfViewTypeFovTypeProperty
 Sets the direction of the field of view:
 
AbstractMetaclass metaclass = new AbstractMetaclass("Kanzi.Camera")
 Metaclass for Camera.
 
DynamicPropertyType< CameraEnums.OrthogonalCoordinateSystemOrthogonalCoordinateSystemTypeProperty
 Sets the type of the orthogonal coordinate system:
 
DynamicPropertyType< FloatOrthogonalPlaneHeightProperty
 Sets the half width or half height of the view plane of a camera that uses the relative orthogonal coordinate system:
 
DynamicPropertyType< CameraEnums.ProjectionTypeProjectionTypeProperty
 Sets the projection type of the camera:
 
DynamicPropertyType< FloatZFarProperty = new DynamicPropertyType<>("Camera.ZFar", Float.class)
 Sets the distance to the far clipping plane of the camera.
 
DynamicPropertyType< FloatZNearProperty
 Sets the distance to the near clipping plane of the camera.
 

Detailed Description

Metadata definitions for Camera.

Member Data Documentation

◆ AspectRatioProperty

DynamicPropertyType<Float> AspectRatioProperty
Initial value:
=
new DynamicPropertyType<>("Camera.AspectRatio", Float.class)

Sets the aspect ratio of the camera.

◆ AsymmetricFovProperty

DynamicPropertyType<Vector4> AsymmetricFovProperty
Initial value:
=
new DynamicPropertyType<>("Camera.AsymmetricFov", Vector4.class)

Sets the field of view of the camera in degrees toward the left, right, up, and down.

Angles to the right of the center and upwards of the center are positive.

To use this property, set the Projection Type to Asymmetric perspective.

◆ DisableAspectRatioProperty

DynamicPropertyType<Boolean> DisableAspectRatioProperty
Initial value:
=
new DynamicPropertyType<>("Camera.DisableAspectRatio", Boolean.class)

Whether to use the aspect ratio setting from the viewport in render pass.

When disabled, you can set the aspect ratio in the camera.

◆ FovTypeProperty

Initial value:
=
new DynamicPropertyType<>("Camera.FovType", Matrix4x4Enums.FieldOfViewType.class)

Sets the direction of the field of view:

  • Y FOV sets the field of view along the y axis. This is the default.
  • X FOV sets the field of view along the x axis.

◆ OrthogonalCoordinateSystemTypeProperty

DynamicPropertyType<CameraEnums.OrthogonalCoordinateSystem> OrthogonalCoordinateSystemTypeProperty
Initial value:
= new DynamicPropertyType<>(
"Camera.OrthogonalCoordinateSystemType", CameraEnums.OrthogonalCoordinateSystem.class)

Sets the type of the orthogonal coordinate system:

  • Relative sets the camera to display an area whose width is scaled with the value of the Orthogonal Plane Size property. This is the default.
  • Absolute sets the camera to use pixel coordinates.

◆ OrthogonalPlaneHeightProperty

DynamicPropertyType<Float> OrthogonalPlaneHeightProperty
Initial value:
=
new DynamicPropertyType<>("Camera.OrthogonalPlaneHeight", Float.class)

Sets the half width or half height of the view plane of a camera that uses the relative orthogonal coordinate system:

  • When FOV Type is Y FOV (default value), the height.
  • When FOV Type is X FOV, the width.

The default value is 1.0.

◆ ProjectionTypeProperty

Initial value:
=
new DynamicPropertyType<>("Camera.ProjectionType", CameraEnums.ProjectionType.class)

Sets the projection type of the camera:

  • Perspective projection shows objects closer to the camera larger than those that are further away. This is the default.
  • Asymmetric perspective projection lets you use the Asymmetric FOV property to control the field of view of each angle of a perspective projection.
  • Orthographic projection shows a 2D view of a 3D scene without providing a sense of depth.

◆ ZFarProperty

DynamicPropertyType<Float> ZFarProperty = new DynamicPropertyType<>("Camera.ZFar", Float.class)

Sets the distance to the far clipping plane of the camera.

The camera shows only the objects that are closer than the value set in this property.

◆ ZNearProperty

DynamicPropertyType<Float> ZNearProperty
Initial value:
=
new DynamicPropertyType<>("Camera.ZNear", Float.class)

Sets the distance to the near clipping plane of the camera.

The camera shows only the objects that are farther away than the value set in this property.