Public Member Functions

imrTranslation Class Reference

Search for all occurrences

Detailed Description

Access interface for the mental ray translator.

This interface is the access point for the mental ray translator. Any functionality that needs to be exposed to various mental ray API classes is exposed through this.

#include <imrTranslation.h>

Inheritance diagram for imrTranslation:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual void  CalculateSceneBoundingBox (TimeValue t, INode *nodeForSpace, Box3 &sceneBox, Interval &valid)=0
  Calculates and returns the bounding box of every object to be rendered, in the object space of a given node.

Member Function Documentation

virtual void CalculateSceneBoundingBox ( TimeValue  t,
INode nodeForSpace,
Box3 sceneBox,
Interval valid 
) [pure virtual]

Calculates and returns the bounding box of every object to be rendered, in the object space of a given node.

Implements a caching mechanism to avoid re-calculating the same bounding box multiple times during the same render operation. The calculated bounding box only includes objects to be rendered.

Parameters:
[in] t - The time at which the bounding box is to be calculated.
[in] nodeForSpace - The bounding box is calculated in the object space of this node. Pass NULL in order to calculate the bounding box in world space.
[out] sceneBox - Return value for the calculated bounding box.
inout] valid - Modified validity interval; intersected with the validity interval of the scene.

imrTranslation imrTranslation imrTranslation imrTranslation imrTranslation imrTranslation imrTranslation imrTranslation imrTranslation imrTranslation
imrTranslation imrTranslation imrTranslation imrTranslation imrTranslation imrTranslation imrTranslation imrTranslation imrTranslation imrTranslation