#include <c4d_baseselect.h>
私有成员函数 |
|
EdgeBaseSelect () | |
~EdgeBaseSelect () |
Alloc/Free |
|
static EdgeBaseSelect * | Alloc () |
static void | Free ( EdgeBaseSelect *&bs) |
Bool | FromArrayCompact (const UChar *selection, Int32 count) |
UChar * | ToArrayCompact ( Int32 count) const |
Additional Inherited Members |
|
![]() |
|
Int32 | GetCount (void) const |
Int32 | GetSegments (void) const |
Bool | 选择 ( Int32 num) |
Bool | SelectAll ( Int32 min, Int32 max, Bool deselectAll=true) |
Bool | Deselect ( Int32 num) |
Bool | DeselectAll (void) |
Bool | Toggle ( Int32 num) |
Bool | ToggleAll ( Int32 min, Int32 max) |
Bool | GetRange ( Int32 seg, Int32 maxElements, Int32 *a, Int32 *b) const |
Bool | IsSelected ( Int32 num) const |
Bool | CopyTo ( BaseSelect *dest) const |
BaseSelect * | GetClone (void) const |
Bool | Merge (const BaseSelect *src) |
Bool | Deselect (const BaseSelect *src) |
Bool | Cross (const BaseSelect *src) |
Bool | FromArray ( UChar *selection, Int32 count) |
UChar * | ToArray ( Int32 count) const |
Bool | ToBitSet ( Int32 count, maxon::BaseBitSet < maxon::DefaultAllocator > &bitSet) const |
Bool | 读取 ( HyperFile *hf) |
void | Write ( HyperFile *hf) |
Bool | FindSegment ( Int32 num, Int32 *segment) const |
Int32 | GetDirty () const |
Int32 | GetLastElement (void) const |
Bool | IsAllSelected ( Int32 num) const |
Bool | IsNothingSelected () const |
BaseSelectData * | GetData () |
Bool | CopyFrom ( BaseSelectData *ndata, Int32 ncnt) |
![]() |
|
static BaseSelect * | Alloc (void) |
static void | Free ( BaseSelect *&bs) |
|
|
|
static |
Allocates a edge base selection. Destroy the allocated edge base selection with Free() 。使用 AutoAlloc to automate the allocation and destruction based on scope.
|
static |
Destructs edge base selections allocated with Alloc() 。使用 AutoAlloc to automate the allocation and destruction based on scope.
[in,out] | bs | The edge base selection to destruct. If the pointer is nullptr nothing happens. The pointer is assigned nullptr afterwards. |
Bool FromArrayCompact | ( | const UChar * | selection , |
Int32 | count | ||
) |
Gets a number of selected elements from an array. There is one byte per polygon in the array. The bits 0 to 3 of each byte define which edge of the polygon is selected.
[in] | selection | An array of elements to select. The caller owns the pointed array. |
[in] | count | The number of elements in the array. This is usually the polygon count. |
UChar * ToArrayCompact | ( | Int32 | count | ) | const |
Gets an array of selected elements. There is one byte per polygon in the array. The bits 0 to 3 of each byte define which edge of the polygon is selected.
[in] | count | The number of elements to place into the array. This is usually the polygon count. |