Public Member Functions

INodeShadingProperties Class Reference

Search for all occurrences

Detailed Description

A node based interface to support new Viewport Rendering features.

The new interface for 3ds max 10 provides access to the new viewport rendering features. This includes the ability for any number of lights to illuminate the scene. A light can now cast shadows in the viewport and provide illumination which are properties stored at the node level. The IViewportShadingMgr interacts with this interface to give the user some control over these light node properties. These properties only have an effect if Viewport Shading is turned on. The developer can access this interface directly from the node.

INodeShadingProperties * shadeProp = static_cast<INodeShadingProperties*>(node->GetInterface(NODESHADINGPROPERTIES_INTERFACE));

#include <INodeShadingProperties.h>

Inheritance diagram for INodeShadingProperties:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual bool  GetViewportShadowCasting ()=0
  Retrieves the shadow casting flag.
virtual void  SetViewportShadowCasting (bool bSet)=0
  Set the shading casting flag.
virtual bool  GetViewportIlluminate ()=0
  Retrieves the illumination flag.
virtual void  SetViewportIlluminate (bool bSet)=0
  Set the illuminate flag.
virtual bool  GetLockedViewportIllumination ()=0
  Retrieves the locked state of the light.
virtual void  SetLockedViewportIllumination (bool bSet)=0
  Sets the locked flag for the light node.

Member Function Documentation

virtual bool GetViewportShadowCasting ( ) [pure virtual]

Retrieves the shadow casting flag.

Returns:
TRUE if it is shadow casting, FALSE if this is turned off
virtual void SetViewportShadowCasting ( bool  bSet ) [pure virtual]

Set the shading casting flag.

Parameters:
bSet Pass TRUE to turn on shadow casting, FALSE to turn it off.
virtual bool GetViewportIlluminate ( ) [pure virtual]

Retrieves the illumination flag.

Returns:
TRUE if it is turned on for illumination, FALSE if this is turned off
virtual void SetViewportIlluminate ( bool  bSet ) [pure virtual]

Set the illuminate flag.

Parameters:
bSet Pass TRUE to turn on illumination, FALSE to turn it off.
virtual bool GetLockedViewportIllumination ( ) [pure virtual]

Retrieves the locked state of the light.

A locked light means that it is not affected by changes of other properties. For example if the user locks the sun light, it will not be affected by a group "turn of shadows".

Returns:
The locked lighting flag
virtual void SetLockedViewportIllumination ( bool  bSet ) [pure virtual]

Sets the locked flag for the light node.

A locked light means that it is not affected by changes of other properties. For example if the user locks the sun light, it will not be affected by a group "turn of shadows".

Parameters:
bSet TRUE to turn it on, FALSE to turn it off

INodeShadingProperties INodeShadingProperties INodeShadingProperties INodeShadingProperties INodeShadingProperties INodeShadingProperties INodeShadingProperties INodeShadingProperties INodeShadingProperties INodeShadingProperties
INodeShadingProperties INodeShadingProperties INodeShadingProperties INodeShadingProperties INodeShadingProperties INodeShadingProperties INodeShadingProperties INodeShadingProperties INodeShadingProperties INodeShadingProperties