Class TViewpointNode
Unit
Declaration
type TViewpointNode = class(TAbstractViewpointNode)
Description
Viewpoint that provides a perspective view of the scene.
Hierarchy
- TObject
- TPersistent
- TX3DFileItem
- TX3DNode
- TAbstractNode
- TAbstractChildNode
- TAbstractBindableNode
- TAbstractViewpointNode
- TViewpointNode
Overview
Methods
class function ProjectionType: TProjectionType; override; |
|
class function InternalFieldOfView(FieldOfView: Single; const FieldOfViewAxis: TFieldOfViewAxis; const ViewportWidth, ViewportHeight: Single): TVector2; |
|
function ProjectionMatrix: TMatrix4; override; |
|
procedure CreateNode; override; |
|
class function ClassX3DType: String; override; |
Properties
property FdFieldOfView: TSFFloat read FFdFieldOfView; |
|
property FieldOfView: Single read GetFieldOfView write SetFieldOfView; |
|
property FdPosition: TSFVec3f read FFdPosition; |
|
property FdFieldOfViewForceVertical: TSFBool read FFdFieldOfViewForceVertical; |
|
property FieldOfViewForceVertical: Boolean read GetFieldOfViewForceVertical write SetFieldOfViewForceVertical; |
Description
Methods
class function ProjectionType: TProjectionType; override; |
|
This item has no description. |
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. |
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 |
procedure CreateNode; override; |
|
Create node fields and events. |
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
property FdFieldOfView: TSFFloat read FFdFieldOfView; |
|
Internal wrapper for property |
property FieldOfView: Single read GetFieldOfView write SetFieldOfView; |
|
This item has no description. |
property FdPosition: TSFVec3f read FFdPosition; |
|
Internal wrapper for property |
property FdFieldOfViewForceVertical: TSFBool read FFdFieldOfViewForceVertical; |
|
Internal wrapper for property |
property FieldOfViewForceVertical: Boolean read GetFieldOfViewForceVertical write SetFieldOfViewForceVertical; |
|
This item has no description. |
Generated by PasDoc 0.16.0-snapshot.