Public Types | Public Member Functions

ToneOperatorInterface Class Reference

Search for all occurrences

Detailed Description

See also:
Class FPStaticInteface, Class ToneOperator

Description:
This class is available in release 4.0 and later only.

This class allows plug-ins and the scripter to get access to the tone operator assigned to a scene. You can get a pointer to the interface using the global interface pointer in this manner:

ToneOperatorInterace* toneOpInt = static_cast<ToneOperatorInterface*>( GetCOREInterface(TONE_OPERATOR_INTERFACE));

If the return value is NULL, the running version of 3ds Max doesn't support tone operators. If the return value is not NULL, you can use these methods to perform some scene management.

#include <toneop.h>

Inheritance diagram for ToneOperatorInterface:
Inheritance graph
[legend]

List of all members.

Public Types

typedef void(*  ToneChangeCallback )(ToneOperator *newOp, ToneOperator *oldOp, void *param)

Public Member Functions

virtual ToneOperator GetToneOperator () const =0
virtual void  SetToneOperator (ToneOperator *op)=0
virtual void  RegisterToneOperatorChangeNotification (ToneChangeCallback callback, void *param)=0
virtual void  UnRegisterToneOperatorChangeNotification (ToneChangeCallback callback, void *param)=0

Member Typedef Documentation

typedef void(* ToneChangeCallback)(ToneOperator *newOp, ToneOperator *oldOp, void *param)

Member Function Documentation

virtual ToneOperator* GetToneOperator ( ) const [pure virtual]
Remarks:
This method returns the current tone operator assigned to a scene. If no tone operator is assigned NULL is returned.
virtual void SetToneOperator ( ToneOperator op ) [pure virtual]
Remarks:
This method assigns a tone operator to the scene. To remove a tone operator, assign NULL. When a new tone operator is assigned the current operator is removed automatically.
virtual void RegisterToneOperatorChangeNotification ( ToneChangeCallback  callback,
void *  param 
) [pure virtual]
Remarks:
This method registers a callback that is called when the tone operator is changed. Note the definition of ToneChangeCallback:

typedef void (*ToneChangeCallback)(ToneOperator* newOp, ToneOperator* oldOp, void* param);
Parameters:
ToneChangeCallback callback

The callback to register.

void* param

This parameter is passed to the callback function as the parameter argument when it is called.
virtual void UnRegisterToneOperatorChangeNotification ( ToneChangeCallback  callback,
void *  param 
) [pure virtual]
Remarks:
This method un-registers a callback that was registered by RegisterToneOperatorChangeNotification. Note the definition of ToneChangeCallback:

typedef void (*ToneChangeCallback)(ToneOperator* newOp, ToneOperator* oldOp, void* param);
Parameters:
ToneChangeCallback callback

The callback to un-register.

void* param

This parameter is passed to the callback function as the parameter argument when it is called.

ToneOperatorInterface ToneOperatorInterface ToneOperatorInterface ToneOperatorInterface ToneOperatorInterface ToneOperatorInterface ToneOperatorInterface ToneOperatorInterface ToneOperatorInterface ToneOperatorInterface
ToneOperatorInterface ToneOperatorInterface ToneOperatorInterface ToneOperatorInterface ToneOperatorInterface ToneOperatorInterface ToneOperatorInterface ToneOperatorInterface ToneOperatorInterface ToneOperatorInterface