CSLImage Class Reference
This class represents an XSI_Image template.
More...#include <XSIImage.h>
Inheritance diagram for CSLImage:
List of all members.
Detailed Description
This class represents an XSI_Image template.
Base class to describe an image for dotXSI 5.0+ (see the XSI_Image template reference).
- Since:
- dotXSI 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] |
in_pScene |
Parent scene |
| [in] |
in_pModel |
Parent model |
| [in] |
in_pTemplate |
Refered template |
Member Function Documentation
Commits Semantic Layer data
- Returns:
- Whether or not commit was a success
Reimplemented from CSLTemplate.
Returns the type of this template
- Return values:
-
Implements CSLTemplate.
Returns a proxy to the specified parameter.
- Parameters:
-
| [in] |
in_szName |
Name of the parameter |
- Returns:
- Pointer to a parameter proxy.
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.
| SI_Char* GetSourceFile |
( |
|
) |
|
Returns the filename of the image
- Returns:
- Filename
| SI_Void SetSourceFile |
( |
SI_Char * |
in_szFilename |
) |
|
Sets the filename of the image
- Parameters:
-
| [in] |
in_szFilename |
Filename |
Returns the horizontal resolution of the image
- Returns:
- 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:
-
Returns the vertical resolution of the image
- Returns:
- Size
| SI_Void SetHeight |
( |
SI_Int |
in_nSize |
) |
|
Sets the vertical resolution of the image
- Parameters:
-
Returns the number of channels for a pixel
- Returns:
- Number of channels
Sets the number of channels for a pixel
- Parameters:
-
| [in] |
in_Channel |
Number of channels |
Returns the color depth of the image
- Returns:
- Color depth
Sets the color depth of the image
- Parameters:
-
| [in] |
in_Depth |
Color depth |
Returns the minimum horizontal crop value
- Returns:
- Crop value
| SI_Void SetCropMinX |
( |
SI_Float |
in_fCrop |
) |
|
Sets the minimum horizontal crop value
- Parameters:
-
Returns the maximum horizontal crop value
- Returns:
- Crop value
| SI_Void SetCropMaxX |
( |
SI_Float |
in_fCrop |
) |
|
Sets the maximum horizontal crop value
- Parameters:
-
Returns the minimum vertical crop value
- Returns:
- Crop value
| SI_Void SetCropMinY |
( |
SI_Float |
in_fCrop |
) |
|
Sets the minimum vertical crop value
- Parameters:
-
Returns the maximum vertical crop value
- Returns:
- Crop value
| SI_Void SetCropMaxY |
( |
SI_Float |
in_fCrop |
) |
|
Sets the maximum vertical crop value
- Parameters:
-
| SI_Float GetFrameRate |
( |
|
) |
|
Returns the frame rate
- Returns:
- 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] |
in_nRate |
Actual frame rate |
- Note:
- A frame rate of 0 refers to the scene frame rate
Returns the first frame
- Returns:
- Frame number
| SI_Void SetFirstFrame |
( |
SI_Int |
in_nFrame |
) |
|
Sets the first frame
- Parameters:
-
| [in] |
in_nFrame |
Frame number |
Returns the last frame
- Returns:
- Frame number
| SI_Void SetLastFrame |
( |
SI_Int |
in_nFrame |
) |
|
Sets the last frame
- Parameters:
-
| [in] |
in_nFrame |
Frame number |
Allocates and connect a new image data
- Returns:
- Newly allocated image data. Null if there was already one.
Destroys the Image Data
- Returns:
- Whether or not the image data could be destroyed
Connects the 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.
- Parameters:
-
| [in] |
in_pImageData |
New image data to use |
Returns the 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.
- Returns:
- Image data
Creates a new Image FX
- Returns:
- The new ImageFX or null if there's already one
Destroys the Image FX
- Returns:
- Whether or not the ImageFX could be destroyed
Connects an exisiting Image FX
- Parameters:
-
| [in] |
in_pToConnect |
Pointer to the ImageFX to use |
- Returns:
- The added ImageFX or null if there's already one
Returns a pointer to the Image FX
- Returns:
- 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:
- Whether or not the ImageFX2 could be destroyed
Connects an exisiting Image FX 2
- Parameters:
-
| [in] |
in_pToConnect |
Pointer to the ImageFX2 to use |
- Returns:
- The added ImageFX2 or null if there's already one
Returns a pointer to the Image FX 2
- Returns:
- Pointer to the Image FX 2
The documentation for this class was generated from the following file: