Class ISplineOps

3DS Max Plug-In SDK

Class ISplineOps

See Also: Class ISplineSelect, Class Animatable, Working with Shapes and Splines.

class ISplineOps

Description:

This class is available in release 3.0 and later only.

This class provides an interface to the command modes and button press operations of the Editable Spline object. To obtain a pointer to this class use the method Animatable::GetInterface() passing I_SPLINEOPS.

For example:

ISplineOps *iso = (ISplineOps*)anim->GetInterface(I_SPLINEOPS));

iso->StartCommandMode(ScmAttach);

Methods:

public:

Prototype:

virtual void StartCommandMode(splineCommandMode mode)=0;

Remarks:

Begins the specified interactive command mode.

Parameters:

splineCommandMode mode

The mode to begin. One of the following values:

ScmCreateLine

ScmAttach

ScmInsert

ScmConnect

ScmRefine

ScmFillet

ScmChamfer

ScmBind

ScmRefineConnect

ScmOutline

ScmTrim

ScmExtend

ScmBreak

ScmUnion

ScmCrossInsert

Prototype:

virtual void ButtonOp(splineButtonOp opcode)=0;

Remarks:

Performs the same operation as a button press inside the Editable Spline UI.

Parameters:

splineButtonOp opcode

The button operation to execute. One of the following values:

SopHide

SopUnhideAll

SopDelete

SopDetach

SopDivide

SopBreak

SopCycle

SopUnbind

SopWeld

SopMakeFirst

SopAttachMultiple

SopExplode

SopReverse

SopClose

SopUnion

SopSubstract

SopIntersect

SopMirrorHoriz

SopMirrorVert

SopMirrorBoth

SopSelectByID

SopFuse

Prototype:

virtual void GetUIParam(splineUIParam uiCode, int &ret);

Remarks:

This method is available in release 4.0 and later only.

This method allows you to get the edit spline parameters from the command panel. Currently not in use.

Parameters:

splineUIParam uiCode

This enum is currently empty.

int &ret

The returned value.

Default Implementation:

{ }

Prototype:

virtual void SetUIParam(splineUIParam uiCode, int val);

Remarks:

This method is available in release 4.0 and later only.

This method allows you to set the edit spline parameters from the command panel. Currently not in use.

Parameters:

splineUIParam uiCode

This enum is currently empty.

int val

The value to set.

Default Implementation:

{ }

Prototype:

virtual void GetUIParam(splineUIParam uiCode, float &ret);

Remarks:

This method is available in release 4.0 and later only.

This method allows you to get the edit spline parameters from the command panel. Currently not in use.

Parameters:

splineUIParam uiCode

This enum is currently empty.

float &ret

The returned value.

Default Implementation:

{ }

Prototype:

virtual void SetUIParam(splineUIParam uiCode, float val);

Remarks:

This method is available in release 4.0 and later only.

This method allows you to set the edit spline parameters from the command panel. Currently not in use.

Parameters:

splineUIParam uiCode

This enum is currently empty.

float val

The value to set.

Default Implementation:

{ }