#include <c4d_tools.h>
Public Member Functions | |
Bool | AllocateBuffer (Int32 id, Int32 subid, Int32 bitdepth, Bool visible) |
Int32 | AllocateBufferFX (Int32 id, const maxon::String &name, Int32 bitdepth, Bool visible) |
VPBuffer * | GetBuffer (Int32 id, Int32 subid) const |
BaseContainer | GetRenderData () const |
BaseDraw * | GetBaseDraw () const |
void | SetRenderData (const BaseContainer &bc) |
VolumeData * | GetInitialVolumeData (Int32 cpu) const |
Bool | SetRenderProperty (Int32 id, const GeData &dat) |
void | IccConvert (void *data, Int32 xcnt, Int32 components, Bool inverse) |
Private Member Functions | |
Render () | |
~Render () | |
|
private |
|
private |
Allocates a videopost buffer.
[in] | id | The type of buffer: VPBUFFER |
[in] | subid | The sub-ID for the buffer type, such as the VPBUFFER_OBJECTBUFFER Group ID. (See Rendering in the Cinema 4D manual.) |
[in] | bitdepth | The bit depth: |
[in] | visible | true if the buffer shall be visible to the user in the Picture Viewer. |
Int32 AllocateBufferFX | ( | Int32 | id, |
const maxon::String & | name, | ||
Int32 | bitdepth, | ||
Bool | visible | ||
) |
Allocates a special effect buffer of type id.
For example, PyroCluster does the following:
[in] | id | The type of effect buffer: VPBUFFER_POSTEFFECT or VPBUFFER_POSTEFFECT_MUL. |
[in] | name | The buffer name. |
[in] | bitdepth | The buffer bit depth. |
[in] | visible | true if the buffer shall be visible to the user in the Picture Viewer. |
Gets a videopost buffer.
[in] | id | The type of buffer: VPBUFFER |
[in] | subid | The sub-ID for the buffer. Some buffers share the same ID (Object buffers for instance. Sub-IDs are used to discern between buffers then). |
BaseContainer GetRenderData | ( | ) | const |
Gets the render data. This is a container with the same values as used in the RenderData class.
BaseDraw* GetBaseDraw | ( | ) | const |
Gets the BaseDraw associated with this rendering.
void SetRenderData | ( | const BaseContainer & | bc | ) |
Sets the render data.
[in] | bc | The render settings. |
VolumeData* GetInitialVolumeData | ( | Int32 | cpu | ) | const |
Retrieves a VolumeData structure for every CPU processor. Needed when multiprocessing in a videopost plugin.
[in] | cpu | The CPU index. |
Sets render properties.
[in] | id | The property to set: RENDERPROPERTY |
[in] | dat | The render property value. |
Converts a number of pixels from render color space to output color space or the other way around.
[out] | data | The pixel buffer. The caller owns the pointed buffer. |
[in] | xcnt | The number of pixels. |
[in] | components | The number of pixel components (3 for RGB, 4 for RGBA, etc.) |
[in] | inverse | true for conversion from render to output color space, or false to convert from output to render color space. |