graphicsnodenumber.h
Go to the documentation of this file.
1 /***************************************************************************
2  SocNetV: Social Network Visualizer
3  version: 3.1
4  Written in Qt
5 
6  graphicsnodenumber.h - description
7  -------------------
8  copyright : (C) 2005-2023 by Dimitris B. Kalamaras
9  project site : https://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 static const int TypeNumber=QGraphicsItem::UserType+3;
36 static const int ZValueNodeNumber = 90;
37 
38 class GraphicsNodeNumber : public QGraphicsTextItem {
39 public:
40  GraphicsNodeNumber(GraphicsNode * , const QString &labelText, const int &size);
41  enum { Type = UserType + 3 };
42  void removeRefs();
43  int type() const { return Type; }
44  GraphicsNode* node() { return source; }
45  void setSize(const int size);
47 private:
49 };
50 
51 #endif
Definition: graphicsnodenumber.h:38
GraphicsNode * source
Definition: graphicsnodenumber.h:48
@ Type
Definition: graphicsnodenumber.h:41
~GraphicsNodeNumber()
Definition: graphicsnodenumber.cpp:56
GraphicsNode * node()
Definition: graphicsnodenumber.h:44
GraphicsNodeNumber(GraphicsNode *, const QString &labelText, const int &size)
Definition: graphicsnodenumber.cpp:34
void removeRefs()
Definition: graphicsnodenumber.cpp:51
void setSize(const int size)
Definition: graphicsnodenumber.cpp:45
int type() const
Definition: graphicsnodenumber.h:43
Definition: graphicsnode.h:58
static const int TypeNumber
Definition: graphicsnodenumber.h:35
static const int ZValueNodeNumber
Definition: graphicsnodenumber.h:36