AtOutputIterator methods.
More...
|
| struct | AtOutputIterator |
| | This represents an iterator that is used to iterate over group of ouputs in Arnold. More...
|
| |
AtOutputIterator methods.
Arnold AtOutputIterator structure is used to iterate over a group of output and provide information regarding each output.
◆ AiOutputIteratorGetNext()
| AI_API bool AiOutputIteratorGetNext |
( |
AtOutputIterator * |
iter, |
|
|
AtString * |
output_name, |
|
|
int * |
pixel_type, |
|
|
const void ** |
bucket_data |
|
) |
| |
Get information about the next output connected to a driver.
This method is meant to be called in a loop, though drivers that are designed to only accept a single output may call it just once. Each parameter is optional, and will only be written to when not NULL. The bucket_data parameter can only be obtained when writing a bucket. If this method returns false, the return values should not be used.
- Parameters
-
| iter | pointer to the iterator |
| [out] | output_name | the name of the AOV corresponding to this output |
| [out] | pixel_type | the type of the pixel data (AI_TYPE_INT, AI_TYPE_RGB, etc) |
| [out] | bucket_data | pointer to the start of the bucket data, pixel values will be stored in row major order |
- Returns
- true if a valid output was present, false if the end of the output list was reached
◆ AiOutputIteratorReset()
Reset an output iterator.
This method resets an output iterator so that the user may iterate over the outputs again.
- Parameters
-
| iter | pointer to the iterator |
◆ AiOutputIteratorGetFilter()
Get the filter associated with the current output.
- Parameters
-
| iter | pointer to the iterator |
- Returns
- pointer to filter associated with current output, nullptr if none associated
◆ AiOutputIteratorIsHalf()
Is the current output is half format.
- Parameters
-
| iter | pointer to the iterator |
- Returns
- true if the output is of half format
◆ AiOutputIteratorGetLayerName()
Get the name of the targer layer of the current output.
- Parameters
-
| iter | pointer to the iterator |
- Returns
- name of the target layer the output will be associated with, empty string if no association
◆ AiOutputIteratorGetCamera()
Get the camera associated with the current output.
- Parameters
-
| iter | pointer to the iterator |
- Returns
- pointer to camera associated with current output, nullptr if none associated