Developer Documentation
|
Object Payload. More...
#include <OpenFlipper/common/perObjectData.hh>
Public Member Functions | |
PerObjectData () | |
You have to provide your own constructor for your object. | |
virtual PerObjectData * | copyPerObjectData () |
Copy Function. More... | |
Object Payload.
This class is used to add arbitrary data to objects in OpenFlipper. You can derive any kind of class from PerObjectData and attach it to an object. See BaseObject::setObjectData() for more details.
Definition at line 86 of file perObjectData.hh.
|
virtual |
Copy Function.
You have to reimplement this function to allow the core to create a copies of your Object. By default it will return 0;
The function has to create a deep copy of the object, as it will also be used to create backups. If you use pointer inside your class, remember to not copy the pointer only but also the data!
Reimplemented in TextureData, SkeletonObjectData, DecimaterInfo, and SmootherObject.
Definition at line 70 of file perObjectData.cc.