Class TX3DNodeDeepCopyState

Unit

Declaration

type TX3DNodeDeepCopyState = class(TObject)

Description

Private stuff for TX3DNode.DeepCopy and friends implementation.

Hierarchy

Overview

Methods

Public constructor Create;
Public destructor Destroy; override;
Public function DeepCopy(const OriginalNode: TX3DNode): TX3DNode;

Description

Methods

Public constructor Create;
 
Public destructor Destroy; override;
 
Public function DeepCopy(const OriginalNode: TX3DNode): TX3DNode;

Return a copy or OriginalNode.

To keep sharing of nodes (DEF/USE mechanism) within the newly created copy, we need a list of already duplicated children. This method uses and updates such list. When called for the first time with OriginalNode, it actually creates a duplicate (by OriginalNode.DeepCopy). Next time, it will just return this copy.


Generated by PasDoc 0.16.0.