IAssignVertexColors Class Reference
 
 
 
IAssignVertexColors Class Reference

#include <istdplug.h>

Inheritance diagram for IAssignVertexColors:
FPStaticInterface FPInterfaceDesc FPInterface BaseInterface InterfaceServer MaxHeapOperators IAssignVertexColors_R7

Class Description

The IAssignVertexColors is a static interface to the Assign Vertex Color utility.

It can be obtained as follows:

Classes

class   Options
  The options used when calculating the vertex colors. More...

Public Types

typedef
LightingModel::LightingModel 
LightingModel

Public Member Functions

  DECLARE_DESCRIPTOR (IAssignVertexColors)
virtual int  ApplyNodes (Tab< INode * > *nodes, ReferenceTarget *iVertexPaint=NULL)=0
  Performs a lighting calculation.
virtual void  GetOptions (Options &options)=0
  The Get/SetOptions() methods control the parameters used for the lighting calculation, as shown in the UI of the utility.
virtual void  SetOptions (Options &options)=0
  The Get/SetOptions() methods control the parameters used for the lighting calculation, as shown in the UI of the utility.

Member Typedef Documentation


Member Function Documentation

virtual int ApplyNodes ( Tab< INode * > *  nodes,
ReferenceTarget iVertexPaint = NULL 
) [pure virtual]

Performs a lighting calculation.

The result is stored in the given VertexPaint modifier (if provided) or creates a new modifier instanced across the given nodes.

Parameters:
[in,out] nodes A pointer to an array of nodes pointers to apply the iVertexPaint interface to. This list of nodes will be filtered to include only nodes with geometry objects on return.
[in] iVertexPaint An instance of a ReferenceTarget derived class which supports the IVertexPaint interface. If this parameter is null, an instance of the standard Max Vertex Paint modifier will be created and assigned to the nodes.
Returns:
0 if the vertex paint interface could not be applied, else 1.
virtual void GetOptions ( Options options ) [pure virtual]

The Get/SetOptions() methods control the parameters used for the lighting calculation, as shown in the UI of the utility.

virtual void SetOptions ( Options options ) [pure virtual]

The Get/SetOptions() methods control the parameters used for the lighting calculation, as shown in the UI of the utility.