Developer Documentation
|
Object Payload. More...
#include <OpenFlipper/common/perObjectData.hh>
Public Member Functions | |
PerObjectData () | |
You have to provide your own constructor for your object. More... | |
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 73 of file perObjectData.hh.
PerObjectData::PerObjectData | ( | ) |
You have to provide your own constructor for your object.
Definition at line 53 of file perObjectData.cc.
|
virtual |
Definition at line 67 of file perObjectData.cc.
|
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 DecimaterInfo, SmootherObject, TextureData, and SkeletonObjectData.
Definition at line 60 of file perObjectData.cc.