Classes | Public Types | Public Member Functions

IAssignVertexColors Class Reference

Search for all occurrences

Detailed Description

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

It can be obtained as follows:

 IAssignVertexColors* avc = (IAssignVertexColors*)GetCOREInterface(IASSIGNVERTEXCOLORS_INTERFACE_ID);

#include <istdplug.h>

Inheritance diagram for IAssignVertexColors:
Inheritance graph
[legend]

List of all members.

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

DECLARE_DESCRIPTOR ( IAssignVertexColors  )
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.


IAssignVertexColors IAssignVertexColors IAssignVertexColors IAssignVertexColors IAssignVertexColors IAssignVertexColors IAssignVertexColors IAssignVertexColors IAssignVertexColors IAssignVertexColors
IAssignVertexColors IAssignVertexColors IAssignVertexColors IAssignVertexColors IAssignVertexColors IAssignVertexColors IAssignVertexColors IAssignVertexColors IAssignVertexColors IAssignVertexColors