3ds Max C++ API Reference
ILimitControl Class Referenceabstract

Base Limit Controller Interface. More...

#include <ILimitCtrl.h>

+ Inheritance diagram for ILimitControl:

Public Types

enum  {
  is_enabled , set_enabled , get_limited_control , set_limited_control ,
  set_upper_limit , set_lower_limit
}
 
- Public Types inherited from BaseInterface
enum  LifetimeType { noRelease , immediateRelease , wantsRelease , serverControlled }
 

Public Member Functions

 FN_0 (is_enabled, TYPE_bool, IsEnabled)
 
 VFN_1 (set_enabled, SetEnabled, TYPE_bool)
 
 FN_0 (get_limited_control, TYPE_CONTROL, GetLimitedControl)
 
 VFN_1 (set_limited_control, SetLimitedControl, TYPE_CONTROL)
 
FPInterfaceDescGetDesc ()
 
virtual void SetUpperLimit (const TimeValue &in_t, void *in_val)=0
 Set the upper limit of the controller at a given time. More...
 
virtual void SetLowerLimit (const TimeValue &in_t, void *in_val)=0
 Set the lower limit of the controller at a given time. More...
 
Accessors for the Enable state of the limit controller


virtual bool IsEnabled () const =0
 
virtual void SetEnabled (bool in_enabled)=0
 
Accessors for the limited controller of the limit controller


virtual ControlGetLimitedControl () const =0
 
virtual void SetLimitedControl (Control *in_limitedCtrl)=0
 
- Public Member Functions inherited from FPMixinInterface
 FPMixinInterface ()
 
virtual LifetimeType LifetimeControl ()
 
virtual CoreExport bool RegisterNotifyCallback (InterfaceNotifyCallback *incb)
 
virtual void UnRegisterNotifyCallback (InterfaceNotifyCallback *incb)
 
CoreExport ~FPMixinInterface ()
 
virtual BaseInterfaceGetInterface (Interface_ID id)
 
virtual FPInterfaceDescGetDescByID (Interface_ID id)
 
virtual Interface_ID GetID ()
 
- Public Member Functions inherited from FPInterface
virtual CoreExport FPStatus Invoke (FunctionID fid, TimeValue t=0, FPParams *params=NULL)
 
virtual FPStatus Invoke (FunctionID fid, FPParams *params)
 
virtual CoreExport FPStatus Invoke (FunctionID fid, TimeValue t, FPValue &result, FPParams *params=NULL)
 
virtual FPStatus Invoke (FunctionID fid, FPValue &result, FPParams *params=NULL)
 
virtual CoreExport FunctionID FindFn (const MCHAR *name)
 
virtual CoreExport BOOL IsEnabled (FunctionID actionID)
 
virtual CoreExport BOOL IsChecked (FunctionID actionID)
 
virtual CoreExport BOOL IsVisible (FunctionID actionID)
 
virtual CoreExport FunctionID GetIsEnabled (FunctionID actionID)
 
virtual CoreExport FunctionID GetIsChecked (FunctionID actionID)
 
virtual CoreExport FunctionID GetIsVisible (FunctionID actionID)
 
virtual ActionTableGetActionTable ()
 
virtual void EnableActions (BOOL onOff)
 
- Public Member Functions inherited from BaseInterface
virtual UtilExport ~BaseInterface ()
 Destructor. More...
 
virtual BaseInterfaceAcquireInterface ()
 
virtual void ReleaseInterface ()
 
virtual void DeleteInterface ()
 
virtual BaseInterfaceCloneInterface (void *remapDir=NULL)
 
- Public Member Functions inherited from InterfaceServer
virtual UtilExport ~InterfaceServer ()
 Destructor. More...
 
template<class InterfaceType >
InterfaceType * GetTypedInterface ()
 

Static Public Member Functions

static ILimitControlGetBaseLimitInterface (Animatable *anim)
 If the Animatable supports the ILimitControl interface, returns a pointer to it. More...
 
- Static Public Member Functions inherited from MaxHeapOperators
static UtilExport voidoperator new (size_t size)
 Standard new operator used to allocate objects If there is insufficient memory, an exception will be thrown. More...
 
static UtilExport voidoperator new (size_t size, const std::nothrow_t &e)
 Standard new operator used to allocate objects if there is insufficient memory, NULL will be returned. More...
 
static UtilExport voidoperator new (size_t size, const char *filename, int line)
 New operator used to allocate objects that takes the filename and line number where the new was called If there is insufficient memory, an exception will be thrown. More...
 
static UtilExport voidoperator new (size_t size, int block_type, const char *filename, int line)
 New operator used to allocate objects that takes the type of memory, filename and line number where the new was called If there is insufficient memory, an exception will be thrown. More...
 
static UtilExport voidoperator new (size_t size, const std::nothrow_t &e, const char *filename, int line)
 New operator used to allocate objects that takes the filename and line number where the new was called If there is insufficient memory, NULL will be returned. More...
 
static UtilExport voidoperator new (size_t size, unsigned long flags)
 New operator used to allocate objects that takes extra flags to specify special operations If there is insufficient memory, an exception will be thrown. More...
 
static UtilExport voidoperator new (size_t size, const std::nothrow_t &e, unsigned long flags)
 New operator used to allocate objects that takes extra flags to specify special operations If there is insufficient memory, NULL will be returned. More...
 
static UtilExport voidoperator new[] (size_t size)
 New operator used to allocate arrays of objects If there is insufficient memory, an exception will be thrown. More...
 
static UtilExport voidoperator new[] (size_t size, const std::nothrow_t &e)
 New operator used to allocate arrays of objects If there is insufficient memory, NULL will be returned. More...
 
static UtilExport voidoperator new[] (size_t size, const char *filename, int line)
 New operator used to allocate arrays of objects If there is insufficient memory, an exception will be thrown. More...
 
static UtilExport voidoperator new[] (size_t size, int block_type, const char *filename, int line)
 New operator used to allocate arrays of objects. More...
 
static UtilExport voidoperator new[] (size_t size, const std::nothrow_t &e, const char *filename, int line)
 New operator used to allocate arrays of objects If there is insufficient memory, NULL will be returned. More...
 
static UtilExport voidoperator new[] (size_t size, unsigned long flags)
 New operator used to allocate arrays of objects If there is insufficient memory, an exception will be thrown. More...
 
static UtilExport voidoperator new[] (size_t size, const std::nothrow_t &e, unsigned long flags)
 New operator used to allocate arrays of objects If there is insufficient memory, NULL will be returned. More...
 
static UtilExport void operator delete (void *ptr)
 Standard delete operator used to deallocate an object If the pointer is invalid, an exception will be thrown. More...
 
static UtilExport void operator delete (void *ptr, const std::nothrow_t &e)
 Standard delete operator used to deallocate an object If the pointer is invalid, nothing will happen. More...
 
static UtilExport void operator delete (void *ptr, const char *filename, int line)
 Delete operator used to deallocate an object that takes the filename and line number where the delete was called If the pointer is invalid, an exception will be thrown. More...
 
static UtilExport void operator delete (void *ptr, int block_type, const char *filename, int line)
 Delete operator used to deallocate an object that takes the type of memory, filename and line number where the delete was called If the pointer is invalid, an exception will be thrown. More...
 
static UtilExport void operator delete (void *ptr, const std::nothrow_t &e, const char *filename, int line)
 Delete operator used to deallocate an object that takes the filename and line number where the delete was called If the pointer is invalid, nothing will happen. More...
 
static UtilExport void operator delete (void *ptr, unsigned long flags)
 Delete operator used to deallocate an object that takes extra flags to specify special operations If the pointer is invalid, an exception will be thrown. More...
 
static UtilExport void operator delete (void *ptr, const std::nothrow_t &e, unsigned long flags)
 Delete operator used to deallocate an object that takes extra flags to specify special operations If the pointer is invalid, nothing will happen. More...
 
static UtilExport void operator delete[] (void *ptr)
 Standard delete operator used to deallocate an array of objects If the pointer is invalid, an exception will be thrown. More...
 
static UtilExport void operator delete[] (void *ptr, const std::nothrow_t &e)
 Standard delete operator used to deallocate an array of objects If the pointer is invalid, nothing will happen. More...
 
static UtilExport void operator delete[] (void *ptr, const char *filename, int line)
 Delete operator used to deallocate an array of objects that takes the filename and line number where the delete was called If the pointer is invalid, an exception will be thrown. More...
 
static UtilExport void operator delete[] (void *ptr, int block_type, const char *filename, int line)
 Delete operator used to deallocate an array of objects that takes the type of memory, filename and line number where the delete was called If the pointer is invalid, an exception will be thrown. More...
 
static UtilExport void operator delete[] (void *ptr, const std::nothrow_t &e, const char *filename, int line)
 Delete operator used to deallocate an array of objects that takes the filename and line number where the delete was called If the pointer is invalid, nothing will happen. More...
 
static UtilExport void operator delete[] (void *ptr, unsigned long flags)
 Delete operator used to deallocate an array of objects that takes extra flags to specify special operations If the pointer is invalid, an exception will be thrown. More...
 
