Class TViewpointNode

Unit

Declaration

type TViewpointNode = class(TAbstractViewpointNode)

Description

Viewpoint that provides a perspective view of the scene.

Hierarchy

Overview

Methods

Public class function ProjectionType: TProjectionType; override;
Public class function InternalFieldOfView(FieldOfView: Single; const FieldOfViewAxis: TFieldOfViewAxis; const ViewportWidth, ViewportHeight: Single): TVector2;
Public function ProjectionMatrix: TMatrix4; override;
Public procedure CreateNode; override;
Public class function ClassX3DType: string; override;

Properties

Public property FdFieldOfView: TSFFloat read FFdFieldOfView;
Public property FieldOfView: Single read GetFieldOfView write SetFieldOfView;
Public property FdPosition: TSFVec3f read FFdPosition;
Public property FdFieldOfViewForceVertical: TSFBool read FFdFieldOfViewForceVertical;
Public property FieldOfViewForceVertical: Boolean read GetFieldOfViewForceVertical write SetFieldOfViewForceVertical;

Description

Methods

Public class function ProjectionType: TProjectionType; override;
 
Public class function InternalFieldOfView(FieldOfView: Single; const FieldOfViewAxis: TFieldOfViewAxis; const ViewportWidth, ViewportHeight: Single): TVector2;

Calculate both perspective angles (in radians), knowing TCastleCamera.Perspective.FieldOfView and TCastleCamera.Perspective.FieldOfViewAxis.

In particular when FieldOfViewAxis = faSmallest then we perform the calculation requested by X3D specification about ViewpointNode fieldOfView behavior.

Public function ProjectionMatrix: TMatrix4; override;
 
Public procedure CreateNode; override;
 
Public class function ClassX3DType: string; override;
 

Properties

Public property FdFieldOfView: TSFFloat read FFdFieldOfView;

Internal wrapper for property FieldOfView. This wrapper API may change, we advise to access simpler FieldOfView instead.

Public property FieldOfView: Single read GetFieldOfView write SetFieldOfView;
 
Public property FdPosition: TSFVec3f read FFdPosition;

Internal wrapper for property Position. This wrapper API may change, we advise to access simpler Position instead.

Public property FdFieldOfViewForceVertical: TSFBool read FFdFieldOfViewForceVertical;

Internal wrapper for property FieldOfViewForceVertical. This wrapper API may change, we advise to access simpler FieldOfViewForceVertical instead.

Public property FieldOfViewForceVertical: Boolean read GetFieldOfViewForceVertical write SetFieldOfViewForceVertical;
 

Generated by PasDoc 0.16.0.