Unit X3DCameraUtils

Classes, Interfaces, Objects and Records
Variables

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

Functions and Procedures

function MakeCameraStr(const Version: TX3DCameraVersion; const Xml: boolean; const Position, Direction, Up, GravityUp: TVector3): string;
function MakeCameraNode(const Version: TX3DCameraVersion; const BaseUrl: string; const Position, Direction, Up, GravityUp: TVector3): TAbstractChildNode; overload;
function MakeCameraNode(const Version: TX3DCameraVersion; const BaseUrl: string; const Position, Direction, Up, GravityUp: TVector3; out ViewpointNode: TAbstractViewpointNode): TAbstractChildNode; overload;
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);

Description

Functions and Procedures

function MakeCameraStr(const Version: TX3DCameraVersion; const Xml: boolean; const Position, Direction, Up, GravityUp: TVector3): 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: TVector3): TAbstractChildNode; overload;

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: TVector3; out ViewpointNode: TAbstractViewpointNode): TAbstractChildNode; overload;
 
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;
 

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);
 
DefaultX3DCameraUp : TVector3 = (X: 0; Y: 1; Z: 0);
 
DefaultX3DGravityUp : TVector3 = (X: 0; Y: 1; Z: 0);
 

Generated by PasDoc 0.16.0.