Class TOrthoViewpointNode

Unit

Declaration

type TOrthoViewpointNode = class(TAbstractViewpointNode)

Description

Viewpoint that provides an orthographic view of the scene.

Hierarchy

Overview

Methods

Public class function ProjectionType: TProjectionType; override;
Public function ProjectionMatrix: TMatrix4; override;
Public class function InternalFieldOfView( const AFieldOfView: TFloatRectangle; const ViewportWidth, ViewportHeight: Single): TFloatRectangle;
Public procedure CreateNode; override;
Public class function ClassX3DType: string; override;
Public procedure SetFieldOfView(const Value: array of Single); overload;
Public procedure SetFieldOfView(const Value: TSingleList); overload;

Properties

Public property FieldOfView [constIndex:Integer]: Single read GetFieldOfView write SetFieldOfView;
Public property FieldOfViewMinX: Single index 0 read GetFieldOfView write SetFieldOfViewDelphiCompat;
Public property FieldOfViewMinY: Single index 1 read GetFieldOfView write SetFieldOfViewDelphiCompat;
Public property FieldOfViewMaxX: Single index 2 read GetFieldOfView write SetFieldOfViewDelphiCompat;
Public property FieldOfViewMaxY: Single index 3 read GetFieldOfView write SetFieldOfViewDelphiCompat;
Public property FdFieldOfView: TMFFloat read FFdFieldOfView;
Public property FdPosition: TSFVec3f read FFdPosition;

Description

Methods

Public class function ProjectionType: TProjectionType; override;
 
Public function ProjectionMatrix: TMatrix4; override;
 
Public class function InternalFieldOfView( const AFieldOfView: TFloatRectangle; const ViewportWidth, ViewportHeight: Single): TFloatRectangle;

Calculate final field of view value, taking into account aspect ratio. The idea is that OrthoViewpoint.fieldOfView specifies the minimal extents. Depending on your window aspect ratio, you may need to make one extent (vertical or horizontal) larger to adjust.

Public procedure CreateNode; override;

Automatically generated node properties.

Do not edit this file manually! To add new properties: - add them to the text files in tools/internal/x3d-nodes-to-pascal/nodes-specification/ , - and regenerate include files by running x3d-nodes-to-pascal

Public class function ClassX3DType: string; override;
 
Public procedure SetFieldOfView(const Value: array of Single); overload;
 
Public procedure SetFieldOfView(const Value: TSingleList); overload;
 

Properties

Public property FieldOfView [constIndex:Integer]: Single read GetFieldOfView write SetFieldOfView;

Field of view determines how much you see in the camera. Use this e.g. to zoom in/out.

This property has comfortable getter and setter, you can also get and set the indexes in 0..3 range, where

  • 0 index is "min x" (default value -1)

  • 1 index is "min y" (default value -1)

  • 2 index is "max x" (default value 1)

  • 3 index is "max y" (default value 1)

Public property FieldOfViewMinX: Single index 0 read GetFieldOfView write SetFieldOfViewDelphiCompat;

Field of view - minimum X. -1 by default.

See also
FieldOfView
Field of view determines how much you see in the camera.
Public property FieldOfViewMinY: Single index 1 read GetFieldOfView write SetFieldOfViewDelphiCompat;

Field of view - minimum Y. -1 by default.

See also
FieldOfView
Field of view determines how much you see in the camera.
Public property FieldOfViewMaxX: Single index 2 read GetFieldOfView write SetFieldOfViewDelphiCompat;

Field of view - maximum X. 1 by default.

See also
FieldOfView
Field of view determines how much you see in the camera.
Public property FieldOfViewMaxY: Single index 3 read GetFieldOfView write SetFieldOfViewDelphiCompat;

Field of view - maximum Y. 1 by default.

See also
FieldOfView
Field of view determines how much you see in the camera.
Public property FdFieldOfView: TMFFloat read FFdFieldOfView;

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

Public property FdPosition: TSFVec3f read FFdPosition;

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


Generated by PasDoc 0.16.0.