Class TTransformNode

Unit

Declaration

type TTransformNode = class(TAbstractGroupingNode)

Description

Grouping node that transforms (moves, rotates, scales) it's children.

Hierarchy

Overview

Methods

Protected function DirectEnumerateActive(Func: TEnumerateChildrenFunction): Pointer; override;
Public constructor Create(const AX3DName: String = ''; const ABaseUrl: String = ''); override;
Public class function ForVRMLVersion(const Version: TX3DVersion): boolean; override;
Public function TransformationChange: TNodeTransformationChange; override;
Public procedure CreateNode; override;
Public class function ClassX3DType: string; override;

Properties

Public property FdCenter: TSFVec3f read FFdCenter;
Public property Center: TVector3 read GetCenter write SetCenter;
Public property FdRotation: TSFRotation read FFdRotation;
Public property Rotation: TVector4 read GetRotation write SetRotation;
Public property FdScale: TSFVec3f read FFdScale;
Public property Scale: TVector3 read GetScale write SetScale;
Public property FdScaleOrientation: TSFRotation read FFdScaleOrientation;
Public property ScaleOrientation: TVector4 read GetScaleOrientation write SetScaleOrientation;
Public property FdTranslation: TSFVec3f read FFdTranslation;
Public property Translation: TVector3 read GetTranslation write SetTranslation;

Description

Methods

Protected function DirectEnumerateActive(Func: TEnumerateChildrenFunction): Pointer; override;
 
Public constructor Create(const AX3DName: String = ''; const ABaseUrl: String = ''); override;
 
Public class function ForVRMLVersion(const Version: TX3DVersion): boolean; override;
 
Public function TransformationChange: TNodeTransformationChange; override;
 
Public procedure CreateNode; override;
 
Public class function ClassX3DType: string; override;
 

Properties

Public property FdCenter: TSFVec3f read FFdCenter;

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

Public property Center: TVector3 read GetCenter write SetCenter;

Center point around which the Rotation and Scale is performed.

Public property FdRotation: TSFRotation read FFdRotation;

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

Public property Rotation: TVector4 read GetRotation write SetRotation;

Rotate children in 3D, around a specified axis. Rotation is expressed as a 4D vector, in which the first 3 components specify the rotation axis (does not need to be normalized, but must be non-zero) and the last component is the rotation angle in radians. Rotation is done around Center.

Public property FdScale: TSFVec3f read FFdScale;

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

Public property Scale: TVector3 read GetScale write SetScale;

Scale in 3D. Scaling is done around Center and with orientation given by ScaleOrientation. Note about negative scale: We do the best we can to work with any scale value, even negative or zero. But usually, it's best to keep the scale positive. See the TCastleTransform.Scale documentation for some good guidelines about the scale.

Public property FdScaleOrientation: TSFRotation read FFdScaleOrientation;

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

Public property ScaleOrientation: TVector4 read GetScaleOrientation write SetScaleOrientation;

Orientation in which 3D Scale is performed.

Public property FdTranslation: TSFVec3f read FFdTranslation;

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

Public property Translation: TVector3 read GetTranslation write SetTranslation;

Translation (move) the children nodes.


Generated by PasDoc 0.16.0.