Castle Game Engine: X3DCameraUtils

# Unit X3DCameraUtils
Description | Uses | Classes, Interfaces, Objects and Records | Functions and Procedures | Types | Constants | Variables
## Description Utilities specifically for VRML/X3D cameras. ###### See also For our general classes and utilities for camera handling. Cameras to navigate in 3D space (TExamineCamera, TWalkCamera, TUniversalCamera). ## Uses CastleUtils CastleVectors CastleBoxes X3DNodes ## Overview ### Functions and Procedures
`function MakeCameraStr(const Version: TX3DCameraVersion; const Xml: boolean; const Position, Direction, Up, GravityUp: TVector3Single): string;`
`function MakeCameraNode(const Version: TX3DCameraVersion; const BaseUrl: string; const Position, Direction, Up, GravityUp: TVector3Single): TX3DNode;`
`function MakeCameraNode(const Version: TX3DCameraVersion; const BaseUrl: string; const Position, Direction, Up, GravityUp: TVector3Single; out ViewpointNode: TAbstractViewpointNode): TX3DNode;`
`function CameraNodeForWholeScene(const Version: TX3DCameraVersion; const BaseUrl: string; const Box: TBox3D; const WantedDirection, WantedUp: Integer; const WantedDirectionPositive, WantedUpPositive: boolean): TX3DNode;`
`function MakeCameraNavNode(const Version: TX3DCameraVersion; const BaseUrl: string; const NavigationType: string; const WalkSpeed, VisibilityLimit: Single; const AvatarSize: TVector3Single; const Headlight: boolean): TNavigationInfoNode;`
### Types
`TX3DCameraVersion = (...);`
### Constants
`DefaultX3DCameraPosition: array [TX3DCameraVersion] of TVector3Single = ( (0, 0, 1), (0, 0, 10) );`
`DefaultX3DCameraDirection: TVector3Single = (0, 0, -1);`
`DefaultX3DCameraUp: TVector3Single = (0, 1, 0);`
`DefaultX3DGravityUp: TVector3Single = (0, 1, 0);`
## Description ### Functions and Procedures
`function MakeCameraStr(const Version: TX3DCameraVersion; const Xml: boolean; const Position, Direction, Up, GravityUp: TVector3Single): string;`
Construct string with VRML/X3D node defining camera with given properties.
`function MakeCameraNode(const Version: TX3DCameraVersion; const BaseUrl: string; const Position, Direction, Up, GravityUp: TVector3Single): TX3DNode;`
Construct TX3DNode defining camera with given properties. Overloaded version with ViewpointNode parameter returns the TAbstractViewpointNode descendant that is (somewhere within) the returned node.
`function MakeCameraNode(const Version: TX3DCameraVersion; const BaseUrl: string; const Position, Direction, Up, GravityUp: TVector3Single; out ViewpointNode: TAbstractViewpointNode): TX3DNode;`
`function CameraNodeForWholeScene(const Version: TX3DCameraVersion; const BaseUrl: string; const Box: TBox3D; const WantedDirection, WantedUp: Integer; const WantedDirectionPositive, WantedUpPositive: boolean): TX3DNode;`
Make camera node (like MakeCameraNode) that makes the whole box nicely visible (like CameraViewpointForWholeScene).
`function MakeCameraNavNode(const Version: TX3DCameraVersion; const BaseUrl: string; const NavigationType: string; const WalkSpeed, VisibilityLimit: Single; const AvatarSize: TVector3Single; const Headlight: boolean): TNavigationInfoNode;`
### Types
`TX3DCameraVersion = (...);`
Version of VRML/X3D camera definition. ###### Values cvVrml1_Inventor: cvVrml2_X3d:
### Constants
`DefaultX3DCameraPosition: array [TX3DCameraVersion] of TVector3Single = ( (0, 0, 1), (0, 0, 10) );`
Standard camera settings given by VRML/X3D specifications.
`DefaultX3DCameraDirection: TVector3Single = (0, 0, -1);`
`DefaultX3DCameraUp: TVector3Single = (0, 1, 0);`
`DefaultX3DGravityUp: TVector3Single = (0, 1, 0);`
Generated by PasDoc 0.13.0 on 2015-06-15 04:43:13