Safety Class Reference

#include <c4d_baseobject.h>

详细描述

Class to enable safe modification of objects under low memory conditions such that any failure can restore the object to its original form.

注意
Only backups tags (which includes points, polygons etc.).

公共成员函数

  Safety ()
  ~Safety ()
Bool   Init ( BaseObject *op)
void  Detach (void)

Private Attributes

ObjectSafety *  os

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

◆  Safety()

Safety ( )

Default constructor.

◆  ~Safety()

~ Safety ( )

Default destructor.

成员函数文档编制

◆  Init()

Bool Init ( BaseObject op )

Initializes the object ready for modification.

参数
[in] op The object that is about to be changed. The caller owns the pointed object.
返回
true if the class was initialized successfully and is ready for the object changes, otherwise false 。若 false then the operation should be terminated.

◆  Detach()

void Detach ( void  )

Releases the object from the class when modification is complete.

注意
If not called the class will restore the original state when it is destructed.
To keep the changes call Detach() before stack deconstruction of private member os .

Member Data Documentation

◆  os

ObjectSafety* os private