Class TTransformNode

Unit

Declaration

type TTransformNode = class(TAbstractX3DGroupingNode, ITransformNode)

Description

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

Hierarchy

Overview

Methods

Protected function DirectEnumerateActive(Func: TEnumerateChildrenFunction): Pointer; override;
Protected procedure ApplyTransform(State: TX3DGraphTraverseState); override;
Public procedure CreateNode; override;
Public class function ClassX3DType: string; override;
Public class function URNMatching(const URN: string): boolean; override;
Public class function ForVRMLVersion(const Version: TX3DVersion): boolean; override;
Public function TransformationChange: TNodeTransformationChange; override;

Properties

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

Description

Methods

Protected function DirectEnumerateActive(Func: TEnumerateChildrenFunction): Pointer; override;
 
Protected procedure ApplyTransform(State: TX3DGraphTraverseState); override;
 
Public procedure CreateNode; override;
 
Public class function ClassX3DType: string; override;
 
Public class function URNMatching(const URN: string): boolean; override;
 
Public class function ForVRMLVersion(const Version: TX3DVersion): boolean; override;
 
Public function TransformationChange: TNodeTransformationChange; override;
 

Properties

Public property FdCenter: TSFVec3f read FFdCenter;
 
Public property FdRotation: TSFRotation read FFdRotation;
 
Public property FdScale: TSFVec3f read FFdScale;
 
Public property FdScaleOrientation: TSFRotation read FFdScaleOrientation;
 
Public property FdTranslation: TSFVec3f read FFdTranslation;
 
Public property Center: TVector3Single read GetCenter write SetCenter;

Pivot around which the Rotation and Scale are performed.

Public property Rotation: TVector4Single read GetRotation write SetRotation;

Rotate the children in 3D, around a given axis by a given angle. Rotation is done around Center.

Public property Scale: TVector3Single read GetScale write SetScale;

Scale in 3D. Scaling is done around Center and with orientation given by ScaleOrientation.

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 T3DTransform.Scale documentation for some good guidelines about the scale.

Public property ScaleOrientation: TVector4Single read GetScaleOrientation write SetScaleOrientation;

Orientation in which 3D Scale is performed.

Public property Translation: TVector3Single read GetTranslation write SetTranslation;

Translate (move) the children.


Generated by PasDoc 0.14.0.