A name is a case-sensitive string ID of a property, a node, a node attribute, a texture, etc.
The characters constituting a name has no specific limitation. An initial name is the original name (from importing a file, for example), which is saved up for reversible renaming. A current name is the name used in FBX. A namespace is a simple grouping of objects under a given name. Namespaces are primarily used to resolve name-clash issues in FBX, where a new object has the same name as an existing object.
For example, Maya only accepts names with letters, digits, or underscores. And when a user import FBX into Maya, a node whose name contains whitespace will be renamed. But the connections and references to this node in FBX scene graph still use the original name, so users have to use the initial name to retrieve related information.
Definition at line 34 of file fbxnamehandler.h.
#include <fbxnamehandler.h>
Public Member Functions | |
| FbxNameHandler (char const *pInitialName="") | |
| Constructor. | |
| FbxNameHandler (FbxNameHandler const &pName) | |
| Copy constructor. | |
| ~FbxNameHandler () | |
| void | SetInitialName (char const *pInitialName) |
| Set the initial name. | |
| char const * | GetInitialName () const |
| Get the initial name. | |
| void | SetCurrentName (char const *pNewName) |
| Set the current name. | |
| char const * | GetCurrentName () const |
| Get the current name. | |
| void | SetNameSpace (char const *pNameSpace) |
| Set the namespace. | |
| char const * | GetNameSpace () const |
| Get the namespace. | |
| bool | IsRenamed () const |
| Check if the current name and initial name match. | |
| FbxNameHandler & | operator= (FbxNameHandler const &pName) |
| Assignment operator. | |
| FbxArray< FbxString * > | GetNameSpaceArray (char identifier) |
| Get the namespaces in a string pointer array format. | |
Private use for the renaming strategies classes. | |
Some renaming strategies classes need to store the parent name to successfully apply the renaming algorithms.The methods in this section allow them to do so.
| |
| void | SetParentName (char const *pParentName) |
| Set the parent name. | |
| char const * | GetParentName () const |
| Get the parent name. | |
| FbxNameHandler | ( | char const * | pInitialName = "" | ) |
Constructor.
| pInitialName | Name string used to initialize both members (initialName and currentName) of this class. |
| FbxNameHandler | ( | FbxNameHandler const & | pName | ) |
Copy constructor.
| pName | A FbxNameHandler copied to this one. |
| ~FbxNameHandler | ( | ) |
| void SetInitialName | ( | char const * | pInitialName | ) |
Set the initial name.
| pInitialName | New string for the initial name. |
| char const* GetInitialName | ( | ) | const |
| void SetCurrentName | ( | char const * | pNewName | ) |
Set the current name.
| pNewName | New string for the current name. |
| char const* GetCurrentName | ( | ) | const |
| void SetNameSpace | ( | char const * | pNameSpace | ) |
Set the namespace.
| pNameSpace | New string for the namespace. |
| char const* GetNameSpace | ( | ) | const |
| bool IsRenamed | ( | ) | const |
Check if the current name and initial name match.
true if the current name isn't identical to the initial name. | FbxNameHandler& operator= | ( | FbxNameHandler const & | pName | ) |
Assignment operator.
| pName | FbxNameHandler assigned to this one. |
| void SetParentName | ( | char const * | pParentName | ) |
Set the parent name.
| pParentName | New string for the parent name. |
| char const* GetParentName | ( | ) | const |
Get the namespaces in a string pointer array format.