CSLImage Class Reference
#include <XSIImage.h>
Inheritance diagram for CSLImage:
List of all members.
Detailed Description
Base class to describe an image for dotXSI 5.0+ (see the XSI_Image template reference).
- Note:
- This template was introduced in dotXSI Version 3.6
Member Enumeration Documentation
Defines the number of channels of an image.
- Enumerator:
-
| SI_RGB |
red, green and blue channels> |
| SI_RGBA |
red, green, blue and alpha channels> |
Defines the supported color depths for images.
- Enumerator:
-
| SI_24BITS |
24 bits> |
| SI_32BITS |
32 bits> |
Constructor & Destructor Documentation
Constructor
- Parameters:
-
|
|
in_pScene |
Parent scene |
|
|
in_pModel |
Parent model |
|
|
in_pTemplate |
Refered template |
Member Function Documentation
Commits Semantic Layer data
- Returns:
- SI_Error Whether or not commit was a success
Reimplemented from CSLTemplate.
Gets the type of this template
- Returns:
- ETemplateType The type of this template: XSI_IMAGE
Implements CSLTemplate.
Return a proxy to the specified parameter.
- Parameters:
-
|
|
in_szName |
Name of the parameter |
- Returns:
- CSLAnimatableType* Pointer to a parameter proxy.
Reimplemented from CSLTemplate.
Return a proxy to the specified parameter.
- Parameters:
-
|
|
in_Type |
Type of parameter |
|
|
in_szParameterName |
Name of the parameter if the type is SI_PARAMETER |
- Returns:
- CSLAnimatableType* Pointer to a parameter proxy.
Reimplemented from CSLTemplate.
| SI_Char* GetSourceFile |
( |
|
) |
|
Gets the filename of the image
- Returns:
- SI_Char Filename
| SI_Void SetSourceFile |
( |
SI_Char * |
in_szFilename |
) |
|
Sets the filename of the image in_szFilename Filename
Gets the horizontal resolution of the image
- Returns:
- SI_Int Size
- Note:
- A source file name and the internally stored CSLImageData class are mutually exclusive. Setting the source file therefore deletes the image data on your behalf.
| SI_Void SetWidth |
( |
SI_Int |
in_nSize |
) |
|
Sets the horizontal resolution of the image
- Parameters:
-
Gets the vertical resolution of the image
- Returns:
- SI_Int Size
| SI_Void SetHeight |
( |
SI_Int |
in_nSize |
) |
|
Sets the vertical resolution of the image
- Parameters:
-
Gets the number of channels for a pixel
- Returns:
- EChannels Number of channels
Sets the number of channels for a pixel
- Parameters:
-
|
|
in_Channel |
Number of channels |
Gets the color depth of the image
- Returns:
- EColorDepth Color depth
Sets the color depth of the image
- Parameters:
-
Gets the minimum horizontal crop value
- Returns:
- SI_Int Crop value
| SI_Void SetCropMinX |
( |
SI_Float |
in_fCrop |
) |
|
Sets the minimum horizontal crop value
- Parameters:
-
Gets the maximum horizontal crop value
- Returns:
- SI_Float Crop value
| SI_Void SetCropMaxX |
( |
SI_Float |
in_fCrop |
) |
|
Sets the maximum horizontal crop value
- Parameters:
-
Gets the minimum vertical crop value
- Returns:
- SI_Float Crop value
| SI_Void SetCropMinY |
( |
SI_Float |
in_fCrop |
) |
|
Sets the minimum vertical crop value
- Parameters:
-
Gets the maximum vertical crop value
- Returns:
- SI_Float Crop value
| SI_Void SetCropMaxY |
( |
SI_Float |
in_fCrop |
) |
|
Sets the maximum vertical crop value
- Parameters:
-
| SI_Float GetFrameRate |
( |
|
) |
|
Gets the frame rate
- Returns:
- SI_Float Actual frame rate
- Note:
- A frame rate of 0 refers to the scene frame rate
| SI_Void SetFrameRate |
( |
SI_Float |
in_nRate = 0.0 |
) |
|
Sets the frame rate
- Parameters:
-
|
|
in_nRate |
Actual frame rate |
- Note:
- A frame rate of 0 refers to the scene frame rate
Gets the first frame
- Returns:
- SI_Int Frame number
| SI_Void SetFirstFrame |
( |
SI_Int |
in_nFrame |
) |
|
Sets the first frame
- Parameters:
-
Gets the last frame
- Returns:
- SI_Int Frame number
| SI_Void SetLastFrame |
( |
SI_Int |
in_nFrame |
) |
|
Sets the last frame
- Parameters:
-
Allocates and connect a new image data
- Returns:
- CSLImageData Newly allocated image data. Null if there was already one.
Destroys the Image Data
- Returns:
- SI_Error Whether or not the image data could be destroyed
Connects the image data
- Parameters:
-
|
|
in_pImageData |
New image data to use |
- Note:
- A source file name and the internally stored CSLImageData class are mutually exclusive. Setting an image data therefore clears the source file name.
Gets the image data
- Returns:
- CSLImageData Image data
- Note:
- A source file name and the internally stored CSLImageData class are mutually exclusive. Setting an image data therefore clears the source file name.
Creates a new Image FX
- Returns:
- The new ImageFX or null if there's already one
Destroys the Image FX
- Returns:
- SI_Error Whether or not the ImageFX could be destroyed
Connects an exisiting Image FX
- Parameters:
-
|
|
in_pToConnect |
Pointer to the ImageFX to use |
- Returns:
- The added ImageFX or null if there's already one
Gets a pointer to the Image FX
- Returns:
- CSLImageFX Pointer to the Image FX
Creates a new Image FX 2
- Returns:
- The new ImageFX2 or null if there's already one
Destroys the Image FX 2
- Returns:
- SI_Error Whether or not the ImageFX2 could be destroyed
Connects an exisiting Image FX 2
- Parameters:
-
|
|
in_pToConnect |
Pointer to the ImageFX2 to use |
- Returns:
- The added ImageFX2 or null if there's already one
Gets a pointer to the Image FX 2
- Returns:
- CSLImageFX2 Pointer to the Image FX 2
The documentation for this class was generated from the following file: