3ds Max C++ API Reference
Loading...
Searching...
No Matches
IFFDMod< T > Class Template Referenceabstract

#include <istdplug.h>

+ Inheritance diagram for IFFDMod< T >:

Public Member Functions

virtual int NumPts ()=0
 
virtual int NumPtConts ()=0
 
virtual ControlGetPtCont (int i)=0
 
virtual void SetPtCont (int i, Control *c)=0
 
virtual Point3 GetPt (int i)=0
 
virtual void SetPt (int i, Point3 p)=0
 
virtual void SetGridDim (IPoint3 d)
 
virtual IPoint3 GetGridDim ()
 
virtual void AnimateAll ()
 
virtual void Conform ()
 
virtual void SelectPt (int i, BOOL sel, BOOL clearAll=FALSE)
 
virtual void PlugControllers (TimeValue t, BOOL all)=0
 

Detailed Description

template<class T>
class IFFDMod< T >
See also
Class Control, Class Point3, Class IPoint3, Class Modifier.

\
Description:
This class is an interface into both FFD OS modifiers and also into helper objects for FFD spacewarps.

Given a pointer to ReferenceTarget ref, you can use it as follows:
Class_ID id = ref->ClassID();
// call various methods
}
// call various methods
}
Definition: maxtypes.h:67
Definition: istdplug.h:3621
#define FFDNMWSSQUARE_CLASS_ID
maxsdk\samples\modifiers\morpher\wM3.h
Definition: plugapi.h:937
#define FFDNMOSCYL_CLASS_ID
maxsdk\samples\modifiers\morpher\wM3.h
Definition: plugapi.h:940
#define FFD44_CLASS_ID
maxsdk\samples\modifiers\morpher\wM3.h
Definition: plugapi.h:944
#define FFDNMOSSQUARE_CLASS_ID
maxsdk\samples\modifiers\morpher\wM3.h
Definition: plugapi.h:936
#define FFD22_CLASS_ID
maxsdk\samples\modifiers\morpher\wM3.h
Definition: plugapi.h:946
#define FFDNMWSCYL_CLASS_ID
maxsdk\samples\modifiers\morpher\wM3.h
Definition: plugapi.h:941
#define FFD33_CLASS_ID
maxsdk\samples\modifiers\morpher\wM3.h
Definition: plugapi.h:945

Member Function Documentation

◆ NumPts()

virtual int NumPts ( )
pure virtual
Remarks
Returns the number of lattice control points.

◆ NumPtConts()

virtual int NumPtConts ( )
pure virtual
Remarks
Returns the number of Control Ponits having controllers.

◆ GetPtCont()

virtual Control * GetPtCont ( int  i)
pure virtual
Remarks
Returns a pointer to the 'i-th' Control Point controller.
Parameters:
int i

The zero based index of the Control Point.

◆ SetPtCont()

virtual void SetPtCont ( int  i,
Control c 
)
pure virtual
Remarks
Sets the controller used by the specified Control Point.
Parameters:
int i

The zero based index of the Control Point.

Control *c

Points to the controller to set.

◆ GetPt()

virtual Point3 GetPt ( int  i)
pure virtual
Remarks
Returns the 'i-th' Control Point.
Parameters:
int i

The zero based index of the Control Point.

◆ SetPt()

virtual void SetPt ( int  i,
Point3  p 
)
pure virtual
Remarks
Sets the 'i-th' control point.
Parameters:
int i

The zero based index of the Control Point.

Point3 p

The point to set.

◆ SetGridDim()

virtual void SetGridDim ( IPoint3  d)
inlinevirtual
Remarks
Sets the lattice dimension.
Parameters:
IPoint3 d

The dimensions to set.
Default Implementation:
{ }
3658{ } // set the lattice dimensions

◆ GetGridDim()

virtual IPoint3 GetGridDim ( )
inlinevirtual
Remarks
Returns the lattice dimensions.
Default Implementation:
{ return IPoint3(0,0,0); }
3662{ return IPoint3(0,0,0); } // get the lattice dimensions
Definition: ipoint3.h:29

◆ AnimateAll()

virtual void AnimateAll ( )
inlinevirtual
Remarks
This method assigns controllers to all the Control Points.
Default Implementation:
{ }
3667{ } // assign controllers to all CP's

◆ Conform()

virtual void Conform ( )
inlinevirtual
Remarks
Calling this method is the equivalent of pressing the Conform button in the FFD UI. Note: This method is not valid for WSMObject's.
Default Implementation:
{ }
3673{ } // not valid for WSMObject's

◆ SelectPt()

virtual void SelectPt ( int  i,
BOOL  sel,
BOOL  clearAll = FALSE 
)
inlinevirtual
Remarks
Selects or de-selects the specified Control Point.
Parameters:
int i

The zero based index of the Control Point.

BOOL sel

TRUE to select; FALSE to de-selelct.

BOOL clearAll=FALSE

TRUE to clear all the currently selected Control Points before setting the specified one; FALSE to leave the selected points alone.
Default Implementation:
{ }
3685{ }

◆ PlugControllers()

virtual void PlugControllers ( TimeValue  t,
BOOL  all 
)
pure virtual