Class IPatchSelectData

3DS Max Plug-In SDK

Class IPatchSelectData

See Also: Class IPatchSelect, Class Animatable, Class BitArray, Working with Patches, Class GenericNamedSelSetList.

class IPatchSelectData

Description:

This class is available in release 3.0 and later only.

When a developer gets the LocalModData from the ModContext of the Patch Select Modifier, they may cast it to this class and use these methods. They may be used to get/set the vertex/edge/patch sub-object 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_PATCHSELECTDATA.

For example:

IPatchSelectData *ips = (IPatchSelectData*)anim->GetInterface(I_PATCHSELECTDATA));

BitArray vs = ips->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 GetEdgeSel()=0;

Remarks:

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

Prototype:

virtual BitArray GetPatchSel()=0;

Remarks:

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

Prototype:

virtual void SetVertSel(BitArray &set, IPatchSelect *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.

IPatchSelect *imod

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

TimeValue t

The current time at which the call is made.

Prototype:

virtual void SetEdgeSel(BitArray &set, IPatchSelect *imod, TimeValue t)=0;

Remarks:

Sets the edge selection of the modifier.

Parameters:

BitArray &set

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

IPatchSelect *imod

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

TimeValue t

The current time at which the call is made.

Prototype:

virtual void SetPatchSel(BitArray &set, IPatchSelect *imod, TimeValue t)=0;

Remarks:

Sets the patch selection of the modifier.

Parameters:

BitArray &set

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

IPatchSelect *imod

Points to the IPatchSelect 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 &GetNamedEdgeSelList()=0;

Remarks:

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

Prototype:

virtual GenericNamedSelSetList &GetNamedPatchSelList()=0;

Remarks:

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