Contains the class UmlDiagramGraph which represents one particular diagram of the complete UML Model. More...
#include <ogdf/uml/UmlDiagramGraph.h>
Public Types | |
| enum | UmlDiagramType { UmlDiagramType::classDiagram, UmlDiagramType::moduleDiagram, UmlDiagramType::sequenceDiagram, UmlDiagramType::collaborationDiagram, UmlDiagramType::componentDiagram, UmlDiagramType::unknownDiagram } |
| This enum type represents the different diagram types of UML. */. More... | |
Public Member Functions | |
| UmlDiagramGraph (const UmlModelGraph ¨ModelGraph, UmlDiagramType diagramType, const string &diagramName) | |
| Constructor. More... | |
| ~UmlDiagramGraph () | |
| Destructor. More... | |
| void | addEdge (edge umlEdge) |
| Adds an edge. More... | |
| void | addNodeWithGeometry (node umlNode, double x, double y, double w, double h) |
| Adds a node with the given coordinates. More... | |
| const string & | getDiagramName () const |
| Returns the name of the diagram. More... | |
| const char * | getDiagramTypeString () const |
| Returns the type of the diagram as string. More... | |
| const SList< edge > & | getEdges () const |
| Access to contained edges. More... | |
| const SList< double > & | getHeight () const |
| Access to height. More... | |
| const SList< node > & | getNodes () const |
| Access to contained nodes. More... | |
| const SList< double > & | getWidth () const |
| Access to width. More... | |
| const SList< double > & | getX () const |
| Access to x-coordinates. More... | |
| const SList< double > & | getY () const |
| Access to y-coordinates. More... | |
Private Attributes | |
| SList< edge > | m_containedEdges |
| This list holds pointer to the edges contained in the represented diagram. More... | |
| SList< node > | m_containedNodes |
| This list holds pointer to the nodes contained in the represented diagram. More... | |
| string | m_diagramName |
| The name of the diagram. More... | |
| UmlDiagramType | m_diagramType |
| The type of diagram. More... | |
| SList< double > | m_h |
| This list contains the height of the nodes contained in the represented diagram. More... | |
| const UmlModelGraph & | m_modelGraph |
| Reference to the model graph. More... | |
| SList< double > | m_w |
| This list contains the width of the nodes contained in the represented diagram. More... | |
| SList< double > | m_x |
| This list contains the x-coordinates of the nodes contained in the represented diagram. More... | |
| SList< double > | m_y |
| This list contains the y-coordinates of the nodes contained in the represented diagram. More... | |
Friends | |
| std::ostream & | operator<< (std::ostream &, const UmlDiagramGraph &) |
Contains the class UmlDiagramGraph which represents one particular diagram of the complete UML Model.
Each diagram refers to the node and edge information of UmlModelGraph. Essentially a diagram contains selected nodes and edges of the model provides with additional geometric information.
Definition at line 52 of file UmlDiagramGraph.h.
|
strong |
This enum type represents the different diagram types of UML. */.
| Enumerator | |
|---|---|
| classDiagram | |
| moduleDiagram | |
| sequenceDiagram | |
| collaborationDiagram | |
| componentDiagram | |
| unknownDiagram | |
Definition at line 58 of file UmlDiagramGraph.h.
| ogdf::UmlDiagramGraph::UmlDiagramGraph | ( | const UmlModelGraph & | umlModelGraph, |
| UmlDiagramType | diagramType, | ||
| const string & | diagramName | ||
| ) |
Constructor.
| ogdf::UmlDiagramGraph::~UmlDiagramGraph | ( | ) |
Destructor.
| void ogdf::UmlDiagramGraph::addEdge | ( | edge | umlEdge | ) |
Adds an edge.
| void ogdf::UmlDiagramGraph::addNodeWithGeometry | ( | node | umlNode, |
| double | x, | ||
| double | y, | ||
| double | w, | ||
| double | h | ||
| ) |
Adds a node with the given coordinates.
|
inline |
Returns the name of the diagram.
Definition at line 124 of file UmlDiagramGraph.h.
| const char* ogdf::UmlDiagramGraph::getDiagramTypeString | ( | ) | const |
Returns the type of the diagram as string.
Access to contained edges.
Definition at line 137 of file UmlDiagramGraph.h.
|
inline |
Access to height.
Definition at line 157 of file UmlDiagramGraph.h.
Access to contained nodes.
Definition at line 132 of file UmlDiagramGraph.h.
|
inline |
Access to width.
Definition at line 152 of file UmlDiagramGraph.h.
|
inline |
Access to x-coordinates.
Definition at line 142 of file UmlDiagramGraph.h.
|
inline |
Access to y-coordinates.
Definition at line 147 of file UmlDiagramGraph.h.
|
friend |
This list holds pointer to the edges contained in the represented diagram.
Definition at line 85 of file UmlDiagramGraph.h.
This list holds pointer to the nodes contained in the represented diagram.
Definition at line 80 of file UmlDiagramGraph.h.
|
private |
The name of the diagram.
Definition at line 72 of file UmlDiagramGraph.h.
|
private |
The type of diagram.
Definition at line 75 of file UmlDiagramGraph.h.
|
private |
This list contains the height of the nodes contained in the represented diagram.
Definition at line 105 of file UmlDiagramGraph.h.
|
private |
Reference to the model graph.
Definition at line 69 of file UmlDiagramGraph.h.
|
private |
This list contains the width of the nodes contained in the represented diagram.
Definition at line 100 of file UmlDiagramGraph.h.
|
private |
This list contains the x-coordinates of the nodes contained in the represented diagram.
Definition at line 90 of file UmlDiagramGraph.h.
|
private |
This list contains the y-coordinates of the nodes contained in the represented diagram.
Definition at line 95 of file UmlDiagramGraph.h.