Overview     Modules     Class Hierarchy     Classes     Members  

tlp::GlMainWidget Class Reference
[Tulip_Widgets]

Widget of visualisation. More...

#include <GlMainWidget.h>

Collaboration diagram for tlp::GlMainWidget:

List of all members.

Public Slots

Signals

Public Member Functions

  • GlMainWidget (QWidget *parent, View *view=NULL)
  • ~GlMainWidget ()
  • void setData (Graph *graph, DataSet dataSet)
  • DataSet getData ()
  • void setGraph (Graph *graph)
  • Graph * getGraph ()
  • View * getView ()
  • tlp::GlScene * getScene ()
  • void addForegroundEntity (ForegroundEntity *entity)
  • void doSelect (const int x, const int y, const int width, const int height, std::vector< tlp::node > &sNode, std::vector< tlp::edge > &sEdge, tlp::GlLayer *layer=NULL)
    select nodes and edges in a region of the screen
  • bool doSelect (const int x, const int y, tlp::ElementType &type, tlp::node &, tlp::edge &, tlp::GlLayer *layer=NULL)
    select a node or edge at a point select either a node or edge at point (x,y)
  • unsigned char * getImage ()
  • bool outputEPS (int size, int doSort, const char *filename)
  • bool outputSVG (int size, const char *filename)
  • void getTextureShift (int width, int height, float &xTextureShift, float &yTextureShift)
  • QGLFramebufferObject * createTexture (const std::string &textureName, int width, int height)
  • void createPicture (const std::string &pictureName, int width, int height, bool center=true, int zoom=1, int xDec=0, int yDec=0)
  • QImage createPicture (int width, int height, bool center=true, int zoom=1, int xDec=0, int yDec=0)
  • bool selectGlEntities (const int x, const int y, const int width, const int height, std::vector< tlp::GlSimpleEntity * > &pickedEntities, tlp::GlLayer *layer=NULL)
  • bool selectGlEntities (const int x, const int y, std::vector< tlp::GlSimpleEntity * > &pickedEntities, tlp::GlLayer *layer=NULL)
  • _DEPRECATED bool selectGlEntities (const int x, const int y, const int width, const int height, std::vector< tlp::GlEntity * > &pickedEntities, tlp::GlLayer *layer=NULL)
  • _DEPRECATED bool selectGlEntities (const int x, const int y, std::vector< tlp::GlEntity * > &pickedEntities, tlp::GlLayer *layer=NULL)
  • virtual QImage grabFrameBuffer (bool withAlpha=false)
  • void setViewLabel (bool viewLabel)
  • virtual void makeCurrent ()
  • void resizeGL (int w, int h)
  • void computeInteractors ()
  • void drawInteractors ()
  • void drawForegroundEntities ()
  • void useHulls (bool hasHulls)
  • bool hasHulls () const

Static Public Member Functions

Protected Slots


Detailed Description

Widget of visualisation.

This widget provide a simple system to display visualisation If you only want to visualise a graph, you can call the setGraph function But in other cases you can directly use the GlScene of the GlMainWidget

See also:
GlScene

After scene construction you can perform some operation on GlMainWidgte :


Constructor & Destructor Documentation

tlp::GlMainWidget::GlMainWidget ( QWidget *  parent,
View view = NULL 
)

Construct the GlMainWidget



Tulip Software by LaBRI Visualization Team    2001 - 2011