Class IPatchSelect
See Also: Class Animatable, Working with Patches.
class IPatchSelect
Description:
This class is available in release 3.0 and later only.
This class provides an interface to the Patch Select Modifer. To obtain a pointer to this class use the method Animatable::GetInterface() passing I_PATCHSELECT.
For example:
IPatchSelect *ips = (IPatchSelect*)anim->GetInterface(I_PATCHSELECT));
DWORD sl = ips->GetSelLevel();
Methods:
public:
Prototype:
virtual DWORD GetSelLevel()=0;
Remarks:
Returns a value indicating the current selection level of the modifier. One of the following values:
PO_VERTEX
PO_EDGE
PO_PATCH
PO_OBJECT
Prototype:
virtual void SetSelLevel(DWORD level)=0;
Remarks:
Sets the current level of selection of the modifier.
Parameters:
DWORD level
The level to set. One of the following values:
PO_VERTEX
PO_EDGE
PO_PATCH
PO_OBJECT
Prototype:
virtual void LocalDataChanged()=0;
Remarks:
This method must be called when the selection level of the modifier is changed. Developers can use the methods of this class to get and set the actual selection data. When a developers does set any of these selection sets this method must be called when done.