51 #ifndef OGDF_ATTRIBUTED_GRAPH_H
52 #define OGDF_ATTRIBUTED_GRAPH_H
148 BackwardDiagonal = 12,
149 ForwardDiagonal = 13,
193 return BackwardDiagonal;
196 return ForwardDiagonal;
199 return DiagonalCross;
209 FreeScale = 0, FixScale = 1
213 TopLeft = 0, TopCenter,
TopRight, CenterLeft, Center, CenterRight, BottomLeft, BottomCenter, BottomRight
270 void writeLongString(ostream &os,
const String &str)
const;
344 nodeGraphics = 0x00001,
345 edgeGraphics = 0x00002,
347 edgeIntWeight = 0x00008,
348 edgeDoubleWeight = 0x00010,
361 nodeTemplate = 0x08000,
362 edgeSubGraph = 0x10000,
369 oval = 0x8001, rectangle = 0x8002
396 virtual void init(
const Graph &G,
long initAttr);
404 void initAttributes(
long attr);
407 void destroyAttributes(
long attr);
421 m_directed = directed;
426 return m_nodeTemplate[v];
430 return m_nodeTemplate[v];
498 return m_nodeIntWeight[v];
502 return m_nodeIntWeight[v];
507 return m_nodePattern[v];
511 return m_nodePattern[v];
516 return m_nodeStyle[v];
520 return m_nodeStyle[v];
525 return m_nodeLineWidth[v];
529 return m_nodeLineWidth[v];
534 return m_nodeLine[v];
538 return m_nodeLine[v];
552 return m_intWeight[e];
556 return m_intWeight[e];
561 return m_doubleWeight[e];
565 return m_doubleWeight[e];
570 return m_edgeWidth[e];
574 return m_edgeWidth[e];
579 return m_nodeColor[v];
583 return m_nodeColor[v];
588 return m_nodeShape[v];
592 return m_nodeShape[v];
597 return m_nodeLabel[v];
601 return m_nodeLabel[v];
606 return m_edgeLabel[e];
610 return m_edgeLabel[e];
642 return m_edgeArrow[e];
646 return m_edgeArrow[e];
651 return m_edgeStyle[e];
655 return m_edgeStyle[e];
660 return m_edgeColor[e];
664 return m_edgeColor[e];
670 return m_imageUri[v];
674 return m_imageUri[v];
678 return m_imageStyle[v];
682 return m_imageStyle[v];
686 return m_imageAlign[v];
690 return m_imageAlign[v];
694 return m_imageDrawLine[v];
698 return m_imageDrawLine[v];
702 return m_imageWidth[v];
706 return m_imageWidth[v];
710 return m_imageHeight[v];
714 return m_imageHeight[v];
719 return m_subGraph[e];
723 return m_subGraph[e];
729 return (m_subGraph[e] & (1 << n)) != 0;
734 m_subGraph[e] |= (1 << n);
739 m_subGraph[e] &= ~(1 << n);
743 const DRect boundingBox()
const;
764 void addNodeCenter2Bends(
int mode = 1);
766 void clearAllBends();
791 void setAllWidth(
double w);
793 void setAllHeight(
double h);
799 bool readGML(
Graph &G, istream &is);
802 void writeGML(
const String &fileName)
const;
805 void writeGML(ostream &os)
const;
813 void writeSVG(
const String &fileName,
int fontSize = 3,
const String &fontColor =
"#000000")
const;
821 void writeSVG(ostream &os,
int fontSize,
const String &fontColor)
const;
827 bool readXML(
Graph &G, istream &is);
830 void writeXML(
const String &fileName,
const char* delimiter =
"",
const char* offset =
"")
const;
833 virtual void writeXML(ostream &os,
const char* delimiter =
"",
const char* offset =
"")
const;
839 bool readRudy(
Graph &G, istream &is);
842 void writeRudy(
const String &fileName)
const;
845 void writeRudy(ostream &os)
const;
854 void removeUnnecessaryBendsHV();