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;

This item has no description.

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;

This item has no description. Showing description inherited from TAbstractViewpointNode.ProjectionMatrix.

Matrices for projecting texture from this viewpoint, for ProjectedTextureCoordinate. Override ProjectionMatrix for subclasses (ModelviewMatrix is already correctly defined here).

Public procedure CreateNode; override;

Create node fields and events.

Public class function ClassX3DType: String; override;

This item has no description. Showing description inherited from TX3DNode.ClassX3DType.

Node type name in VRML/X3D, for this class. Normal VRML/X3D node classes should override this to return something non-empty, and then X3DType automatically will return the same value.

Empty for classes that don't have a hardcoded VRML/X3D node name, like a special TX3DUnknownNode. Such special classes should override then X3DType to return actual non-empty name there.

You usually should call X3DType. The only use of this method is that it works on classes (it's "class function"), without needing at actual instance.

Properties

Public property FdFieldOfView: TSFFloat read FFdFieldOfView;

Internal wrapper for property FieldOfView. This wrapper API may change, we advise to access simpler FieldOfView instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart).

Public property FieldOfView: Single read GetFieldOfView write SetFieldOfView;

This item has no description.

Public property FdPosition: TSFVec3f read FFdPosition;

Internal wrapper for property Position. This wrapper API may change, we advise to access simpler Position instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart).

Public property FdFieldOfViewForceVertical: TSFBool read FFdFieldOfViewForceVertical;

Internal wrapper for property FieldOfViewForceVertical. This wrapper API may change, we advise to access simpler FieldOfViewForceVertical instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart).

Public property FieldOfViewForceVertical: Boolean read GetFieldOfViewForceVertical write SetFieldOfViewForceVertical;

This item has no description.


Generated by PasDoc 0.16.0-snapshot.