Class TViewpointNode

Unit

Declaration

type TViewpointNode = class(TAbstractViewpointNode)

Description

Viewpoint that provides a perspective view of the scene.

Hierarchy

Overview

Methods

Public procedure CreateNode; override;
Public class function ClassX3DType: string; override;
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;

Properties

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

Description

Methods

Public procedure CreateNode; override;
 
Public class function ClassX3DType: string; override;
 
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;
 

Properties

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

Generated by PasDoc 0.16.0.