Overview     Modules     Class Hierarchy     Classes     Members  

Tulip_Widgets

Classes

Functions

Signals

Public Slots

Protected Slots

Properties


Detailed Description


Function Documentation

void tlp::GlMainWidget::addForegroundEntity ( ForegroundEntity entity  )  [inline, inherited]

add a foregroundEntity to this GlMainWidget

QColor tlp::TulipTableWidget::backgroundColor ( const int  row  )  const [inherited]
void tlp::GlMainWidget::computeInteractors (  )  [inherited]

Compute interactors before drawing

QImage tlp::GlMainWidget::createPicture ( int  width,
int  height,
bool  center = true,
int  zoom = 1,
int  xDec = 0,
int  yDec = 0 
) [inherited]

Take a snapshot of the Widget and return it

void tlp::GlMainWidget::createPicture ( const std::string &  pictureName,
int  width,
int  height,
bool  center = true,
int  zoom = 1,
int  xDec = 0,
int  yDec = 0 
) [inherited]

Take a snapshot of the Widget and put it in a picture

QGLFramebufferObject* tlp::GlMainWidget::createTexture ( const std::string &  textureName,
int  width,
int  height 
) [inherited]

Take a snapshot of the Widget and put it in an OpenGl texture

bool tlp::GlMainWidget::doSelect ( const int  x,
const int  y,
tlp::ElementType &  type,
tlp::node &  ,
tlp::edge &  ,
tlp::GlLayer *  layer = NULL 
) [inherited]

select a node or edge at a point select either a node or edge at point (x,y)

Parameters:
type tells what has been found: NODE, EDGE
Returns:
true if something has been found, false otherwise
void tlp::GlMainWidget::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 
) [inherited]

select nodes and edges in a region of the screen

select all nodes and edges lying in the area of the screen of given width and height, and with its upper-left corner at (x,y)

Parameters:
sNode filled by the method with the nodes found in the region
sEdge filled by the method with the edges found in the region
void tlp::GlMainWidget::drawForegroundEntities (  )  [inherited]

Draw foreground entities

void tlp::GlMainWidget::drawInteractors (  )  [inherited]

Draw interactors

bool tlp::GWOverviewWidget::eventFilter ( QObject *  ,
QEvent *   
) [inherited]
QColor tlp::TulipTableWidget::getBackColor1 (  )  const [inherited]
QColor tlp::TulipTableWidget::getBackColor2 (  )  const [inherited]
DataSet tlp::GlMainWidget::getData (  )  [inherited]

Get data of GlMainWidget

static QGLWidget* tlp::GlMainWidget::getFirstQGLWidget (  )  [static, inherited]

This function return the first QGLWidget created This function is use to share OpenGL context

Graph* tlp::GlMainWidget::getGraph (  )  [inherited]

GetGraph of GlMainWidget

unsigned char* tlp::GlMainWidget::getImage (  )  [inherited]

Take a snapshot of the Widget

Returns:
an array of dimension width*height*3 char (8bits per color RGB). The pointer has to be freed after (with free, not delete)
GlMainWidget* tlp::GWOverviewWidget::getObservedView (  )  [inherited]
tlp::GlScene* tlp::GlMainWidget::getScene (  )  [inline, inherited]

Get the scene of this glMainWidget

static void tlp::GlMainWidget::getTextureRealSize ( int  width,
int  height,
int &  textureRealWidth,
int &  textureRealHeight 
) [static, inherited]

Compute real texture size with given height and width

void tlp::GlMainWidget::getTextureShift ( int  width,
int  height,
float &  xTextureShift,
float &  yTextureShift 
) [inherited]
QString tlp::TulipTableWidget::getTulipEdgeValue ( const int  row,
const int  col 
) const [inherited]
QString tlp::TulipTableWidget::getTulipNodeValue ( const int  row,
const int  col 
) const [inherited]
bool tlp::TulipTableWidget::getUpdateColumnTitle (  )  const [inherited]
GlMainWidget* tlp::GWOverviewWidget::getView (  )  [inherited]
View* tlp::GlMainWidget::getView (  )  [inline, inherited]

Get the view who use this GlMainWidget

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

Construct the GlMainWidget

virtual QImage tlp::GlMainWidget::grabFrameBuffer ( bool  withAlpha = false  )  [virtual, inherited]

Grab the image of this widget

bool tlp::GlMainWidget::hasHulls (  )  const [inherited]
virtual void tlp::GlMainWidget::makeCurrent (  )  [virtual, inherited]

Extend makeCurrent function of QGLWidget to inform TextureManager and DisplayListManager of context changement

bool tlp::GlMainWidget::outputEPS ( int  size,
int  doSort,
const char *  filename 
) [inherited]
bool tlp::GlMainWidget::outputSVG ( int  size,
const char *  filename 
) [inherited]
void tlp::GlMainWidget::removeForegrounEntity ( ForegroundEntity entity  )  [inherited]

Remove the given ForegroundEntity. If the entity don't exisits do nothing.

void tlp::GlMainWidget::render ( RenderingOptions  options = RenderingOptions(RenderGraph|SwapBuffers)  )  [inherited]

This function performs all the rendering process of the graph. Use this function only for advanced purpose, if you want to perform simple rendering use the draw or redraw functions instead.

Parameters:
options Configure the rendering process, see the RenderingOption documentation for more informations on each rendering option effect.
See also:
RenderingOption
void tlp::GlMainWidget::resizeGL ( int  w,
int  h 
) [inherited]

Resize openGL view