static UtilExport void operator delete[] (void *ptr, const std::nothrow_t &e, unsigned long flags)
 Delete operator used to deallocate an array of objects that takes extra flags to specify special operations If the pointer is invalid, an exception will be thrown. More...
 
static UtilExport voidoperator new (size_t size, void *placement_ptr)
 Placement new operator. More...
 
static UtilExport void operator delete (void *ptr, void *placement_ptr)
 Placement delete operator. More...
 
static UtilExport voidaligned_malloc (size_t size, size_t alignment)
 Allocates memory on a specified alignment boundary. More...
 
static UtilExport voidaligned_realloc (void *ptr, size_t size, size_t alignment)
 Reallocates memory on a specified alignment boundary. More...
 
static UtilExport void aligned_free (void *ptr)
 Frees a block of memory that was allocated with aligned_malloc/aligned_realloc. More...
 

Additional Inherited Members

- Static Public Attributes inherited from FPInterface
static CoreExport FPInterfaceDesc nullInterface
 
- Protected Member Functions inherited from FPMixinInterface
 FPMixinInterface (const FPMixinInterface &rhs)
 
FPMixinInterfaceoperator= (const FPMixinInterface &rhs)
 
- Protected Member Functions inherited from FPInterface
virtual FPStatus _dispatch_fn (FunctionID fid, TimeValue t, FPValue &result, FPParams *p)
 
- Protected Attributes inherited from FPMixinInterface
Tab< InterfaceNotifyCallback * > * interfaceNotifyCBs
 

Detailed Description

Base Limit Controller Interface.

ILimitControl provides access to the limit controller methods.
A limit controller is used to restrict the range of values produced by other controllers.

The controller whose range of value is being restricted is called the limited controller. Its presence is optional.

This interface can be used to gain access to the limit controller's enable state and limited controller, and to set the upper or lower limits of
the controller.

Limit controllers can be disabled, in which case they just let the limited controller pass through.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
is_enabled 
set_enabled 
get_limited_control 
set_limited_control 
set_upper_limit 
set_lower_limit 
50  {
51  is_enabled,
57  };
@ set_lower_limit
Definition: ILimitCtrl.h:56
@ set_upper_limit
Definition: ILimitCtrl.h:55
@ is_enabled
Definition: ILimitCtrl.h:51
@ set_enabled
Definition: ILimitCtrl.h:52
@ get_limited_control
Definition: ILimitCtrl.h:53
@ set_limited_control
Definition: ILimitCtrl.h:54

Member Function Documentation

◆ FN_0() [1/2]

FN_0 ( is_enabled  ,
TYPE_bool  ,
IsEnabled   
)

◆ VFN_1() [1/2]

VFN_1 ( set_enabled  ,
SetEnabled  ,
TYPE_bool   
)

◆ FN_0() [2/2]

◆ VFN_1() [2/2]

◆ GetDesc()

FPInterfaceDesc* GetDesc ( )
virtual
Remarks
Returns a pointer to the class which contains the interface metadata.

Implements FPInterface.

◆ IsEnabled()

virtual bool IsEnabled ( ) const
pure virtual

◆ SetEnabled()

virtual void SetEnabled ( bool  in_enabled)
pure virtual

◆ GetLimitedControl()

virtual Control* GetLimitedControl ( ) const
pure virtual

◆ SetLimitedControl()

virtual void SetLimitedControl ( Control in_limitedCtrl)
pure virtual

◆ SetUpperLimit()

virtual void SetUpperLimit ( const TimeValue in_t,
void in_val 
)
pure virtual

Set the upper limit of the controller at a given time.

Parameters
[in]in_t- time for which the upper limit is to be set
[in]in_val- pointer to a variable of type according to the limit controller type

◆ SetLowerLimit()

virtual void SetLowerLimit ( const TimeValue in_t,
void in_val 
)
pure virtual

Set the lower limit of the controller at a given time.

Parameters
[in]in_t- time for which the lower limit is to be set
[in]in_val- pointer to a variable of type according to the limit controller type

◆ GetBaseLimitInterface()

static ILimitControl* GetBaseLimitInterface ( Animatable anim)
inlinestatic

If the Animatable supports the ILimitControl interface, returns a pointer to it.

Parameters
[in]anim- Animatable to be tested for support of the ILimitControl interface
Returns
- a pointer to an ILimitControl interface, or NULL.
95  {
96  return anim? static_cast<ILimitControl*>(anim->GetInterface(IID_LIMIT_CONTROL)): NULL;}
#define IID_LIMIT_CONTROL
Definition: ILimitCtrl.h:24
#define NULL
Definition: autoptr.h:18
virtual CoreExport void * GetInterface(ULONG id)
Base Limit Controller Interface.
Definition: ILimitCtrl.h:46