Developer Documentation

Public Member Functions | List of all members
PerObjectData Class Reference

Object Payload. More...

`#include <OpenFlipper/common/perObjectData.hh>`

Inheritance diagram for PerObjectData:

## Public Member Functions
| PerObjectData ()
| You have to provide your own constructor for your object.
virtual PerObjectData * | copyPerObjectData ()
| Copy Function. More...

## Detailed Description

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.

## Member Function Documentation

## ◆ copyPerObjectData()

PerObjectData * PerObjectData::copyPerObjectData | ( |  | ) |
| 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 61 of file perObjectData.cc.

The documentation for this class was generated from the following files:

- OpenFlipper/common/perObjectData.hh
- OpenFlipper/common/perObjectData.cc