Class ShapeVSel

3DS Max Plug-In SDK

Class ShapeVSel

See Also: Class BitArray, Class PolyShape.

class ShapeVSel

Description:

This class stores and provides access to shape vertex selection data. All methods of this class are implemented by the system.

Data Members:

public:

int polys;

The number of splines in the shape.

BitArray *sel;

An array of BitArrays, one for each spline.

Methods:

Prototype:

ShapeVSel();

Remarks:

Constructor. The number of splines is set to 0. The BitArray pointer is set to NULL.

Prototype:

void Insert(int where, int count=0);

Remarks:

Creates and inserts a new BitArray into sel.

Parameters:

int where

The index into sel indicating where to insert the new BitArray.

int count=0

The number of bits in the new BitArray.

Prototype:

void Delete(int where);

Remarks:

Deletes the specified BitArray from the sel list.

Parameters:

int where

The index into sel indicating which BitArray to delete.

Prototype:

void SetSize(BezierShape& shape, BOOL save=FALSE);

Remarks:

Sets the number of splines and allocates the corresponding number of BitArrays based on the shape passed. The size of each BitArray is set to the number of vertices in each polyline.

Parameters:

BezierShape& shape

The shape whose splines determine the sizes set.

BOOL save=FALSE

TRUE to keep the previous BitArray contents. FALSE to discard it.

 

Prototype:

void SetSize(PolyShape& shape, BOOL save=FALSE);

Remarks:

Sets the number of splines and allocates the corresponding number of BitArrays based on the shape passed. The size of each BitArray is set to the number of vertices in each spline.

Parameters:

PolyShape& shape

The shape whose lines determine the sizes set.

BOOL save=FALSE

TRUE to keep the previous BitArray contents. FALSE to discard it.

Prototype:

void ClearAll();

Remarks:

Clears every bit for every poly.

Prototype:

void Empty();

Remarks:

Sets the size of every poly BitArray to 0.

Prototype:

IOResult Save(ISave* isave);

Remarks:

Saves the ShapeVSel to disk.

Prototype:

IOResult Load(ILoad* iload);

Remarks:

Loads the ShapeVSel from disk.

Operators:

Prototype:

ShapeVSel& operator=(ShapeVSel& from);

Remarks:

Assignment operator.