Public Types | Public Member Functions

MaxBakeElement8 Class Reference

Search for all occurrences

Detailed Description

Extention to MaxBakeElement in 3ds Max 8.

Extends MaxBakeElement, allowing Texture Bake Elements to provide parameters of integer, float, and color types in addition to booleans. The RTT dialog is updated to display spinners and color swatches accordingly

#include <renderelements.h>

Inheritance diagram for MaxBakeElement8:
Inheritance graph
[legend]

List of all members.

Public Types

enum   { IID = 0x1f2203c5 }
 

MaxBakeElement8 interface ID.

More...

Public Member Functions

virtual int  GetParamType (int nParam)=0
  Allows for getting the bake element parameter types.
virtual FPValue  GetParamFPValue (int nParam)=0
  Allows for getting the bake element parameters as seen in the RTT dialog.
virtual void  SetParamFPValue (int nParam, FPValue newVal)=0
  Allows for settings the bake element parameters as seen in the RTT dialog.
virtual FPValue  GetParamFPValueMin (int nParam)=0
  Allows the bake element to specify a minimum value for int and float parameters.
virtual FPValue  GetParamFPValueMax (int nParam)=0
  Allows the bake element to specify a maximum value for int and float parameters.
virtual void *  GetInterface (ULONG id)
  Renderer calls this method to see if IRenderElement is compatible with it.

Member Enumeration Documentation

anonymous enum

MaxBakeElement8 interface ID.

Enumerator:
IID 
{ IID = 0x1f2203c5 };

Member Function Documentation

virtual int GetParamType ( int  nParam ) [pure virtual]

Allows for getting the bake element parameter types.

Parameters:
[in] nParam Parameter index, 0-based
Returns:
Parameter type, 1 for TYPE_BOOL, 2 for TYPE_INT, 3 for TYPE_FLOAT, 4 for TYPE_FRGBA_BV, or 0 (TYPE_VOID) on error

Implements MaxBakeElement.

virtual FPValue GetParamFPValue ( int  nParam ) [pure virtual]

Allows for getting the bake element parameters as seen in the RTT dialog.

Parameters:
[in] nParam Parameter index, 0-based
Returns:
Parameter value of TYPE_BOOL, TYPE_INT, TYPE_FLOAT, TYPE_FRGBA_BV, or TYPE_VOID on error
virtual void SetParamFPValue ( int  nParam,
FPValue  newVal 
) [pure virtual]

Allows for settings the bake element parameters as seen in the RTT dialog.

Parameters:
[in] nParam Parameter index, 0-based
[in] newVal Parameter value of TYPE_BOOL, TYPE_INT, TYPE_FLOAT, TYPE_FRGBA_BV
virtual FPValue GetParamFPValueMin ( int  nParam ) [pure virtual]

Allows the bake element to specify a minimum value for int and float parameters.

Parameters:
[in] nParam The parameter index, 0-based
Returns:
Minimum parameter value, of TYPE_INT or TYPE_FLOAT
virtual FPValue GetParamFPValueMax ( int  nParam ) [pure virtual]

Allows the bake element to specify a maximum value for int and float parameters.

Parameters:
[in] nParam The parameter index, 0-based
Returns:
Maximum parameter value, of TYPE_INT or TYPE_FLOAT
virtual void* GetInterface ( ULONG  id ) [inline, virtual]

Renderer calls this method to see if IRenderElement is compatible with it.

Reimplemented from MaxBakeElement.

Reimplemented in MaxBakeElement10.

{ return (id == IID) ? this : MaxBakeElement::GetInterface(id);}

MaxBakeElement8 MaxBakeElement8 MaxBakeElement8 MaxBakeElement8 MaxBakeElement8 MaxBakeElement8 MaxBakeElement8 MaxBakeElement8 MaxBakeElement8 MaxBakeElement8
MaxBakeElement8 MaxBakeElement8 MaxBakeElement8 MaxBakeElement8 MaxBakeElement8 MaxBakeElement8 MaxBakeElement8 MaxBakeElement8 MaxBakeElement8 MaxBakeElement8