CSLXSIShader Class Reference
This class represents an XSI_Shader template.
More...#include <XSIShader.h>
Inheritance diagram for CSLXSIShader:
List of all members.
|
|
Public Types
|
| enum |
EOutputType {
SI_OT_UNKNOWN,
SI_OT_BOOLEAN,
SI_OT_INTEGER,
SI_OT_SCALAR,
SI_OT_COLOR,
SI_OT_VECTOR,
SI_OT_TEXTURE_SPACE,
SI_OT_TEXTURE,
SI_OT_STRING,
SI_OT_FILENAME,
SI_OT_LENS,
SI_OT_LIGHT,
SI_OT_MATERIAL,
SI_OT_MODEL,
SI_OT_MULTI
} |
| |
Output types. More...
|
Public Member Functions
|
| |
CSLXSIShader (CSLScene *in_pScene, CSLModel *in_pParentModel, CdotXSITemplate *in_pTemplate, CSLXSIMaterial *in_pParentMaterial=NULL) |
|
virtual |
~CSLXSIShader () |
| |
Destructor.
|
| SI_Error |
Synchronize () |
| CSLTemplate::ETemplateType |
Type () |
| CSLVariantParameter * |
AddParameter () |
| SI_Error |
RemoveParameter (SI_Int in_nIndex) |
| SI_Error |
RemoveParameter (CSLVariantParameter *in_pToRemove) |
| SI_Error |
ClearParameters () |
| CSLVariantParameter * |
ConnectParameter (CSLVariantParameter *in_pToConnect) |
| CSLVariantParameter ** |
GetParameterList () |
| CSLVariantParameter * |
FindParameterByName (char *in_pName) |
| SI_Int |
GetParameterCount () |
| virtual CSLAnimatableType * |
ParameterFromName (SI_Char *in_szName) |
| virtual CSLAnimatableType * |
ParameterFromType (EFCurveType in_Type, SI_Char *in_szParameterName) |
| CSLShaderConnectionPoint * |
AddConnectionPoint () |
| SI_Error |
RemoveConnectionPoint (SI_Int in_nIndex) |
| SI_Error |
RemoveConnectionPoint (CSLShaderConnectionPoint *in_pToRemove) |
| SI_Error |
ClearConnectionPoints () |
| CSLShaderConnectionPoint * |
ConnectConnectionPoint (CSLShaderConnectionPoint *in_pToConnect) |
| CSLShaderConnectionPoint ** |
GetConnectionPointList () |
| SI_Int |
GetConnectionPointCount () |
| CSLAnimatableType * |
GetParameterFromModel (SI_Char *in_szParamName, CSLModel *in_pFromModel) |
| CSLShaderInstanceData * |
AddInstanceData () |
| SI_Error |
RemoveInstanceData (SI_Int in_nIndex) |
| SI_Error |
RemoveInstanceData (CSLShaderInstanceData *in_pToRemove) |
| SI_Error |
ClearInstanceDatas () |
| CSLShaderInstanceData * |
ConnectInstanceData (CSLShaderInstanceData *in_pToConnect) |
| CSLShaderInstanceData ** |
GetInstanceDataList () |
| SI_Int |
GetInstanceDataCount () |
| SI_Char * |
GetProgID () |
| SI_Void |
SetProgID (SI_Char *in_szProgID) |
| CSLShaderConnectionPoint * |
ConnectShader (CSLXSIShader *in_pSource, char *in_pConnection) |
| CSLShaderConnectionPoint * |
ConnectImage (CSLImage *in_pSource, char *in_pConnection) |
| EOutputType |
GetOutputType () |
| SI_Void |
SetOutputType (EOutputType in_OutputType) |
| CSLXSIShaderMultiPortConnection * |
AddMultiPortConnection () |
| SI_Error |
RemoveMultiPortConnection (SI_Int in_nIndex) |
| SI_Error |
RemoveMultiPortConnection (CSLXSIShaderMultiPortConnection *in_pToRemove) |
| CSLXSIShaderMultiPortConnection * |
GetMultiPortConnection (SI_Int in_nIndex) |
| CSLXSIShaderMultiPortConnection * |
GetMultiPortConnectionByParameter (SI_Char *in_pParameter) |
| SI_Int |
GetMultiPortConnectionCount () |
| SI_Error |
ClearMultiPortConnections () |
| CSLXSIShaderMultiPortConnection ** |
GetMultiPortConnectionList () |
| CSLXSIShaderMultiPortConnection * |
ConnectMultiPortConnection (CSLXSIShaderMultiPortConnection *in_pToConnect) |
| CSLXSIShaderMultiPortConnection * |
FindMultiPortConnectionByParameterName (SI_Char *in_pName) |
| CSLXSITextureLayer * |
AddTextureLayer () |
| SI_Error |
RemoveTextureLayer (SI_Int in_nIndex) |
| SI_Error |
RemoveTextureLayer (CSLXSITextureLayer *in_pToRemove) |
| CSLXSITextureLayer * |
GetTextureLayer (SI_Int in_nIndex) |
| CSLXSITextureLayer * |
FindTextureLayerByOrder (SI_Int in_nOrder) |
| SI_Int |
GetTextureLayerCount () |
| SI_Error |
ClearTextureLayers () |
| CSLXSITextureLayer ** |
GetTextureLayerList () |
| CSLXSITextureLayer * |
ConnectTextureLayer (CSLXSITextureLayer *in_pToConnect) |
| void |
SetParentMaterial (CSLXSIMaterial *in_pParentMaterial) |
| CSLXSIMaterial * |
ParentMaterial () |
| CSLXSIShaderCompound * |
CreateShaderCompound () |
| SI_Error |
DestroyShaderCompound () |
| CSLXSIShaderCompound * |
ConnectShaderCompound (CSLXSIShaderCompound *in_pToConnect) |
| CSLXSIShaderCompound * |
ShaderCompound () |
Detailed Description
This class represents an XSI_Shader template.
Describes a single Shader node (see the XSI_Shader template reference).
- See also:
- CSLVariantParameter
CSLShaderConnectionPoint
CSLShaderInstanceData
CSLXSIShaderMultiPortConnection
CSLXSITextureLayer
- Since:
- dotXSI 3.6
Member Enumeration Documentation
Output types.
- Enumerator:
-
| SI_OT_UNKNOWN |
Unknown output type |
| SI_OT_BOOLEAN |
Boolean shader output type |
| SI_OT_INTEGER |
Integer shader output type |
| SI_OT_SCALAR |
Scalar shader output type |
| SI_OT_COLOR |
Color shader output type |
| SI_OT_VECTOR |
Vector shader output type |
| SI_OT_TEXTURE_SPACE |
Texture space shader output type |
| SI_OT_TEXTURE |
Texture shader output type |
| SI_OT_STRING |
String shader output type |
| SI_OT_FILENAME |
Filename shader output type |
| SI_OT_LENS |
Lens shader output type |
| SI_OT_LIGHT |
Light shader output type |
| SI_OT_MATERIAL |
Material shader output type |
| SI_OT_MODEL |
Model shader output type |
| SI_OT_MULTI |
Multiple output port shader |
Constructor & Destructor Documentation
Constructor
- Parameters:
-
| [in] |
in_pScene |
Parent scene |
| [in] |
in_pParentModel |
Parent model |
| [in] |
in_pTemplate |
Refered template |
| [in] |
in_pParentMaterial |
Parent material |
Member Function Documentation
Commits the current template information
- Returns:
- Whether or not the commit was successful
Reimplemented from CSLTemplate.
Returns the type of this template
- Return values:
-
Implements CSLTemplate.
Adds a parameter to the parameter list
- Returns:
- Pointer to the newly added parameter
| SI_Error RemoveParameter |
( |
SI_Int |
in_nIndex |
) |
|
Removes a parameter from the parameter list
- Parameters:
-
| [in] |
in_nIndex |
Index of the parameter to remove |
- Returns:
- Whether or not the parameter could be removed
Removes a parameter from the parameter list
- Parameters:
-
| [in] |
in_pToRemove |
Pointer to the parameter to remove |
- Returns:
- Whether or not the parameter could be removed
Removes all parameters from the parameter list
- Returns:
- Whether or not the list could be cleared
Adds an exisiting parameter to the parameter list
- Parameters:
-
| [in] |
in_pToConnect |
Pointer to the parameter to add |
- Returns:
- The added parameter or null if it already exists in the list
Returns a pointer to the internally-stored parameter pointer list
- Returns:
- Pointer to the list
Finds a parameter by its name
- Parameters:
-
| [in] |
in_pName |
Name of parameter to find |
- Returns:
- the parameter
| SI_Int GetParameterCount |
( |
|
) |
|
Returns the total number of parameters
- Returns:
- Number of parameters
Searches for a parameter by name
- Parameters:
-
| [in] |
in_szName |
Name of the parameter to look for |
- Returns:
- Pointer to the found parameter or null if not found
Reimplemented from CSLTemplate.
Returns a proxy to the specified parameter.
- Parameters:
-
| [in] |
in_Type |
Type of parameter |
| [in] |
in_szParameterName |
Name of the parameter if the type is SI_PARAMETER |
- Returns:
- Pointer to a parameter proxy.
Reimplemented from CSLTemplate.
Adds a connection point to the connection point list
- Returns:
- 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] |
in_nIndex |
Index of the connection point to remove |
- Returns:
- Whether or not the connection point could be removed
Removes a connection point from the connection point list
- Parameters:
-
| [in] |
in_pToRemove |
Pointer to the connection point to remove |
- Returns:
- Whether or not the connection point could be removed
Removes all connections points from the connection point list
- Returns:
- Whether or not the list could be cleared
Adds an exisiting connection point to the connection point list
- Parameters:
-
| [in] |
in_pToConnect |
Pointer to the connection point to add |
- Returns:
- The added connection point or null if it already exists in the list
Returns a pointer to the internally-stored connection point pointer list
- Returns:
- Pointer to the list
| SI_Int GetConnectionPointCount |
( |
|
) |
|
Gets the total number of connection points
- Returns:
- Number of connection points
Retrieves a parameter from a model referenced by an instance data.
- Parameters:
-
| [in] |
in_szParamName |
Name of the parameter to fetch. |
| [in] |
in_pFromModel |
Pointer to the model to get the parameter from |
- Returns:
- Pointer to the found parameter or NULL if the model or the parameter does not exist.
Adds an instance data to the instance data list
- Returns:
- Pointer to the newly added instance data
| SI_Error RemoveInstanceData |
( |
SI_Int |
in_nIndex |
) |
|
Removes an instance data from the instance data list
- Parameters:
-
| [in] |
in_nIndex |
Index of the instance data to remove |
- Returns:
- Whether or not the instance data could be removed
Removes an instance data from the instance data list
- Parameters:
-
| [in] |
in_pToRemove |
Pointer to the instance data to remove |
- Returns:
- Whether or not the instance data could be removed
Removes all instance datas from the shader
- Returns:
- Whether or not the list could be cleared
Adds an exisiting instance data to the instance data list
- Parameters:
-
| [in] |
in_pToConnect |
Pointer to the instance data to add |
- Returns:
- The added instance data or null if it already exists in the list
Returns a pointer to the internally-stored instance data pointer list
- Returns:
- Pointer to the list
| SI_Int GetInstanceDataCount |
( |
|
) |
|
Returns the total number of instance datas
- Returns:
- Number of instance datas
Returns the ProgID
- Returns:
- Pointer to a string representing the ProgID
| SI_Void SetProgID |
( |
SI_Char * |
in_szProgID |
) |
|
Sets the ProgID
- Parameters:
-
| [in] |
in_szProgID |
Pointer to a string representing the ProgID |
Connects a subshader to this shader
- Parameters:
-
| [in] |
in_pSource |
pointer to the subshader to connect |
| [in] |
in_pConnection |
name of the connection |
Connects an image to this shader
- Parameters:
-
| [in] |
in_pSource |
Image to connect to this shader |
| [in] |
in_pConnection |
name of the connection |
Returns the OutputType
- Returns:
- The output type
Sets the OutputType
- Parameters:
-
| [in] |
in_OutputType |
New output type to use |
Adds a multi port connection to the multi port connection list
- Returns:
- The added multi port connection
| SI_Error RemoveMultiPortConnection |
( |
SI_Int |
in_nIndex |
) |
|
Removes a multi port connection from the multi port connection list
- Parameters:
-
| [in] |
in_nIndex |
Index of the multi port connection to remove |
Removes a multi port connection from the multi port connection list
- Parameters:
-
| [in] |
in_pToRemove |
The multi port connection to remove |
Returns the CSLXSIShaderMultiPortConnection object of a given multi port connection by index.
- Parameters:
-
| [in] |
in_nIndex |
Index of the multi port connection to get |
- Returns:
- The CSLXSIShaderMultiPortConnection that holds the name and the type of a multi port connection.
Returns the CSLXSIShaderMultiPortConnection object of a given multi port connection by parameter name.
- Parameters:
-
| [in] |
in_pParameter |
Name of the multi port connection parameter you're looking for |
- Returns:
- Pointer to the CSLXSIShaderMultiPortConnection found or NULL if not found
| SI_Int GetMultiPortConnectionCount |
( |
|
) |
|
Returns the number of multi port connection in the multi port connection list
- Returns:
- The number of multi port connection in the multi port connection list
Deletes all the multi port connection form the multi port connection list
Returns a pointer to the internally-stored multi port connection pointer list
- Returns:
- Pointer to the list
Adds an exisiting multi port connection to the multi port connection list
- Parameters:
-
| [in] |
in_pToConnect |
Pointer to the multi port connection to add |
- Returns:
- The added multi port connection
Searches the multi port connection list for one with a corresponding parameter name
- Parameters:
-
| [in] |
in_pName |
The parameter name to look for |
- Returns:
- Pointer on the multi port connection if found, NULL if not found
Adds a texture layer to the texture layer list
- Returns:
- The added texture layer
| SI_Error RemoveTextureLayer |
( |
SI_Int |
in_nIndex |
) |
|
Removes a texture layer from the texture layer list
- Parameters:
-
| [in] |
in_nIndex |
Index of the texture layer to remove |
Removes a texture layer from the texture layer list
- Parameters:
-
| [in] |
in_pToRemove |
The texture layer to remove |
Returns the CSLXSITextureLayer object by index.
- Parameters:
-
| [in] |
in_nIndex |
Index of the texture layer to get |
- Returns:
- The CSLXSITextureLayer.
Searches the texture layer list for one with a corresponding order index
- Parameters:
-
| [in] |
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 |
( |
|
) |
|
Returns the number of texture layer in the texture layer list
- Returns:
- The number of texture layer in the texture layer list
Deletes all the texture layer form the texture layer list
Returns a pointer to the internally-stored texture layer pointer list
- Returns:
- Pointer to the list
Adds an exisiting texture layer to the texture layer list
- Parameters:
-
| [in] |
in_pToConnect |
Pointer to the texture layer to add |
- Returns:
- The added texture layer
Sets the material parent of this template.
- Parameters:
-
| [in] |
in_pParentMaterial |
Pointer to the parent material. |
Returns the material parent of this template.
- Returns:
- Pointer to the parent material.
Adds a Shader Compound object to identify this shader as a compound and to store it's compound specific data.
- Returns:
- The new Shader Compound object or null if there's already one
Destroys the Shader Compound
- Returns:
- Whether or not the Shader Compound could be destroyed
Connects an exisiting Shader Compound
- Parameters:
-
| [in] |
in_pToConnect |
Pointer to the Shader Compound to use |
- Returns:
- The added Shader Compound or null if there's already one
Returns a pointer to the Shader Compound
- Returns:
- Pointer to the Shader Compound
The documentation for this class was generated from the following file: