Class TViewpointNode

Unit

Declaration

type TViewpointNode = class(TAbstractViewpointNode)

Description

Viewpoint that provides a perspective view of the scene.

Source: src/scene/x3d/x3dnodes_standard_navigation.inc (line 229).

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.

Source: src/scene/x3d/x3dnodes_standard_navigation.inc (line 233).

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.

Source: src/scene/x3d/x3dnodes_standard_navigation.inc (line 243).

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).

Source: src/scene/x3d/x3dnodes_standard_navigation.inc (line 247).

Public procedure CreateNode; override;

Create node fields and events.

Source: src/scene/x3d/auto_generated_node_helpers/x3dnodes_viewpoint.inc (line 33).

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.

Source: src/scene/x3d/auto_generated_node_helpers/x3dnodes_viewpoint.inc (line 34).

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).

Source: src/scene/x3d/auto_generated_node_helpers/x3dnodes_viewpoint.inc (line 38).

Public property FieldOfView: Single read GetFieldOfView write SetFieldOfView;

This item has no description.

Source: src/scene/x3d/auto_generated_node_helpers/x3dnodes_viewpoint.inc (line 40).

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).

Source: src/scene/x3d/auto_generated_node_helpers/x3dnodes_viewpoint.inc (line 44).

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).

Source: src/scene/x3d/auto_generated_node_helpers/x3dnodes_viewpoint.inc (line 48).

Public property FieldOfViewForceVertical: Boolean read GetFieldOfViewForceVertical write SetFieldOfViewForceVertical;

This item has no description.

Source: src/scene/x3d/auto_generated_node_helpers/x3dnodes_viewpoint.inc (line 50).


Generated by PasDoc 0.17.0.snapshot.