Version: 8.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
GLViewer_MimeData Class Reference

#include <GLViewer_MimeData.h>

Inheritance diagram for GLViewer_MimeData:
Inheritance graph

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_ObjectgetObject (QByteArray, QString theType)
 Get object from byte array. More...
 

Private Attributes

QByteArray myByteArray
 

Detailed Description

Needs for a work with QClipboard

Constructor & Destructor Documentation

GLViewer_MimeData::GLViewer_MimeData ( )
inline
GLViewer_MimeData::~GLViewer_MimeData ( )

Destructor

Member Function Documentation

QByteArray GLViewer_MimeData::encodedData ( const char *  theObjectType) const
Returns
internal byte array

References myByteArray.

const char * GLViewer_MimeData::format ( int  theIndex = 0) const
Returns
format by index
Parameters
theIndex- index
GLViewer_Object * GLViewer_MimeData::getObject ( QByteArray  theArray,
QString  theType 
)
static

Creates object by it's representation (byte array)

Parameters
theArray- byte array
theType- type of object

References GLViewer_MarkerSet::initializeFromByteCopy(), GLViewer_Polyline::initializeFromByteCopy(), and GLViewer_TextObject::initializeFromByteCopy().

QList< GLViewer_Object * > GLViewer_MimeData::getObjects ( QByteArray  theArray,
QString  theType 
)
static

Creates list of objects by its representation (byte array)

Parameters
theArray- byte array
theType- type of object

References getObject().

bool GLViewer_MimeData::setObjects ( QList< GLViewer_Object * >  theObjects)

Translate objects to byte array

Parameters
theObjects- list of objects

References myByteArray.

Member Data Documentation

QByteArray GLViewer_MimeData::myByteArray
private

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