_DEPRECATED bool tlp::GlMainWidget::selectGlEntities ( const int  x,
const int  y,
std::vector< tlp::GlEntity * > &  pickedEntities,
tlp::GlLayer *  layer = NULL 
) [inherited]

Deprecated, see others selectGlEntities functions.

_DEPRECATED bool tlp::GlMainWidget::selectGlEntities ( const int  x,
const int  y,
const int  width,
const int  height,
std::vector< tlp::GlEntity * > &  pickedEntities,
tlp::GlLayer *  layer = NULL 
) [inherited]

Deprecated, see others selectGlEntities functions.

bool tlp::GlMainWidget::selectGlEntities ( const int  x,
const int  y,
std::vector< tlp::GlSimpleEntity * > &  pickedEntities,
tlp::GlLayer *  layer = NULL 
) [inherited]

Function to do picking on entities. It just calls selectEntities on the GlScene instance with a small window of twelve pixels.

bool tlp::GlMainWidget::selectGlEntities ( const int  x,
const int  y,
const int  width,
const int  height,
std::vector< tlp::GlSimpleEntity * > &  pickedEntities,
tlp::GlLayer *  layer = NULL 
) [inherited]

Function to do picking on entities. It just calls selectEntities on the GlScene instance.

void tlp::GlMainWidget::setData ( Graph *  graph,
DataSet  dataSet 
) [inherited]

Set graph and data of GlMainWidget

void tlp::GWOverviewWidget::setDrawIfNotVisible ( bool  drawIfNotVisible  )  [inline, inherited]
void tlp::GlMainWidget::setGraph ( Graph *  graph  )  [inherited]

Set the graph

void tlp::TulipTableWidget::setTulipEdgeItem ( const PropertyInterface *  ,
const std::string  propertyName,
const edge &  ,
const int  row,
const int  col 
) [inherited]
void tlp::TulipTableWidget::setTulipNodeItem ( const PropertyInterface *  ,
const std::string  propertyName,
const node &  ,
const int  row,
const int  col 
) [inherited]
void tlp::GlMainWidget::setViewLabel ( bool  viewLabel  )  [inline, inherited]

set if the label is rendered in this widget

QSize tlp::GlMainWidget::sizeHint (  )  const [inherited]
tlp::TulipTableWidget::TulipTableWidget ( QWidget *  ,
const char *   
) [inherited]
void tlp::GlMainWidget::useHulls ( bool  hasHulls  )  [inherited]
tlp::GlMainWidget::~GlMainWidget (  )  [inherited]
tlp::GWOverviewWidget::~GWOverviewWidget (  )  [inherited]
tlp::TulipTableWidget::~TulipTableWidget (  )  [inherited]

Signals

void tlp::GlMainWidget::closing ( GlMainWidget ,
QCloseEvent *   
) [signal, inherited]

This signal is emit when the GlMainWidget will be deleted

void tlp::GlMainWidget::graphRedrawn ( GlMainWidget glWidget,
bool  graphChanged 
) [signal, inherited]

This signal is here for compatibility with old code This signal is emit when viewDrawn is emit

void tlp::GWOverviewWidget::hideOverview ( bool   )  [signal, inherited]
void tlp::GlMainWidget::viewDrawn ( GlMainWidget glWidget,
bool  graphChanged 
) [signal, inherited]

This signal is emit when GlMainWidget::draw() is call

void tlp::GlMainWidget::viewRedrawn ( GlMainWidget glWidget  )  [signal, inherited]

This signal is emit when GlMainWidget::redraw() is call


Public Slots

void tlp::GlMainWidget::centerScene (  )  [slot, inherited]

Convinience function that call center function on the current scene and draw the view. Same thing than.

 getScene()->centerScene();
 draw();
void tlp::GlMainWidget::closeEvent ( QCloseEvent *  e  )  [slot, inherited]
void tlp::GlMainWidget::draw ( bool  graphChanged = true  )  [slot, inherited]

Draw the graph, the augmented dispaly and the interactors

void tlp::GlMainWidget::redraw (  )  [slot, inherited]

That function is given for optimisation purpose. If the hardware enable it, it enables to redraw only the Augmented display and the interactors and not the graph it is really usefull for interactors such as zoom box etc.. Warning, if you change the graph or the porperties of element (Colors, size, etc...) applying that fonction will not display the change, in that case, use the draw function.

void tlp::TulipTableWidget::resetBackColor1 (  )  [slot, inherited]
void tlp::TulipTableWidget::resetBackColor2 (  )  [slot, inherited]
void tlp::TulipTableWidget::setBackColor1 ( const QColor &   )  [slot, inherited]
void tlp::TulipTableWidget::setBackColor2 ( const QColor &   )  [slot, inherited]
void tlp::GWOverviewWidget::setObservedView ( GlMainWidget ,
GlSimpleEntity *  entity 
) [slot, inherited]
void tlp::TulipTableWidget::setUpdateColumnTitle ( const   bool  )  [slot, inherited]
void tlp::GWOverviewWidget::show (  )  [slot, inherited]
void tlp::GWOverviewWidget::updateView (  )  [slot, inherited]

Protected Slots

void tlp::GlMainWidget::paintEvent ( QPaintEvent *   )  [protected, slot, inherited]
void tlp::GlMainWidget::viewDrawnSlot ( GlMainWidget glWidget,
bool  graphChanged 
) [inline, protected, slot, inherited]

Properties

QColor tlp::TulipTableWidget::backColor1 [read, write, inherited]
QColor tlp::TulipTableWidget::backColor2 [read, write, inherited]
bool tlp::TulipTableWidget::updateColumnTitle [read, write, inherited]


Tulip Software by LaBRI Visualization Team    2001 - 2012