EdgeBaseSelect Class Reference

#include <c4d_baseselect.h>

Inheritance diagram for EdgeBaseSelect:

私有成员函数

  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

-  Public Member Functions inherited from BaseSelect
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 Public Member Functions inherited from BaseSelect
static BaseSelect Alloc (void)
static void  Free ( BaseSelect *&bs)

构造函数 & 析构函数文档编制

◆  EdgeBaseSelect()

EdgeBaseSelect () private

◆  ~EdgeBaseSelect()

~ EdgeBaseSelect () private

成员函数文档编制

◆  Alloc()

static EdgeBaseSelect * Alloc ( )
static

Allocates a edge base selection. Destroy the allocated edge base selection with Free() 。使用 AutoAlloc to automate the allocation and destruction based on scope.

返回
The allocated edge base selection, or nullptr if the allocation failed.

◆  Free()

static void Free ( EdgeBaseSelect *&  bs )
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.

◆  FromArrayCompact()

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.

警告
The old selection will completely be overridden.
参数
[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.
返回
true if the elements from the array were selected successfully, otherwise false .

◆  ToArrayCompact()

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.

警告
The array is created with NewMemClear() and must be freed with DeleteMem() afterward.
参数
[in] count The number of elements to place into the array. This is usually the polygon count.
返回
The array containing the selected elements or nullptr if failed. The caller owns the pointed array.