BaseBitmapLink Class Reference

#include <c4d_basebitmap.h>

详细描述

An alias link to a bitmap . If the bitmap is deleted it will return nullptr .

注意
Has to be created with Alloc() and destroyed with Free() 。使用 AutoAlloc to automate the allocation and destruction based on scope.

私有成员函数

  BaseBitmapLink ()
  ~BaseBitmapLink ()

Alloc/Free

static BaseBitmapLink Alloc (void)
static void  Free ( BaseBitmapLink *&bll)

Get/Set Link

BaseBitmap Get () const
void  Set ( BaseBitmap *bmp)

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

◆  BaseBitmapLink()

BaseBitmapLink () private

◆  ~BaseBitmapLink()

~ BaseBitmapLink () private

成员函数文档编制

◆  Alloc()

static BaseBitmapLink * Alloc ( void  )
static

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

返回
The allocated bitmap link, or nullptr if the allocation failed.

◆  Free()

static void Free ( BaseBitmapLink *&  bll )
static

Destructs bitmap links allocated with Alloc() 。使用 AutoAlloc to automate the allocation and destruction based on scope.

参数
[in] bll The bitmap link to destruct. If the pointer is nullptr nothing happens. The pointer is assigned nullptr afterwards.

◆  Get()

BaseBitmap * Get ( ) const

Gets the linked bitmap.

返回
The linked bitmap, or nullptr if the bitmap was deleted.

◆  Set()

void Set ( BaseBitmap bmp )

Sets the link for the bitmap.

参数
[in] bmp The bitmap to be linked.