#include<kfbxrenamingstrategy.h>
TheKFbxSceneRenamerprovides a way to easily rename objects in a scene without using theKFbxRenamingStrategyclass.KFbxSceneRenamerremoves nameclashing, illegal characters, and manages namespaces.
Definition at line221of filekfbxrenamingstrategy.h.
Public Types | |
enum | ERenamingMode |
| |
Public Member Functions | |
KFbxSceneRenamer(KFbxScene*pScene) | |
Create an object of typeKFbxSceneRenamer. | |
virtual | ~KFbxSceneRenamer() |
Deletes this object. | |
void | ResolveNameClashing(bool pFromFbx, bool pIgnoreNS, bool pIsCaseSensitive, bool pReplaceNonAlphaNum, bool pFirstNotNum,KStringpInNameSpaceSymbol,KStringpOutNameSpaceSymbol, bool pNoUnparentNS, bool pRemoveNameSpaceClash) |
Rename all object to remove name clashing. |
enumERenamingMode |
Definition at line256of filekfbxrenamingstrategy.h.
KFbxSceneRenamer | ( | KFbxScene* | pScene | ) | [inline] |
Create an object of typeKFbxSceneRenamer.
pScene | Scene to be renamed. |
Definition at line229of filekfbxrenamingstrategy.h.
virtual ~KFbxSceneRenamer | ( | ) | [inline, virtual] |
Deletes this object.
All the references will become invalid.
Definition at line234of filekfbxrenamingstrategy.h.
void ResolveNameClashing | ( | bool | pFromFbx, | |
bool | pIgnoreNS, | |||
bool | pIsCaseSensitive, | |||
bool | pReplaceNonAlphaNum, | |||
bool | pFirstNotNum, | |||
KString | pInNameSpaceSymbol, | |||
KString | pOutNameSpaceSymbol, | |||
bool | pNoUnparentNS, | |||
bool | pRemoveNameSpaceClash | |||
) |
Rename all object to remove name clashing.
pFromFbx | Set totrue to enable this flag. | |
pIgnoreNS | Set totrue to enable this flag. | |
pIsCaseSensitive | Set totrue to enable case sensitive renaming. | |
pReplaceNonAlphaNum | Set totrue to replace non-alphanumeric characters with underscores ("_"). | |
pFirstNotNum | Set totrue toadd a leading _ if first char is a number (for xs:NCName). | |
pInNameSpaceSymbol | Identifier of a namespace. | |
pOutNameSpaceSymbol | Identifier of a namespace. | |
pNoUnparentNS | Set totrue to not not allow unparent namespace. | |
pRemoveNameSpaceClash | Set totrue to remove NameSpaceClash token. |