Class ISplineSelectData

3DS Max Plug-In SDK

Class ISplineSelectData

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

class ISplineSelectData

Description:

This class is available in release 3.0 and later only.

When a developer gets the LocalModData from the ModContext of the Spline Select Modifier, they may cast it to this class and use these methods. They may be used to get/set the vertex/segment/spline selection state of the modifier as well as the named selection sets.

To obtain a pointer to this class use the method Animatable::GetInterface() passing I_SPLINESELECTDATA.

For example:

ISplineSelectData *iss = (ISplineSelectData*)anim->GetInterface(I_SPLINESELECTDATA));

BitArray vs = iss->GetVertSel();

Methods:

public:

Prototype:

virtual BitArray GetVertSel()=0;

Remarks:

Returns a BitArray that reflects the current vertex selection. There is one bit for each vertex. Bits that are 1 indicate the vertex is selected.

Prototype:

virtual BitArray GetSegmentSel()=0;

Remarks:

Returns a BitArray that reflects the current segment selection. There is one bit for each segment. Bits that are 1 indicate the segment is selected.

Prototype:

virtual BitArray GetSplineSel()=0;

Remarks:

Returns a BitArray that reflects the current spline selection. There is one bit for each spline. Bits that are 1 indicate the spline is selected.

Prototype:

virtual void SetVertSel(BitArray &set, ISplineSelect *imod, TimeValue t)=0;

Remarks:

Sets the vertex selection of the modifier.

Parameters:

BitArray &set

There is one bit for each vertex. Bits that are 1 indicate the vertex should be selected.

ISplineSelect *imod

Points to the ISplineSelect instance (generally this is a modifier).

TimeValue t

The current time at which the call is made.

Prototype:

virtual void SetSegmentSel(BitArray &set, ISplineSelect *imod, TimeValue t)=0;

Remarks:

Sets the segment selection of the modifier.

Parameters:

BitArray &set

There is one bit for each vertex. Bits that are 1 indicate the segment should be selected.

ISplineSelect *imod

Points to the ISplineSelect instance (generally this is a modifier).

TimeValue t

The current time at which the call is made.

Prototype:

virtual void SetSplineSel(BitArray &set, ISplineSelect *imod, TimeValue t)=0;

Remarks:

Sets the spline selection of the modifier.

Parameters:

BitArray &set

There is one bit for each spline. Bits that are 1 indicate the spline should be selected.

ISplineSelect *imod

Points to the ISplineSelect instance (generally this is a modifier).

TimeValue t

The current time at which the call is made.

Prototype:

virtual GenericNamedSelSetList &GetNamedVertSelList()=0;

Remarks:

Returns a reference to a class used for manipulating the lists of vertex level named selection sets associated with this modifier.

Prototype:

virtual GenericNamedSelSetList &GetNamedSegmentSelList()=0;

Remarks:

Returns a reference to a class used for manipulating the lists of segment level named selection sets associated with this modifier.

Prototype:

virtual GenericNamedSelSetList &GetNamedSplineSelList()=0;

Remarks:

Returns a reference to a class used for manipulating the lists of spline level named selection sets associated with this modifier.