133 void set(
const char *str) {
140 void set(
char c,
size_t n) {
146 init(static_cast<int>(obt),n);
171 bs.m_pBend =
nullptr;
182 char* temp =
new char[m_len+bs.
m_len+1];
184 m_len = m_len + bs.
m_len;
193 if (m_pBend !=
nullptr)
195 const char *str = m_pBend;
196 while ((*p++ = *str++) != 0) ;
198 else {*p =
'0'; p++;}
203 while ((*p++ = *str1++) != 0) ;
219 os <<
"\"" << bs.
m_pBend <<
"\"";
224 void init(
const char *str);
225 void init(
char c,
size_t n);
253 m_nAttached[0] = m_nAttached[1] = 0;
258 int nGen = (m_adjGen ==
nullptr) ? 0 : 1;
259 return nGen + m_nAttached[0] + m_nAttached[1];
289 m_corner[0] = m_corner[1] = m_corner[2] = m_corner[3] =
nullptr;
354 return m_umlCageInfo[v];
359 return m_umlCageInfo[v];
373 bool isNormalized()
const;
382 void dissect2(
PlanRep* PG =
nullptr);
387 void undissect(
bool align =
false);
405 return m_dir.valid();
414 void computeCageInfoUML(
const PlanRep &PG);
421 bool check(
string &error)
const;
430 return (c ==
'0') ?
'1' :
'0';
435 return static_cast<OrthoDir>((
static_cast<int>(d) + 2) & 3);
440 return static_cast<OrthoDir>((
static_cast<int>(d) + 1) & 3);
445 return static_cast<OrthoDir>((
static_cast<int>(d) + 3) & 3);
464 void freeCageInfoUML();
BendString(const char *str)
char & operator[](size_t i)
ArrayBuffer< node > m_splitNodes
int operator&(int lhs, UMLOpt rhs)
int operator+=(int &lhs, UMLOpt rhs)
BendString(char c, size_t n)
Data type for general directed graphs (adjacency list representation).
BendString & bend(adjEntry adj)
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
adjEntry adjSource() const
Returns the corresponding adjacancy entry at source node.
BendString(const BendString &bs)
int totalAttached() const
Information about a side of a vertex in UML diagrams.
adjEntry alignAdjEntry() const
int angle(adjEntry adj) const
BendString(BendString &&bs)
const char * toString() const
Orthogonal representation of an embedded graph.
Further information about the cages of vertices in UML diagrams.
An array that keeps track of the number of inserted elements; also usable as an efficient stack...
declaration and implementation of FaceArray class
AdjEntryArray< int > m_angle
bool isOrientated() const
BendString & operator=(BendString &&bs)
BendString & operator+=(const char *str)
BendString & operator=(const BendString &bs)
AdjEntryArray< OrthoDir > m_dir
internal::GraphObjectContainer< EdgeElement > edges
The container containing all edge objects.
Dynamic arrays indexed with nodes.
VertexInfoUML * cageInfo(node v)
EdgeArray< bool > m_dissectionEdge
NodeArray< VertexInfoUML * > m_umlCageInfo
const BendString & bend(adjEntry adj) const
BendString & operator+=(const BendString &bs)
int & angle(adjEntry adj)
const VertexInfoUML * cageInfo(node v) const
Declaration of graph copy classes.
static OrthoDir oppDir(OrthoDir d)
Returns the opposite OrthoDir.
friend std::ostream & operator<<(std::ostream &os, const BendString &bs)
friend std::ostream & operator<<(std::ostream &os, const SideInfoUML &si)
Class for the representation of edges.
int operator|(int lhs, UMLOpt rhs)
Class for the representation of nodes.
#define OGDF_NEW_DELETE
Makes the class use OGDF's memory allocator.
adjEntry externalAdjEntry() const
Declaration and implementation of class Tuple2, Tuple3 and Tuple4.
AdjEntryArray< BendString > m_bends
static OrthoDir prevDir(OrthoDir d)
Returns the previous OrthoDir (in a clockwise manner)
static OrthoDir nextDir(OrthoDir d)
Returns the next OrthoDir (in a clockwise manner)
Represents the bends on an edge e consisting of vertical and horizontal segments. ...
OrthoDir direction(adjEntry adj) const
EdgeArray< bool > m_alignmentEdge
int operator~(UMLOpt rhs)
CombinatorialEmbedding * m_pE
The namespace for all OGDF objects.
char operator[](size_t i) const
friend std::ostream & operator<<(std::ostream &os, const OrthoRep &op)
Combinatorial embeddings of planar graphs with modification functionality.
adjEntry adjTarget() const
Returns the corresponding adjacancy entry at target node.
Class for adjacency list elements.
#define OGDF_ASSERT(expr)
Assert condition expr. See doc/build.md for more information.
Planarized representations (of a connected component) of a graph.