Unit X3DCameraUtils

Description

Utilities specifically for X3D cameras.

See also
For our general classes and utilities for camera handling.
Camera and navigation (TCastleCamera, TCastleExamineNavigation, TCastleWalkNavigation).

Uses

Overview

Classes, Interfaces, Objects and Records

Name Description
Class TMakeX3DViewpoint Utility class to set various viewpoint properties, and then generate given viewpoint node.

Functions and Procedures

function MakeCameraStr(const Version: TX3DCameraVersion; const Xml: boolean; const Position, Direction, Up, GravityUp: TVector3): string; deprecated 'use TMakeX3DViewpoint with its ToString method';
function MakeCameraNode(const Version: TX3DCameraVersion; const BaseUrl: String; const Position, Direction, Up, GravityUp: TVector3): TAbstractChildNode; overload; deprecated 'use TMakeX3DViewpoint with its ToNode method';
function MakeCameraNode(const Version: TX3DCameraVersion; const BaseUrl: String; const Position, Direction, Up, GravityUp: TVector3; out ViewpointNode: TAbstractViewpointNode): TAbstractChildNode; overload; deprecated 'use TMakeX3DViewpoint with its ToNode method';
function CameraNodeForWholeScene(const Version: TX3DCameraVersion; const BaseUrl: String; const Box: TBox3D; const WantedDirection, WantedUp: Integer; const WantedDirectionPositive, WantedUpPositive: boolean): TAbstractChildNode;
function MakeCameraNavNode(const Version: TX3DCameraVersion; const BaseUrl: String; const NavigationType: string; const WalkSpeed, VisibilityLimit: Single; const AvatarSize: TVector3; const Headlight: boolean): TNavigationInfoNode;

Types

TX3DCameraVersion = (...);

Constants

DefaultX3DCameraPosition: array [TX3DCameraVersion] of TVector3 = ( (X: 0; Y: 0; Z: 1), (X: 0; Y: 0; Z: 10) );
DefaultX3DCameraDirection: TVector3 = (X: 0; Y: 0; Z: -1);
DefaultX3DCameraUp : TVector3 = (X: 0; Y: 1; Z: 0);
DefaultX3DGravityUp : TVector3 = (X: 0; Y: 1; Z: 0);
DefaultX3DCameraView: TViewVectors = ( Translation: (X: 0; Y: 0; Z: 10); Direction: (X: 0; Y: 0; Z: -1); Up: (X: 0; Y: 1; Z: 0) );

Description

Functions and Procedures

function MakeCameraStr(const Version: TX3DCameraVersion; const Xml: boolean; const Position, Direction, Up, GravityUp: TVector3): string; deprecated 'use TMakeX3DViewpoint with its ToString method';

Warning: this symbol is deprecated: use TMakeX3DViewpoint with its ToString method

This item has no description.

function MakeCameraNode(const Version: TX3DCameraVersion; const BaseUrl: String; const Position, Direction, Up, GravityUp: TVector3): TAbstractChildNode; overload; deprecated 'use TMakeX3DViewpoint with its ToNode method';

Warning: this symbol is deprecated: use TMakeX3DViewpoint with its ToNode method

This item has no description.

function MakeCameraNode(const Version: TX3DCameraVersion; const BaseUrl: String; const Position, Direction, Up, GravityUp: TVector3; out ViewpointNode: TAbstractViewpointNode): TAbstractChildNode; overload; deprecated 'use TMakeX3DViewpoint with its ToNode method';

Warning: this symbol is deprecated: use TMakeX3DViewpoint with its ToNode method

This item has no description.

function CameraNodeForWholeScene(const Version: TX3DCameraVersion; const BaseUrl: String; const Box: TBox3D; const WantedDirection, WantedUp: Integer; const WantedDirectionPositive, WantedUpPositive: boolean): TAbstractChildNode;

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: TVector3; const Headlight: boolean): TNavigationInfoNode;

This item has no description.

Types

TX3DCameraVersion = (...);

Version of VRML/X3D camera definition.

Values
  • cvVrml1_Inventor
  • cvVrml2_X3d

Constants

DefaultX3DCameraPosition: array [TX3DCameraVersion] of TVector3 = ( (X: 0; Y: 0; Z: 1), (X: 0; Y: 0; Z: 10) );

Standard camera settings given by VRML/X3D specifications.

DefaultX3DCameraDirection: TVector3 = (X: 0; Y: 0; Z: -1);

This item has no description.

DefaultX3DCameraUp : TVector3 = (X: 0; Y: 1; Z: 0);

This item has no description.

DefaultX3DGravityUp : TVector3 = (X: 0; Y: 1; Z: 0);

This item has no description.

DefaultX3DCameraView: TViewVectors = ( Translation: (X: 0; Y: 0; Z: 10); Direction: (X: 0; Y: 0; Z: -1); Up: (X: 0; Y: 1; Z: 0) );

Default camera position, direction, view in X3D.


Generated by PasDoc 0.16.0-snapshot.