Class TAbstractCubicBezierInterpolatorNode

Unit

Declaration

type TAbstractCubicBezierInterpolatorNode = class(TAbstractInterpolatorNode)

Description

Copyright 2002-2022 Michalis Kamburelis.

This file is part of "Castle Game Engine".

"Castle Game Engine" is free software; see the file COPYING.txt, included in this distribution, for details about the copyright.

"Castle Game Engine" is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

—————————————————————————-

Hierarchy

Overview

Methods

Protected function DeepCopyCore(CopyState: TX3DNodeDeepCopyState): TX3DNode; override;
Public destructor Destroy; override;
Public procedure OptimizeControlPoints( const CopyOptimizedDataFrom: TAbstractCubicBezierInterpolatorNode = nil);
Public procedure CreateNode; override;
Public class function ClassX3DType: String; override;
Public procedure SetControlPoints(const Value: array of TVector4); overload;
Public procedure SetControlPoints(const Value: TVector4List); overload;

Properties

Public property FdControlPoints: TMFVec4f read FFdControlPoints;

Description

Methods

Protected function DeepCopyCore(CopyState: TX3DNodeDeepCopyState): TX3DNode; override;

This item has no description. Showing description inherited from TX3DNode.DeepCopyCore.

Does actual DeepCopy work. You can override this to copy some more properties for descendants.

Public destructor Destroy; override;

This item has no description.

Public procedure OptimizeControlPoints( const CopyOptimizedDataFrom: TAbstractCubicBezierInterpolatorNode = nil);

Once the FdControlPoints value is settled, call this to precalculate curve parameters. This makes the following interpolation using this node work fast.

You can pass CopyOptimizedDataFrom if you have a copy of this node (with exactly equal FdControlPoints) from which we could copy optimized data.

Public procedure CreateNode; override;

Create node fields and events.

Public class function ClassX3DType: String; override;

This item has no description. Showing description inherited from TX3DNode.ClassX3DType.

Node type name in VRML/X3D, for this class. Normal VRML/X3D node classes should override this to return something non-empty, and then X3DType automatically will return the same value.

Empty for classes that don't have a hardcoded VRML/X3D node name, like a special TX3DUnknownNode. Such special classes should override then X3DType to return actual non-empty name there.

You usually should call X3DType. The only use of this method is that it works on classes (it's "class function"), without needing at actual instance.

Public procedure SetControlPoints(const Value: array of TVector4); overload;

This item has no description.

Public procedure SetControlPoints(const Value: TVector4List); overload;

This item has no description.

Properties

Public property FdControlPoints: TMFVec4f read FFdControlPoints;

Internal wrapper for property ControlPoints. This wrapper API may change, we advise to access simpler ControlPoints instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart).


Generated by PasDoc 0.16.0-snapshot.