#include <dotXSITemplate.h>
Inheritance diagram for CdotXSITemplate:

Public Member Functions |
|
| CdotXSITemplate () | |
| CdotXSITemplate (CSIBCString *i_sName) | |
| CdotXSITemplate (CSIBCString i_sName, DOTXSIREADCALLBACK i_ReadCallback, DOTXSIWRITECALLBACK i_WriteCallback, SI_Int i_lVersionMajor, SI_Int i_lVersionMinor, SI_Int i_nNbParams, CdotXSIParam *i_Param1,...) | |
| CdotXSITemplate (CSIBCString i_sName, DOTXSIREADCALLBACK i_ReadCallback, DOTXSIWRITECALLBACK i_WriteCallback, SI_Int i_nNbParams, CdotXSIParam *i_Param1,...) | |
| virtual | ~CdotXSITemplate () |
| virtual SI_Void | SetInstanceName (CSIBCString i_sInstanceName) |
| CSIBCString & | InstanceName () |
| SI_Void | SetUserDataType (CSIBCString i_sUserDataType) |
| CSIBCString & | UserDataType () |
| CdotXSITemplates & | Children () |
| SI_Void | SetParent (CdotXSITemplate *i_Parent) |
| SI_Void | Reparent (CdotXSITemplate *i_Parent) |
| CdotXSITemplate * | Parent () |
| SI_Void | SetSystemFlags (SI_Int i_nSystemFlags) |
| SI_Void | GetSystemFlags (SI_Int *o_nSystemFlags) |
| SI_Void | SetUserFlags (SI_Int i_nUserFlags) |
| SI_Void | GetUserFlags (SI_Int *o_nUserFlags) |
| CdotXSIParams & | Params () |
| virtual SI_Void | InitializeFromName (SI_Char *i_pChar, CXSIParser *in_pParser) |
| CdotXSITemplates * | ChildrenOfType (CSIBCString in_type) |
| CdotXSITemplate * | ChildrenOfTypeNamed (CSIBCString in_type, CSIBCString in_name) |
| eCOLLADATemplateType | GetTemplateType () |
| SI_Void | SetTemplateType (eCOLLADATemplateType in_etype) |
Public Attributes |
|
| DOTXSIREADCALLBACK | m_ReadCallback |
| Callback function for reading the template. |
|
| DOTXSIWRITECALLBACK | m_WriteCallback |
| Callback function for writing the template. |
|
| DOTXSIWRITECALLBACK | m_WritePostCallback |
| Callback function for writing the end of the template (not used by dotXSI). |
|
All scene information in Softimage (excluding sources, such as image or audio files) is stored within templates. These templates contain parameters that define what type the template is, and given the type, what object/property the template represents in terms of the scene. This is the base class representing all templates used in Softimage.
This class is distinct from the CSLTemplate class. That class, as its name indicates, is the template representation used in the Semantic Layer library, whereas this class represents the native Softimage template.
Also unlike the CSLTemplate class, this class is concrete, meaning that it can be instantiated. This is not generally done however. Generally, CdotXSITemplate objects are only allocated within methods of the Semantic Layer.
| CdotXSITemplate | ( | ) |
Default constructor. Sets the default version information, and the default read and write callbacks for the template.
| CdotXSITemplate | ( | CSIBCString * | i_sName | ) |
Constructor. Sets the type name of the template to the name give by i_sName.
| i_sName | Type name of the new template. |
| CdotXSITemplate | ( | CSIBCString | i_sName, | |
| DOTXSIREADCALLBACK | i_ReadCallback, | |||
| DOTXSIWRITECALLBACK | i_WriteCallback, | |||
| SI_Int | i_lVersionMajor, | |||
| SI_Int | i_lVersionMinor, | |||
| SI_Int | i_nNbParams, | |||
| CdotXSIParam * | i_Param1, | |||
| ... | ||||
| ) |
Constructor. Sets the type name, read and write callbacks, version information, as well as a variable number of CdotXSIParam parameter definitions to add to the new template.
| i_sName | Type name of the new template. | |
| i_ReadCallback | Pointer to the read callback function used to read this template. | |
| i_WriteCallback | Pointer to the write callback function used to write this template. | |
| i_lVersionMajor | Major version number used for this template. | |
| i_lVersionMinor | Minor version number used for this template. | |
| i_nNbParams | Number of variable CdotXSIParam arguments to follow. | |
| i_Param1 | First parameter definition (if i_nNbParams > 0) to add to this template. |
|
| ... | More parameter definitions (of CdotXSIParam * type) to add to this template. |
| CdotXSITemplate | ( | CSIBCString | i_sName, | |
| DOTXSIREADCALLBACK | i_ReadCallback, | |||
| DOTXSIWRITECALLBACK | i_WriteCallback, | |||
| SI_Int | i_nNbParams, | |||
| CdotXSIParam * | i_Param1, | |||
| ... | ||||
| ) |
Constructor. Sets the type name, read and write callbacks, as well as a variable number of CdotXSIParam parameter definitions to add to the new template. Note that it does not contain an entry for version information, which is set the the default.
| i_sName | Type name of the new template. | |
| i_ReadCallback | Pointer to the read callback function used to read this template. | |
| i_WriteCallback | Pointer to the write callback function used to write this template. | |
| i_lVersionMajor | Major version number used for this template. | |
| i_lVersionMinor | Minor version number used for this template. | |
| i_nNbParams | Number of variable CdotXSIParam arguments to follow. | |
| i_Param1 | First parameter definition (if i_nNbParams > 0) to add to this template. |
|
| ... | More parameter definitions (of CdotXSIParam * type) to add to this template. |
| virtual ~CdotXSITemplate | ( | ) | [virtual] |
Destructor
| virtual SI_Void SetInstanceName | ( | CSIBCString | i_sInstanceName | ) | [virtual] |
Changes the instance name of this template to the one given by i_sInstanceName
| i_sInstanceName | The new instance name of this template. |
| CSIBCString& InstanceName | ( | ) | [inline] |
Returns the instance name of this template.
| SI_Void SetUserDataType | ( | CSIBCString | i_sUserDataType | ) |
Set the user data type for this template.
| i_sUserDataType | String representing the type of user data contained in this template. |
| CSIBCString& UserDataType | ( | ) | [inline] |
Gets the string representing the user data type name.
| CdotXSITemplates& Children | ( | ) | [inline] |
Gets the CdotXSITemplates children container instance.
| SI_Void SetParent | ( | CdotXSITemplate * | i_Parent | ) |
Sets the parent template of this template to i_Parent
| i_Parent | The new parent template of this template. |
| SI_Void Reparent | ( | CdotXSITemplate * | i_Parent | ) |
Sets the parent template of this template to i_Parent
| i_Parent | The new parent template of this template. |
| CdotXSITemplate* Parent | ( | ) | [inline] |
Gets the parent template of this template.
| SI_Void SetSystemFlags | ( | SI_Int | i_nSystemFlags | ) |
Sets the system flags for this template. System flags have no specific meaning within the template. Applications using the FTK may set/query system flags as a convenient way to set application defined flags, per template. Note: This function does not remove any flags previously set.
| i_nSystemFlags | Bit-wise system flags to set for this template. |
| SI_Void GetSystemFlags | ( | SI_Int * | o_nSystemFlags | ) |
Gets the system flags for this template. System flags have no specific meaning within the template. Applications using the FTK may set/query system flags as a convenient way to set application defined flags, per template.
| o_nSystemFlags | Pointer to an SI_Int to recieve system flags set for this template. |
| SI_Void SetUserFlags | ( | SI_Int | i_nUserFlags | ) |
Sets the user flags for this template. User flags have no specific meaning within the template. Applications using the FTK may set/query user flags as a convenient way to set application defined flags, per template. Note: This function does not remove any flags previously set.
| i_nUserFlags | Bit-wise user flags to set for this template. |
| SI_Void GetUserFlags | ( | SI_Int * | o_nUserFlags | ) |
Gets the user flags for this template. User flags have no specific meaning within the template. Applications using the FTK may set/query user flags as a convenient way to set application defined flags, per template.
| o_nUserFlags | Pointer to an SI_Int to recieve system flags set for this template. |
| CdotXSIParams& Params | ( | ) | [inline] |
Gets the CdotXSIParams params container instance.
| virtual SI_Void InitializeFromName | ( | SI_Char * | i_pChar, | |
| CXSIParser * | in_pParser | |||
| ) | [virtual] |
Initialize the template from a name in the native templates collection.
| i_pChar | String representing the type name of the template to initialize. | |
| in_pParser | Pointer to the parser object. |
| CdotXSITemplates* ChildrenOfType | ( | CSIBCString | in_type | ) |
Creates a new CdotXSITemplates container, containing all child templates of this template, that match the type name given by in_type. If there are no matches, the created container is empty (but is still valid).
| in_type | The type name to match to the child type name. |
| CdotXSITemplate* ChildrenOfTypeNamed | ( | CSIBCString | in_type, | |
| CSIBCString | in_name | |||
| ) |
Returns the first child template that has type name in_type and instance name in_name.
| in_type | The type name to match to a child template. | |
| in_name | The instance name to match to a child template. |
in_type and instance name in_name. NULL if no children match the given parameters. | eCOLLADATemplateType GetTemplateType | ( | ) | [inline] |
Returns the template type
| SI_Void SetTemplateType | ( | eCOLLADATemplateType | in_etype | ) | [inline] |
Sets the template type