// Author : OPEN CASCADE
//
-/***************************************************************************
-** Class: GLViewer_MimeSource
-** Descr: Needs for a work with QClipboard
-** Module: GLViewer
-** Created: UI team, 22.03.04
-****************************************************************************/
-
//#include <GLViewerAfx.h>
#include "GLViewer_MimeSource.h"
#include "GLViewer_BaseObjects.h"
//#include <cmath>
//using namespace std;
+/*!
+ Destructor
+*/
GLViewer_MimeSource::~GLViewer_MimeSource()
{
}
+/*!
+ Translate objects to byte array
+ \param theObjects - list of objects
+*/
bool GLViewer_MimeSource::setObjects( QValueList<GLViewer_Object*> theObjects )
{
if( !theObjects.empty() )
return false;
}
-//!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!NOTE!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
-//If you want to use new class, following two method must be redefined
-//!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!NOTE!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+
+/*!
+ Creates object by it's representation (byte array)
+ \param theArray - byte array
+ \param theType - type of object
+*/
GLViewer_Object* GLViewer_MimeSource::getObject( QByteArray theArray, QString theType )
{
if( !theArray.isEmpty() )
return NULL;
}
+/*!
+ Creates list of objects by its representation (byte array)
+ \param theArray - byte array
+ \param theType - type of object
+*/
QValueList<GLViewer_Object*> GLViewer_MimeSource::getObjects( QByteArray theArray, QString theType )
{
if( !theArray.isEmpty() )
return QValueList<GLViewer_Object*>();
}
+/*!
+ \return format by index
+ \param theIndex - index
+*/
const char* GLViewer_MimeSource::format( int theIndex ) const
{
switch( theIndex )
}
+/*!
+ \return internal byte array
+*/
QByteArray GLViewer_MimeSource::encodedData( const char* theObjectType ) const
{
if( theObjectType == "GLViewer_Objects" )