KFbxRenamingStrategy Class Reference
#include
<kfbxrenamingstrategy.h>
List of all members.
Detailed Description
This class contains the description of the FBX renaming strategy.
The
KFbxRenamingStrategy object can be setup to rename all the
objects in a scene. It can remove name clashing, remove illegal
characters, manage namespaces, and manage backward
compatibility.
Definition at line 61 of file kfbxrenamingstrategy.h.
Member Enumeration Documentation
Constructor & Destructor Documentation
Member Function Documentation
Setup the strategy to perform this algorithm.
- Parameters:
-
virtual bool Rename |
( |
KName
& |
pName |
) |
[virtual] |
Rename.
- Parameters:
-
- Returns:
true
if successful, false
otherwise.
Implements KRenamingStrategy.
virtual void Clear |
( |
|
) |
[virtual] |
static char* NoPrefixName |
( |
char const * |
pName |
) |
[static] |
Returns a name with its prefix removed.
- Parameters:
-
|
pName |
A name containing a prefix. |
- Returns:
- The part of pName following the "::"
static char* NoPrefixName |
( |
KString
& |
pName |
) |
[static] |
Returns a name with its prefix removed.
- Parameters:
-
|
pName |
A name containing a prefix. |
- Returns:
- The part of pName following the "::"
virtual char* GetNameSpace |
( |
|
) |
[inline, virtual] |
Get the namespace of the last renamed object.
- Returns:
- Char pointer to the namespace.
Definition at line 134 of file kfbxrenamingstrategy.h.
virtual void SetInNameSpaceSymbol |
( |
KString |
pNameSpaceSymbol |
) |
[inline, virtual] |
Sets the current scene namespace symbol.
- Parameters:
-
|
pNameSpaceSymbol |
namespace symbol. |
Definition at line 139 of file kfbxrenamingstrategy.h.
virtual void SetOutNameSpaceSymbol |
( |
KString |
pNameSpaceSymbol |
) |
[inline, virtual] |
Sets the wanted scene namespace symbol.
- Parameters:
-
|
pNameSpaceSymbol |
namespace symbol. |
Definition at line 144 of file kfbxrenamingstrategy.h.
virtual void SetCaseSensibility |
( |
bool |
pIsCaseSensitive |
) |
[inline, virtual] |
Sets case sensitivity for name clashing.
- Parameters:
-
|
pIsCaseSensitive |
Set to true to make the name clashing case
sensitive. |
Definition at line 149 of file kfbxrenamingstrategy.h.
virtual void SetReplaceNonAlphaNum |
( |
bool |
pReplaceNonAlphaNum |
) |
[inline, virtual] |
Sets the flag for character acceptance during renaming.
- Parameters:
-
|
pReplaceNonAlphaNum |
Set to true to replace illegal characters with an
underscore ("_"). |
Definition at line 154 of file kfbxrenamingstrategy.h.
virtual void SetFirstNotNum |
( |
bool |
pFirstNotNum |
) |
[inline, virtual] |
Sets the flag for first character acceptance during
renaming.
- Parameters:
-
|
pFirstNotNum |
Set to true to add an underscore to the name if
the first character is a number. |
Definition at line 159 of file kfbxrenamingstrategy.h.
virtual bool RenameUnparentNameSpace |
( |
KFbxNode
* |
pNode, |
|
|
bool |
pIsRoot = false |
|
|
) |
|
|
[virtual] |
Recursively renames all the unparented namespaced objects
(Prefix mode) starting from this node.
- Parameters:
-
|
pNode |
Parent node. |
|
pIsRoot |
The root node. |
virtual bool RemoveImportNameSpaceClash |
( |
KFbxNode
* |
pNode |
) |
[virtual] |
Recursively removes all the unparented namespaced "key" starting
from this node.
- Parameters:
-
KFbxRenamingStrategy
KFbxRenamingStrategy KFbxRenamingStrategy KFbxRenamingStrategy
KFbxRenamingStrategy KFbxRenamingStrategy KFbxRenamingStrategy
KFbxRenamingStrategy KFbxRenamingStrategy
KFbxRenamingStrategy
KFbxRenamingStrategy
KFbxRenamingStrategy KFbxRenamingStrategy KFbxRenamingStrategy
KFbxRenamingStrategy KFbxRenamingStrategy KFbxRenamingStrategy
KFbxRenamingStrategy KFbxRenamingStrategy
KFbxRenamingStrategy