SourceForge Logo
P.I.G.A.L.E.
1.3.9
Public Implementation of a Graph Algorithm
Library and Editor

H. de Fraysseix      P. Ossona de Mendez

GraphEditor Class Reference

Collaboration diagram for GraphEditor:

Collaboration graph
[legend]

List of all members.


Detailed Description

The main class of the Pigale Editor.

It derives from QGraphicsView and displays the QGraphicsScene constructed by its parent

Public Slots

Public Member Functions

Private Member Functions

Private Attributes


Constructor & Destructor Documentation

GraphEditor ( GraphWidget parent,
pigaleWindow mywindow 
)

~GraphEditor (  )  [inline]


Member Function Documentation

QSize sizeHint (  )  const

void setsize (  ) 

void clear (  ) 

void load ( bool  initgrid = true  ) 

void print ( QPrinter *  printer  ) 

void image ( QPrinter *  printer,
QString  suffix 
)

void Normalise (  ) 

bool InitGrid ( Tgrid g  ) 

Tgrid ParamGrid ( int  nx  ) 

void DrawGrid ( const Tgrid grid  ) 

input: min_used_x, max_used_x, nxstep (id for y) compute xstep and the grid

void PrintSizeGrid (  ) 

void clearGrid (  ) 

void ToGrid ( tvertex v  ) 

void ToGrid ( QPoint &  p  ) 

void Zoom ( int  dir  ) 

void Spring (  ) 

void SpringPreservingMap ( bool  draw = true  ) 

int SpringJacquard (  ) 

int FindItem ( QPoint &  p,
NodeItem *&  node,
EdgeItem *&  edge 
)

int FindItem ( QPoint &  p,
EdgeItem *&  edge 
)

int FindItem ( QPoint &  p,
ColorItem *&  coloritem 
)

int FindItem ( QPoint &  p,
ThickItem *&  thickitem 
)

void resizeEvent ( QResizeEvent *  e  ) 

void update ( int  compute  ) 

void showGrid ( bool  show  )  [slot]

void fitgridChanged ( bool  i  )  [slot]

void ForceToGrid (  )  [slot]

void UndoGrid (  )  [slot]

void sizegridChanged ( int  i  )  [slot]

void mousePressEvent ( QMouseEvent *  e  )  [private]

void mouseReleaseEvent ( QMouseEvent *  event  )  [private]

void mouseMoveEvent ( QMouseEvent *  e  )  [private]

void wheelEvent ( QWheelEvent *  event  )  [private]

void UpdateSizeGrid (  )  [private]

void keyPressEvent ( QKeyEvent *  k  )  [private]


Member Data Documentation

GraphWidget* gwp [private]

pigaleWindow* mywindow [private]

QPoint start_position [private]

bool DoNormalise [private]

bool is_init [private]

short color_node [private]

short color_edge [private]

int width_edge [private]

double xepsilon [private]

double yepsilon [private]

double min_used_x [private]

double max_used_x [private]

double min_used_y [private]

double max_used_y [private]

double xminstep [private]

double yminstep [private]

double x_min [private]

double x_max [private]

double y_min [private]

double y_max [private]

double xstep [private]

double ystep [private]

double undoxstep [private]

double undoystep [private]

int key_pressed [private]

bool IsGrid [private]

double zoom [private]

int nxstep [private]

int nystep [private]

bool GridDrawn [private]

Tgrid current_grid [private]

Tgrid graph_grid [private]

Tgrid old_grid [private]

Tgrid undo_grid [private]

bool ShowGrid [private]

bool FitToGrid [private]

bool ForceGrid [private]

bool ForceGridOk [private]

bool RedrawGrid [private]

int FitSizeGrid [private]

int OldFitSizeGrid [private]

int SizeGrid [private]


Generated on Thu Jan 31 16:51:52 2008 for Pigale by  doxygen 1.5.4