Developer Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
PerObjectData Class Reference

Object Payload. More...

#include <OpenFlipper/common/perObjectData.hh>

Inheritance diagram for PerObjectData:
BackupData BaseSkin DecimaterInfo HoleInfo< MeshT > PolyLineBezierSplineData PolyLineCircleData SkeletonObjectData SmootherObject TextureData

Public Member Functions

 PerObjectData ()
 You have to provide your own constructor for your object.
 
virtual PerObjectDatacopyPerObjectData ()
 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 86 of file perObjectData.hh.

Member Function Documentation

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 70 of file perObjectData.cc.


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