#include <c4d_baselist.h>
An alias translator class.
The alias translator takes care about reconnecting BaseLink links when cloning, copying, reading or writing objects.
Normally Cinema 4D will provide an alias translator when needed, for example in NodeData::CopyTo(). However, to copy objects manually use:
Private Member Functions | |
AliasTrans () | |
~AliasTrans () | |
Alloc/Free | |
static AliasTrans * | Alloc () |
static void | Free (AliasTrans *&link) |
Init and Translate | |
Bool | Init (const BaseDocument *doc) |
void | Translate (Bool connect_oldgoals) |
|
private |
|
private |
|
static |
|
static |
Bool Init | ( | const BaseDocument * | doc | ) |
Initializes the alias translator in the specified document doc.
[in] | doc | The document. The caller owns the pointed object. |
void Translate | ( | Bool | connect_oldgoals | ) |
Translates the links in all objects that the translator has come across.
[in] | connect_oldgoals | Connect old goals. For example: Take a cube with an instance linked to this cube, select both and duplicate them in one action. The new cube is linked to the new instance if connect_oldgoals is true. If it is false the new instance is linked to the old cube. |