#include <GLViewer_MimeData.h>

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