COPASI API  4.16.103
Macros | Functions
CQGLLayoutPainter.cpp File Reference
#include "copasi/model/CModel.h"
#include "copasi/CopasiDataModel/CCopasiDataModel.h"
#include "CQFontRenderer.h"
#include "copasi/layoutUI/CLLayoutRenderer.h"
#include "copasi/layout/CLDefaultStyles.h"
#include "copasi/layout/CLLocalRenderInformation.h"
#include "copasi/layout/CLGlobalRenderInformation.h"
#include "copasi/layout/CListOfLayouts.h"
#include "copasi/layoutUI/CQQtImageTexturizer.h"
#include "copasi/utilities/CCopasiMessage.h"
#include "CQGLLayoutPainter.h"
#include <QtGui/QMouseEvent>
#include <QtCore/QTimer>
#include <QtGui/QCursor>
#include <QtGui/QApplication>
#include <QtCore/Qt>
#include <limits>
#include <functional>
#include <algorithm>
#include <GL/gl.h>
#include <GL/glu.h>
#include <GL/glext.h>
#include <GL/glx.h>
#include "UI/CQMessageBox.h"
Include dependency graph for CQGLLayoutPainter.cpp:

Go to the source code of this file.

Macros

#define GL_GLEXT_PROTOTYPES
 
#define GLX_GLXEXT_LEGACY
 

Functions

std::multiset
< CLGraphicalObject
*, compareGraphicalObjectsBySize
removeTextGlyphs (std::multiset< CLGraphicalObject *, compareGraphicalObjectsBySize > &hits)
 

Macro Definition Documentation

#define GL_GLEXT_PROTOTYPES

Definition at line 26 of file CQGLLayoutPainter.cpp.

#define GLX_GLXEXT_LEGACY

Definition at line 58 of file CQGLLayoutPainter.cpp.

Function Documentation

std::multiset<CLGraphicalObject*, compareGraphicalObjectsBySize> removeTextGlyphs ( std::multiset< CLGraphicalObject *, compareGraphicalObjectsBySize > &  hits)

Definition at line 547 of file CQGLLayoutPainter.cpp.

Referenced by CQGLLayoutPainter::mouseReleaseEvent().

548 {
549  std::multiset<CLGraphicalObject*, compareGraphicalObjectsBySize> result;
550  std::multiset<CLGraphicalObject*, compareGraphicalObjectsBySize>::iterator it = hits.begin();
551 
552  while (it != hits.end())
553  {
554  CLTextGlyph* glyph = dynamic_cast<CLTextGlyph*>((*it));
555  CLMetabReferenceGlyph* refGlyph = dynamic_cast<CLMetabReferenceGlyph*>((*it));
556 
557  if (glyph == NULL && refGlyph == NULL)
558  {
559  result.insert(*it);
560  }
561 
562  ++it;
563  }
564 
565  return result;
566 }