CSLXSIMaterial Class Reference
#include <XSIMaterial.h>
Inheritance diagram for CSLXSIMaterial:
List of all members.
Detailed Description
Base class to describe a Material for dotXSI 5.0+ (see the XSI_Material template reference). The role of this class is to help build a shader tree that describes an effect. They are containers of CSLXSIShader objects and CSLConnectionPoint objects.
- Tip:
- To get more information on Materials, see the Autodesk Softimage documentation on the render tree and the Realtime Shaders SDK documentation.
- Note:
- This template was introduced in dotXSI Version 3.6
Constructor & Destructor Documentation
Constructor
- Parameters:
-
|
|
in_pScene |
Parent scene |
|
|
in_pModel |
Parent model |
|
|
in_pTemplate |
Refered template |
Member Function Documentation
Commit the current template information
- Returns:
- SI_Error Whether or not the commit was successful
Reimplemented from CSLBaseMaterial.
Searches for a parameter
- Parameters:
-
|
|
in_szName |
Name of the parameter to look for |
- Returns:
- CSLAnimatableType Pointer to the found parameter, null otherwise
Reimplemented from CSLTemplate.
Add a connection point to the connection point list
- Returns:
- CSLConnectionPoint Pointer to the newly added connection point
| SI_Error RemoveConnectionPoint |
( |
SI_Int |
in_nIndex |
) |
|
Removes a connection point from the connection point list
- Parameters:
-
|
|
in_nIndex |
Index of the connection point to remove |
- Returns:
- SI_Error Whether or not the connection point could be removed
Removes a connection point from the connection point list
- Parameters:
-
|
|
in_pToRemove |
Pointer to the connection point to remove |
- Returns:
- SI_Error Whether or not the connection point could be removed
Removes all connections points from the connection point list
- Returns:
- SI_Error Whether or not the list could be cleared
Adds an exisiting connection point to the connection point list
- Parameters:
-
|
|
in_pToConnect |
Pointer to the connection point to add |
- Returns:
- The added connection point or null if it already exists in the list
Gets a pointer to the internally-stored connection point pointer list
- Returns:
- CSLConnectionPoint Pointer to the list
| SI_Int GetConnectionPointCount |
( |
|
) |
|
Gets the total number of connection points
- Returns:
- SI_Int Number of connection points
Adds a shader to the shader list
- Returns:
- CSLXSIShaderPointer to the newly added shader
| SI_Error RemoveShader |
( |
SI_Int |
in_nIndex |
) |
|
Removes a shader from the shader list
- Parameters:
-
|
|
in_nIndex |
Index of the shader to remove |
- Returns:
- SI_Error Whether or not the shader could be removed
Removes a shader from the shader list
- Parameters:
-
|
|
in_pToRemove |
Pointer to the shader to remove |
- Returns:
- SI_Error Whether or not the shader could be removed
Removes all connections points from the shader list
- Returns:
- SI_Error Whether or not the list could be cleared
Adds an exisiting shader to the shader list
- Parameters:
-
|
|
in_pToConnect |
Pointer to the shader to add |
- Returns:
- The added shader or null if it already exists in the list
Gets a pointer to the internally-stored shader pointer list
- Returns:
- CSLXSIShader Pointer to the list
| SI_Int GetShaderCount |
( |
|
) |
|
Gets the total number of Shaders
- Returns:
- SI_Int Number of Shaders
Searches for a given shader
- Parameters:
-
|
|
in_szShaderName |
Name of the shader to look for |
- Returns:
- CSLXSIShader Pointer to the shader or null if it cannot be found
Creates a new material info
- Returns:
- The new material info or null if there's already one
Destroys the material info
- Returns:
- SI_Error Whether or not the material info could be destroyed
Connects an exisiting material info
- Parameters:
-
|
|
in_pToConnect |
Pointer to the material info to use |
- Returns:
- The added material info or null if there's already one
Gets a pointer to the material info
- Returns:
- CSLXSIMaterialInfo Pointer to the material info
Add a multi port connection to the multi port connection list
- Parameters:
-
|
|
in_pParameter |
Name of the new multi port connection parameter |
|
|
in_pPortName |
Name of the new multi port connection port name |
- Returns:
- The added multi port connection
| SI_Error RemoveMultiPortConnection |
( |
SI_Int |
in_nIndex |
) |
|
Remove a multi port connection from the multi port connection list
- Parameters:
-
|
|
in_nIndex |
Index of the multi port connection to remove |
Remove a multi port connection from the multi port connection list
- Parameters:
-
|
|
in_pToRemove |
The multi port connection to remove |
Get the CSLXSIShaderMultiPortConnection object of a given multi port connection by index.
- Parameters:
-
|
|
in_nIndex |
Index of the multi port connection to get |
- Returns:
- CSLXSIShaderMultiPortConnection The CSLXSIShaderMultiPortConnection that holds the name and the type of a multi port connection.
Get the CSLXSIShaderMultiPortConnection object of a given multi port connection by parameter name.
- Parameters:
-
|
|
in_pParameter |
Name of the multi port connection parameter you're looking for |
- Returns:
- CSLXSIShaderMultiPortConnection Pointer to the CSLXSIShaderMultiPortConnection found
NULL If not found
| SI_Int GetMultiPortConnectionCount |
( |
|
) |
|
Get the number of multi port connection in the multi port connection list
- Returns:
- SI_Int The number of multi port connection in the multi port connection list
Deletes all the multi port connection form the multi port connection list
Gets a pointer to the internally-stored multi port connection pointer list
- Returns:
- CSLXSIShaderMultiPortConnection Pointer to the list
Adds an exisiting multi port connection to the multi port connection list
- Parameters:
-
|
|
in_pToConnect |
Pointer to the multi port connection to add |
- Returns:
- The added multi port connection
Search the multi port connection list for one with a corresponding parameter name
- Parameters:
-
|
|
in_pName |
The parameter name to look for |
- Returns:
- Pointer on the multi port connection if found, NULL if not found
Add a texture layer to the texture layer list
- Returns:
- The added texture layer
| SI_Error RemoveTextureLayer |
( |
SI_Int |
in_nIndex |
) |
|
Remove a texture layer from the texture layer list
- Parameters:
-
|
|
in_nIndex |
Index of the texture layer to remove |
Remove a texture layer from the texture layer list
- Parameters:
-
|
|
in_pToRemove |
The texture layer to remove |
Get the CSLXSITextureLayer object by index.
- Parameters:
-
|
|
in_nIndex |
Index of the texture layer to get |
- Returns:
- CSLXSITextureLayer The CSLXSITextureLayer.
Search the texture layer list for one with a corresponding order index
- Parameters:
-
|
|
in_nOrder |
The order index of the texture layer to look for |
- Returns:
- Pointer on the texture layer if found, NULL if not found
| SI_Int GetTextureLayerCount |
( |
|
) |
|
Get the number of texture layer in the texture layer list
- Returns:
- SI_Int The number of texture layer in the texture layer list
Deletes all the texture layer form the texture layer list
Gets a pointer to the internally-stored texture layer pointer list
- Returns:
- CSLXSITextureLayer Pointer to the list
Adds an exisiting texture layer to the texture layer list
- Parameters:
-
|
|
in_pToConnect |
Pointer to the texture layer to add |
- Returns:
- The added texture layer
The documentation for this class was generated from the following file: