GraphTool  1.0
Tool for analyzing and graphically visualizing code dependencies for Ericsson.
 All Classes Namespaces Functions Variables Typedefs Enumerations Pages
Public Member Functions | List of all members
SWUGraphModelItem Class Reference

A class representing a single SWU in the QT graph model. More...

#include <swu_graph_model_item.h>

Inheritance diagram for SWUGraphModelItem:
Inheritance graph
[legend]
Collaboration diagram for SWUGraphModelItem:
Collaboration graph
[legend]

Public Member Functions

 SWUGraphModelItem (SWU *node, std::vector< SWUGraphModel::EdgeType * > *edges, std::vector< SWUGraphModel::EdgeType * > *incoming_edges, GraphModelItem *parent=0, SWUGraphModel::EdgeType *parent_edge=0)
 Default constructor. Simply calls constructor of parent.
 
virtual QVariant data (int column) const
 This reimplements the data method to pick out the data relevant only for modules.
 
- Public Member Functions inherited from GenericGraphModelItem< SWU, SWUGraphModel::EdgeType >
 GenericGraphModelItem (SWU *node, std::vector< SWUGraphModel::EdgeType * > *edges, std::vector< SWUGraphModel::EdgeType * > *incoming_edges, GraphModelItem *parent=0, SWUGraphModel::EdgeType *parent_edge=0)
 
SWUnode ()
 Return the underlying node.
 
std::vector
< SWUGraphModel::EdgeType * > * 
edges ()
 Return the list of edge datas belonging to this node.
 
std::vector
< SWUGraphModel::EdgeType * > * 
incoming_edges ()
 Return the list of edge datas belonging to this node.
 
bool self_referential () const
 Whether this is a node that is a child of itself.
 
- Public Member Functions inherited from GraphModelItem
 GraphModelItem (GraphModelItem *parent=0)
 If this is not in a tree, you can leave the parent as 0.
 
void appendChild (GraphModelItem *child)
 Append a child to this node.
 
GraphModelItemchild (int row)
 Returns a specific child (the one identified by row number row) of this node.
 
GraphModelItemparent ()
 Returns the parent of this node.
 
int childCount () const
 Return the number of child columns in this node.
 
int columnCount () const
 Return the number of columns in this node (see the num above.
 
int row () const
 Return the row number this node has.
 
void set_xy (int x, int y)
 Set the x,y coordinate properties for this node.
 
void set_circular (bool circular)
 
bool circular () const
 
void set_num_of_modules (uint)
 Set the number of modules for this item.
 
void set_degree (uint)
 Set the degree of this item.
 
void set_num_of_files (uint)
 Set the number of files for this item.
 
void set_opacity (int opacity)
 
void set_color (QColor color)
 
void set_edge_opacity (int opacity)
 
void set_edge_color (QColor color)
 
void set_mem_type (std::string type)
 

Additional Inherited Members

- Public Types inherited from GraphModelItem
enum  column_index {
  NAME, DEPENDENCIES, DEPENDENTS, MODULES,
  FILES, DEGREE, CIRCULAR, SELF_REF,
  XPOS, YPOS, ABSOLUTE, IN_RUN_BLOCK,
  MEM_TYPE, COLOR, OPACITY, EDGE_COLOR,
  EDGE_OPACITY, NUM_COLS
}
 
- Protected Attributes inherited from GenericGraphModelItem< SWU, SWUGraphModel::EdgeType >
SWUnode_
 Information about underlying graph.
 
SWUGraphModel::EdgeTypeparent_edge_
 The edge that was used to reach this node in the tree.
 
std::vector
< SWUGraphModel::EdgeType * > * 
edges_
 List of all outgoing edges (non-hierarchical data)
 
std::vector
< SWUGraphModel::EdgeType * > * 
incoming_edges_
 List of all incoming edges (non-hierarchical data)
 
- Protected Attributes inherited from GraphModelItem
GraphModelItemparent_item_
 

Detailed Description

A class representing a single SWU in the QT graph model.


The documentation for this class was generated from the following files: