1 #ifndef GUI_GRAPH_MODEL_ITEM_H_
2 #define GUI_GRAPH_MODEL_ITEM_H_
69 virtual QVariant
data(
int column)
const;
92 void set_opacity(
int opacity);
95 void set_color(QColor color);
97 void set_edge_opacity(
int opacity);
98 void set_edge_color(QColor color);
112 QList<GraphModelItem*> child_items_;
118 uint num_of_modules_;
129 std::string mem_type_;
175 if(p == NULL)
return false;
183 virtual QVariant
data(
int column)
const {
void set_degree(uint)
Set the degree of this item.
Definition: graph_model_item.cc:110
void set_mem_type(std::string type)
Definition: graph_model_item.cc:134
NodeType * node()
Return the underlying node.
Definition: graph_model_item.h:156
int columnCount() const
Return the number of columns in this node (see the num above.
Definition: graph_model_item.cc:45
void set_xy(int x, int y)
Set the x,y coordinate properties for this node.
Definition: graph_model_item.cc:89
bool circular() const
Definition: graph_model_item.cc:98
GraphModelItem * parent()
Returns the parent of this node.
Definition: graph_model_item.cc:102
column_index
Definition: graph_model_item.h:30
std::vector< EdgeType * > * edges()
Return the list of edge datas belonging to this node.
Definition: graph_model_item.h:161
int childCount() const
Return the number of child columns in this node.
Definition: graph_model_item.cc:34
void set_circular(bool circular)
Definition: graph_model_item.cc:94
GenericGraphModelItem(NodeType *node, std::vector< EdgeType * > *edges, std::vector< EdgeType * > *incoming_edges, GraphModelItem *parent=0, EdgeType *parent_edge=0)
Definition: graph_model_item.h:144
int row() const
Return the row number this node has.
Definition: graph_model_item.cc:38
void set_num_of_files(uint)
Set the number of files for this item.
Definition: graph_model_item.cc:114
virtual QVariant data(int column) const
Fetch a specific property (column, see the Enum above) for this node.
Definition: graph_model_item.cc:49
bool self_referential() const
Whether this is a node that is a child of itself.
Definition: graph_model_item.h:171
Definition: graph_model_item.h:22
Definition: graph_model_item.h:138
void appendChild(GraphModelItem *child)
Append a child to this node.
Definition: graph_model_item.cc:26
std::vector< EdgeType * > * edges_
List of all outgoing edges (non-hierarchical data)
Definition: graph_model_item.h:198
std::vector< EdgeType * > * incoming_edges()
Return the list of edge datas belonging to this node.
Definition: graph_model_item.h:166
std::vector< EdgeType * > * incoming_edges_
List of all incoming edges (non-hierarchical data)
Definition: graph_model_item.h:200
EdgeType * parent_edge_
The edge that was used to reach this node in the tree.
Definition: graph_model_item.h:196
virtual QVariant data(int column) const
Definition: graph_model_item.h:183
void set_num_of_modules(uint)
Set the number of modules for this item.
Definition: graph_model_item.cc:106
GraphModelItem * child(int row)
Returns a specific child (the one identified by row number row) of this node.
Definition: graph_model_item.cc:30
NodeType * node_
Information about underlying graph.
Definition: graph_model_item.h:194
GraphModelItem(GraphModelItem *parent=0)
If this is not in a tree, you can leave the parent as 0.
Definition: graph_model_item.cc:6