134 void set(
const char *str) {
141 void set(
char c,
size_t n) {
147 init(static_cast<int>(obt),n);
172 bs.m_pBend =
nullptr;
183 char* temp =
new char[m_len+bs.
m_len+1];
185 m_len = m_len + bs.
m_len;
194 if (m_pBend !=
nullptr)
196 const char *str = m_pBend;
197 while ((*p++ = *str++) != 0) ;
199 else {*p =
'0'; p++;}
204 while ((*p++ = *str1++) != 0) ;
220 os <<
"\"" << bs.
m_pBend <<
"\"";
225 void init(
const char *str);
226 void init(
char c,
size_t n);
254 m_nAttached[0] = m_nAttached[1] = 0;
259 int nGen = (m_adjGen ==
nullptr) ? 0 : 1;
260 return nGen + m_nAttached[0] + m_nAttached[1];
290 m_corner[0] = m_corner[1] = m_corner[2] = m_corner[3] =
nullptr;
355 return m_umlCageInfo[v];
360 return m_umlCageInfo[v];
374 bool isNormalized()
const;
383 void dissect2(
PlanRep* PG =
nullptr);
388 void undissect(
bool align =
false);
406 return m_dir.valid();
415 void computeCageInfoUML(
const PlanRep &PG);
422 bool check(
string &error)
const;
431 return (c ==
'0') ?
'1' :
'0';
436 return static_cast<OrthoDir>((
static_cast<int>(d) + 2) & 3);
441 return static_cast<OrthoDir>((
static_cast<int>(d) + 1) & 3);
446 return static_cast<OrthoDir>((
static_cast<int>(d) + 3) & 3);
465 void freeCageInfoUML();
BendString(const char *str)
int operator&(int i, TopologyModule::Options b)
char & operator[](size_t i)
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.
friend ostream & operator<<(ostream &os, const BendString &bs)
declaration and implementation of FaceArray class
AdjEntryArray< int > m_angle
friend ostream & operator<<(ostream &os, const SideInfoUML &si)
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.
Class for the representation of edges.
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
int operator|(TopologyModule::Options a, TopologyModule::Options b)
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. ...
friend ostream & operator<<(ostream &os, const OrthoRep &op)
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
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.
Declaration and implementation of list-based stacks (StackPure<E> and Stack<E>).
Planarized representations (of a connected component) of a graph.
StackPure< node > m_splitNodes