class RED::ViewpointStatistics

Frame statistics for a single viewpoint. More...

#include <REDFrameStatistics.h>

Inherits: Object.

Public functions:

ViewpointStatistics ( )
ViewpointStatistics ( const RED::ViewpointStatistics & iSrc )
~ViewpointStatistics ( )
virtual void *As ( const RED::CID & iCID )
virtual const void *As ( const RED::CID & iCID ) const
template< class T_As > const T_As *As ( ) const
template< class T_As > T_As *As ( )
unsigned intGetCausticPhotonsCount ( ) const
unsigned intGetImageHeight ( ) const
unsigned intGetImageWidth ( ) const
intGetPassesCount ( ) const
const RED::PassStatistics &GetPassStatistics ( int iNumPass ) const
floatGetSoftwareElapsedTime ( ) const
unsigned intGetSoftwareGICacheSamplesCount ( ) const
floatGetSoftwarePassProgress ( ) const
unsigned intGetSoftwareRaysCount ( ) const
floatGetSoftwareRemainingTime ( ) const
RED::RENDERING_PROGRESS_STEPGetSoftwareRenderStep ( ) const
intGetSoftwareRenderStepPass ( ) const
intGetSoftwareRenderStepPassesCount ( ) const
RED::Object *GetViewpoint ( ) const
RED::Object *GetVRL ( ) const
RED::Object *GetWindow ( ) const
RED_RCoperator= ( const RED::ViewpointStatistics & iSrc )

Public static functions:

static RED::CIDGetClassID ( )

Detailed description:

Frame statistics for a single viewpoint.

The rendering in REDsdk happens for each VRL and for each camera in each VRL (see Viewpoint render lists for details). This class contains informations resulting of the rendering of a single viewpoint in a VRL. An instance of this class is accessible for each processed viewpoint of each VRL from the RED::FrameStatistics container class. Instanced viewpoints each have their own statistics object returned.

Functions documentation

ViewpointStatistics default construction method.

ViewpointStatistics copy construction operator.

Parameters:

iSrc:Source of the copy.

ViewpointStatistics destruction method.

public virtual void * RED::ViewpointStatistics::As(const RED::CID &iCID)

Converts the object to an instance of the given type.

Parameters:

iCID:Requested class.

Returns:

An object pointer of the given class on success, NULL otherwise.

Reimplements: RED::Object::As.

public virtual const void * RED::ViewpointStatistics::As(const RED::CID &iCID) const

Converts the object to an instance of the given type.

Parameters:

iCID:Requested class.

Returns:

An object pointer of the given class on success, NULL otherwise.

Reimplements: RED::Object::As.

template< class T_As > public const T_As * RED::ViewpointStatistics::As() const

Template version of the as const method.

Simply set T to be the class you want to retrieve an interface to.

Returns:

A pointer to a const instance of class T on success, NULL otherwise.

Reimplements: RED::Object::As.

template< class T_As > public T_As * RED::ViewpointStatistics::As()

Template version of the as method.

Simply set T to be the class you want to retrieve an interface to.

Returns:

A pointer to an instance of class T on success, NULL otherwise.

Reimplements: RED::Object::As.

Returns the number of caustic photons.

This counter is set after the termination of the caustic photons pass. It contains the total number caustic photons which are stored in the caustic photons map and will be used to estimate reflective and refractive caustics during rendering.

Returns:

The number of irradiance samples in the cache.

Access to dimensions of the calculated image.

Dimensions returned are those of the viewport area covered by this viewpoint.

Returns:

The calculated image height in pixels for this viewpoint.

Access to dimensions of the calculated image.

Dimensions returned are those of the viewport area covered by this viewpoint.

Returns:

The calculated image width in pixels for this viewpoint.

Return the number of rendering passes.

Returns:

The number of passes.

Return the parameters for a rendering pass.

Returns:

The data record of a single rendering pass.

Gets the total elapsed time since the frame startup.

Returns:

The total elapsed time in milliseconds.

Returns the number of irradiance samples.

This counter is set after the termination of all global illumination passes, when the irradiance cache has been calculated. It contains the total number of irradiance samples we have at our disposal for the restitution of the global illumination solution.

Returns:

The number of irradiance samples in the cache.

Returns a value that indicates the percentage of the image that has been processed.

This may be slightly inaccurate when the adaptive anti-aliasing is enabled, because we can't predict the amount of calculation that will be really needed due to the adaptivity.

Returns:

The percentage of completion of the current pass in the current rendering step. The returned value is in [0.0,1.0].

Returns:

The number of rays that have been calculated for the frame.

Gets the estimated remaining time in the current pass.

Note that we can't estimate the remaining time on a pass that has not been started yet. The sum of the elapsed time plus the remaining time gives the total frame time if we have reached the last pass for the current image setup. The time is defined for the current pass in the current rendering step.

Returns:

The remaining time in milliseconds for the current pass.

Returns:

The current software rendering step.

Returns:

The number of the current rendering pass in the rendering step.

Returns:

The total number of rendering passes to proceed for the current rendering step.

Gets the rendered viewpoint.

This method returns the viewpoint object being rendered and for which this statistics object is being created.

Returns:

The viewpoint address.

Gets the rendered viewpoint render list.

Returns:

The address of the VRL for which this viewpoint is being rendered.

Gets the rendered window.

Returns:

The window address for which this viewpoint is being rendered.

Assignment operator.

Parameters:

iSrc:Source of the operation.

Returns:

RED_OK if the operation has succeeded,
RED_ALLOC_FAILURE if an internal allocation has failed.