FBX C++ API Reference
|
#include <fbxrenamingstrategy.h>
The FbxRenamingStrategy object can be set to rename all the objects in a scene.
It can remove name clashing, remove illegal characters, manage namespaces and manage backward compatibility. It is better to choose FbxSceneRenamer instead of this class to simplify the usage.
Definition at line 117 of file fbxrenamingstrategy.h.
Public Types | |
enum | EDirection { eToFBX, eFromFBX } |
The mode describing the convention direction, from FBX format or to FBX format. More... | |
enum | EClashType { eNameClashAuto, eNameClashType1, eNameClashType2 } |
Public Member Functions | |
FbxRenamingStrategy (EDirection pMod, bool pOnCreationRun=false) | |
Constructor. More... | |
virtual | ~FbxRenamingStrategy () |
Destructor. More... | |
virtual bool | Rename (FbxNameHandler &pName) |
Rename a name if necessary. More... | |
virtual void | Clear () |
Resets internal state regarding assigned names. More... | |
virtual FbxRenamingStrategyInterface * | Clone () |
Create a dynamic renaming strategy instance of the same type as the child class. More... | |
void | SetClashSolverType (EClashType pType) |
Setup the strategy to perform this algorithm. More... | |
virtual char * | GetNameSpace () |
Get the namespace of the last renamed object. More... | |
virtual void | SetInNameSpaceSymbol (FbxString pNameSpaceSymbol) |
Sets the current scene namespace symbol. More... | |
virtual void | SetOutNameSpaceSymbol (FbxString pNameSpaceSymbol) |
Sets the wanted scene namespace symbol. More... | |
virtual void | SetCaseSensibility (bool pIsCaseSensitive) |
Sets case sensitivity for name clashing. More... | |
virtual void | SetReplaceNonAlphaNum (bool pReplaceNonAlphaNum) |
Sets the flag for character acceptance during renaming. More... | |
virtual void | SetFirstNotNum (bool pFirstNotNum) |
Sets the flag for first character acceptance during renaming. More... | |
virtual bool | RenameUnparentNameSpace (FbxNode *pNode, bool pIsRoot=false) |
Recursively renames all the unparented namespaced objects (Prefix mode) starting from this node. More... | |
virtual bool | RemoveImportNameSpaceClash (FbxNode *pNode) |
Recursively removes all the unparented namespaced "key" starting from this node. More... | |
virtual void | GetParentsNameSpaceList (FbxNode *pNode, FbxArray< FbxString *> &pNameSpaceList) |
Recursively get all the namespace starting from this node's parent. More... | |
virtual bool | PropagateNameSpaceChange (FbxNode *pNode, FbxString OldNS, FbxString NewNS) |
Recursively replace the namespace starting from this node to its children. More... | |
![]() | |
FbxRenamingStrategyInterface () | |
Constructor. More... | |
virtual | ~FbxRenamingStrategyInterface () |
Destructor. More... | |
enum EDirection |
The mode describing the convention direction, from FBX format or to FBX format.
Enumerator | |
---|---|
eToFBX | |
eFromFBX |
Definition at line 124 of file fbxrenamingstrategy.h.
enum EClashType |
Enumerator | |
---|---|
eNameClashAuto | |
eNameClashType1 | |
eNameClashType2 |
Definition at line 158 of file fbxrenamingstrategy.h.
FbxRenamingStrategy | ( | EDirection | pMod, |
bool | pOnCreationRun = false |
||
) |
Constructor.
pMod | The mode describing the convention direction, from FBX format or to FBX format. |
pOnCreationRun |
|
virtual |
Destructor.
|
virtual |
Rename a name if necessary.
pName | The name to be renamed. |
true
on success, false
otherwise. Implements FbxRenamingStrategyInterface.
|
virtual |
Resets internal state regarding assigned names.
Implements FbxRenamingStrategyInterface.
|
virtual |
Create a dynamic renaming strategy instance of the same type as the child class.
Implements FbxRenamingStrategyInterface.
void SetClashSolverType | ( | EClashType | pType | ) |
Setup the strategy to perform this algorithm.
pType |
|
inlinevirtual |
Get the namespace of the last renamed object.
Definition at line 173 of file fbxrenamingstrategy.h.
|
inlinevirtual |
Sets the current scene namespace symbol.
pNameSpaceSymbol | namespace symbol. |
Definition at line 178 of file fbxrenamingstrategy.h.
|
inlinevirtual |
Sets the wanted scene namespace symbol.
pNameSpaceSymbol | namespace symbol. |
Definition at line 183 of file fbxrenamingstrategy.h.
|
inlinevirtual |
Sets case sensitivity for name clashing.
pIsCaseSensitive | Set to true to make the name clashing case sensitive. |
Definition at line 188 of file fbxrenamingstrategy.h.
|
inlinevirtual |
Sets the flag for character acceptance during renaming.
pReplaceNonAlphaNum | Set to true to replace illegal characters with an underscore ("_"). |
Definition at line 193 of file fbxrenamingstrategy.h.
|
inlinevirtual |
Sets the flag for first character acceptance during renaming.
pFirstNotNum | Set to true to add an underscore to the name if the first character is a number. |
Definition at line 198 of file fbxrenamingstrategy.h.
|
virtual |
Recursively renames all the unparented namespaced objects (Prefix mode) starting from this node.
pNode | Parent node. |
pIsRoot | The root node. |
true
if the "_NSclash" have been added to one or more node.
|
virtual |
Recursively removes all the unparented namespaced "key" starting from this node.
pNode | Parent node. |
true
if successfully removed the "_NSclash" from one or more nodes.
|
virtual |
Recursively get all the namespace starting from this node's parent.
pNode | Parent node. |
pNameSpaceList | output the namespace list from pNode's parent to the root node. |
Recursively replace the namespace starting from this node to its children.
pNode | Current node. |
OldNS | The old namespace to be replaced with the NewNs. |
NewNS | The new namespace to replace OldNs. |
true
if successfull