graphicsnodenumber.h
Go to the documentation of this file.
1 /***************************************************************************
2  SocNetV: Social Network Visualizer
3  version: 2.5
4  Written in Qt
5 
6  graphicsnodenumber.h - description
7  -------------------
8  copyright : (C) 2005-2018 by Dimitris B. Kalamaras
9  project site : http://socnetv.org
10 
11  ***************************************************************************/
12 
13 /*******************************************************************************
14 * This program is free software: you can redistribute it and/or modify *
15 * it under the terms of the GNU General Public License as published by *
16 * the Free Software Foundation, either version 3 of the License, or *
17 * (at your option) any later version. *
18 * *
19 * This program is distributed in the hope that it will be useful, *
20 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
22 * GNU General Public License for more details. *
23 * *
24 * You should have received a copy of the GNU General Public License *
25 * along with this program. If not, see <http://www.gnu.org/licenses/>. *
26 ********************************************************************************/
27 
28 #ifndef GRAPHICSNODENUMBER_H
29 #define GRAPHICSNODENUMBER_H
30 
31 #include <QGraphicsTextItem>
32 
33 class GraphicsNode;
34 
35 
36 static const int TypeNumber=QGraphicsItem::UserType+3;
37 static const int ZValueNodeNumber = 90;
38 
39 class GraphicsNodeNumber : public QGraphicsTextItem {
40 public:
41  GraphicsNodeNumber(GraphicsNode * , const QString &labelText, const int &size);
42  enum { Type = UserType + 3 };
43  void removeRefs();
44  int type() const { return Type; }
45  GraphicsNode* node() { return source; }
46  void setSize(const int size);
48 private:
50 };
51 
52 #endif
int type() const
Definition: graphicsnodenumber.h:44
void removeRefs()
Definition: graphicsnodenumber.cpp:48
void setSize(const int size)
Definition: graphicsnodenumber.cpp:42
GraphicsNode * source
Definition: graphicsnodenumber.h:49
GraphicsNodeNumber(GraphicsNode *, const QString &labelText, const int &size)
Definition: graphicsnodenumber.cpp:32
Definition: graphicsnodenumber.h:42
static const int TypeNumber
Definition: graphicsnodenumber.h:36
Definition: graphicsnodenumber.h:39
static const int ZValueNodeNumber
Definition: graphicsnodenumber.h:37
GraphicsNode * node()
Definition: graphicsnodenumber.h:45
Definition: graphicsnode.h:58
~GraphicsNodeNumber()
Definition: graphicsnodenumber.cpp:53