#include <GLViewer_MimeData.h>

Public Member Functions | |
| GLViewer_MimeData () | |
| ~GLViewer_MimeData () | |
| bool | setObjects (QList< GLViewer_Object * >) |
| Translate objects to byte array. | |
| const char * | format (int theIndex=0) const |
| QByteArray | encodedData (const char *) const |
Static Public Member Functions | |
| static QList< GLViewer_Object * > | getObjects (QByteArray, QString theType) |
| Gets objects from byte array. | |
| static GLViewer_Object * | getObject (QByteArray, QString theType) |
| Get object from byte array. | |
Private Attributes | |
| QByteArray | myByteArray |
Needs for a work with QClipboard
| GLViewer_MimeData.GLViewer_MimeData | ( | ) |
| GLViewer_MimeData::~GLViewer_MimeData | ( | ) |
Destructor
| bool GLViewer_MimeData::setObjects | ( | QList< GLViewer_Object * > | theObjects | ) |
| QList< GLViewer_Object * > GLViewer_MimeData::getObjects | ( | QByteArray | theArray, |
| QString | theType | ||
| ) | [static] |
Creates list of objects by its representation (byte array)
| theArray | - byte array |
| theType | - type of object |
References getObject().
| GLViewer_Object * GLViewer_MimeData::getObject | ( | QByteArray | theArray, |
| QString | theType | ||
| ) | [static] |
Creates object by it's representation (byte array)
| theArray | - byte array |
| theType | - type of object |
References GLViewer_TextObject.initializeFromByteCopy(), GLViewer_Polyline.initializeFromByteCopy(), and GLViewer_MarkerSet.initializeFromByteCopy().
| const char * GLViewer_MimeData::format | ( | int | theIndex = 0 | ) | const |
| theIndex | - index |
| QByteArray GLViewer_MimeData::encodedData | ( | const char * | theObjectType | ) | const |
References myByteArray.
QByteArray GLViewer_MimeData.myByteArray [private] |