17#ifndef GRAPHICSWIDGET_H 
   18#define GRAPHICSWIDGET_H 
   21#include <QGraphicsView> 
   52    QString createEdgeName(
const int &v1,
 
   54                           const int &relation=-1);
 
   56    void setInitNodeSize(
int);
 
   58    void setInitZoomIndex (
const int &);
 
   59    void setMaxZoomIndex (
const int &);
 
   62    void setSelectedNodes(QList<int> list);
 
   64    QList<QGraphicsItem *> selectedItems();
 
   65    QList<int> selectedNodes();
 
   66    QList<SelectedEdge> selectedEdges();
 
   78    void setNumbersInsideNodes(
const bool &toggle);
 
   80    void setAllItemsVisibility(
int, 
bool);
 
   82    void removeAllItems(
int);
 
   86    void wheelEvent(QWheelEvent *event);
 
   87    void mouseDoubleClickEvent ( QMouseEvent * e );
 
   88    void mousePressEvent ( QMouseEvent * e );
 
   89    void mouseReleaseEvent(QMouseEvent * e );
 
   90    void resizeEvent( QResizeEvent *e );
 
   94    void handleSelectionChanged();
 
   96    void relationSet(
int relation);
 
   98    void drawNode(
const QPointF &p,
 
  101                  const QString &nodeShape,
 
  102                  const QString &nodeIconPath,
 
  103                  const QString &nodeColor,
 
  104                  const QString &numberColor,
 
  105                  const int &numberSize,
 
  106                  const int &numberDistance,
 
  107                  const QString &nodeLabel,
 
  108                  const QString &labelColor,
 
  109                  const int &labelSize,
 
  110                  const int &labelDistance);
 
  111    void removeNode(
const int &nodeNum);
 
  112    void setNodeVisibility(
const int &nodeNum, 
const bool &toggle );    
 
  114    void moveNode(
const int &num, 
const qreal &x, 
const qreal &y);
 
  116    bool setNodeSize(
const int &nodeNumber, 
const int &size=0);
 
  117    void setNodeSizeAll(
const int &size=0);
 
  119    bool setNodeShape(
const int &nodeNum,
 
  120                      const QString &shape,
 
  121                      const QString &iconPath=QString());
 
  122    bool setNodeColor(
const int &nodeNum, 
const QString &color);
 
  124    void setNodeNumberColor(
const int &nodeNum, 
const QString &color);
 
  125    void setNodeNumberVisibility(
const bool &toggle);
 
  126    bool setNodeNumberSize(
const int &nodeNum, 
const int &size=0);
 
  127    bool setNodeNumberDistance(
const int &, 
const int &distance=0);
 
  129    void setNodeLabelsVisibility(
const bool &toggle);
 
  130    bool setNodeLabelColor(
const int &nodeNum, 
const QString &color=
"green");
 
  131    bool setNodeLabelSize(
const int &, 
const int &size=0);
 
  132    bool setNodeLabel(
const int & , 
const QString &label);
 
  133    bool setNodeLabelDistance(
const int &, 
const int &distance=0);
 
  135    void drawEdge(
const int &source,
 
  138                  const QString &label=
"",
 
  139                  const QString &color=
"black",
 
  141                  const bool &drawArrows=
true,
 
  142                  const bool &bezier=
false,
 
  143                  const bool &weightNumbers=
false);
 
  145    void removeEdge(
const int &source,
 
  147                    const bool &removeOpposite=
false);
 
  149    void setEdgeVisibility (
const int &relation,
 
  150                            const int &sourceNum,
 
  151                            const int &targetNum,
 
  153                            const bool &preserveReverseEdge=
false,
 
  154                            const int &edgeWeight=1,
 
  155                            const int &reverseEdgeWeight=1);
 
  157    bool setEdgeDirectionType(
const int &source,
 
  159                              const int &dirType=
false);
 
  161    bool setEdgeWeight(
const int &, 
const int &, 
const qreal &);
 
  163    void setEdgeLabel(
const int &source, 
const int &target, 
const QString &label);
 
  165    void setEdgeColor(
const int &, 
const int&, 
const QString &);
 
  167    void setEdgeClicked(
GraphicsEdge *, 
const bool &openMenu=
false);
 
  169    void setEdgeOffsetFromNode(
const int &source,
 
  172    void setEdgeArrowsVisibility(
const bool &toggle);
 
  173    void setEdgeWeightNumbersVisibility (
const bool &toggle);
 
  174    void setEdgeLabelsVisibility(
const bool &toggle);
 
  176    void setEdgeHighlighting(
const bool &toggle);
 
  181    void addGuideCircle( 
const double&x0, 
const double&y0, 
const double&radius);
 
  182    void addGuideHLine(
const double &y0);
 
  184    void zoomIn(
const int step = 1);
 
  185    void zoomOut(
const int step = 1);
 
  188    void changeMatrixScale(
const int value);
 
  189    void changeMatrixRotation(
int angle);
 
  192    void setOptionsOpenGL(
const bool &enabled=
false);
 
  193    void setOptionsAntialiasing(
const bool &toggle);
 
  194    void setOptionsNoAntialiasingAutoAdjust(
const bool &toggle);
 
  205                           const QList<SelectedEdge> selectedEdges);
 
  207    void userClickedEdge(
const int &source, 
const int &target, 
const bool &openMenu=
false);
 
 
Definition graphicsedgelabel.h:28
int type() const
Definition graphicsedgelabel.h:34
Definition graphicsedgeweight.h:28
Definition graphicsedge.h:49
Definition graphicsguide.h:30
Definition graphicsnodelabel.h:26
Definition graphicsnodenumber.h:27
Definition graphicsnode.h:47
The base window of SocNetV contains all widgets and functionality.
Definition mainwindow.h:102
QPair< int, int > SelectedEdge
Definition global.h:147