#include <nodeprint.h>
Inheritance diagram for TEXGraphOutputStrategy:
Public Methods | |
TEXGraphOutputStrategy (std::ostream *out=&std::cout, double scale=1, double border=5) | |
virtual TEXGraphOutputStrategy< _TContent > * | construct () const |
virtual TEXGraphOutputStrategy< _TContent > * | clone () const |
virtual | ~TEXGraphOutputStrategy () |
virtual void | writeHeader () |
Write the TEX header. | |
virtual void | writeFooter () |
Write the TEX footer. | |
virtual void | writeNormalNode (const NormalNode< _TContent > *node) |
Write the normalNode content. | |
virtual void | writeRootNode (const RootNode< _TContent > *node) |
Write the RootNode content. | |
virtual void | setScale (double scale) |
virtual void | setPositionMap (std::map< const Node< _TContent > *, Position > pMap) |
Protected Methods | |
virtual void | writeEdge (const Node< _TContent > *node) |
Write the edge to the parent. | |
virtual std::string | formatName (std::string name) |
Takes the word in quotation marks as name if existing. | |
virtual int | getMapIndex (const Node< _TContent > *node) |
Returns the index of the node in the position map. | |
Protected Attributes | |
std::map< const Node< _TContent > *, Position > | m_pMap |
double | m_width |
double | m_height |
double | m_scale |
double | m_border |
It uses a position-map that is created by 'LayoutVisitor' and set with the method 'setMap()'.
Definition at line 97 of file nodeprint.h.
|
|
|
Definition at line 104 of file nodeprint.h. |
|
Reimplemented from StreamOutputStrategy. Definition at line 103 of file nodeprint.h. |
|
Definition at line 102 of file nodeprint.h. |
|
Takes the word in quotation marks as name if existing.
Definition at line 348 of file nodeprint.h. Referenced by TEXGraphOutputStrategy::writeFooter(), TEXGraphOutputStrategy::writeNormalNode(), and TEXGraphOutputStrategy::writeRootNode(). |
|
Returns the index of the node in the position map.
Definition at line 363 of file nodeprint.h. References TEXGraphOutputStrategy::m_pMap. Referenced by TEXGraphOutputStrategy::writeEdge(), TEXGraphOutputStrategy::writeNormalNode(), and TEXGraphOutputStrategy::writeRootNode(). |
|
Definition at line 112 of file nodeprint.h. References TEXGraphOutputStrategy::m_pMap. |
|
Definition at line 111 of file nodeprint.h. |
|
Write the edge to the parent.
Definition at line 326 of file nodeprint.h. References TEXGraphOutputStrategy::getMapIndex(), Node::getParent(), Node::isFixed(), and StreamOut::m_out. Referenced by TEXGraphOutputStrategy::writeNormalNode(), and TEXGraphOutputStrategy::writeRootNode(). |
|
Write the TEX footer.
Implements StreamOutputStrategy. Definition at line 259 of file nodeprint.h. References TEXGraphOutputStrategy::formatName(), Node::getName(), Node::getParent(), StreamOut::m_out, and TEXGraphOutputStrategy::m_pMap. |
|
Write the TEX header.
Implements StreamOutputStrategy. Definition at line 230 of file nodeprint.h. References TEXGraphOutputStrategy::m_border, TEXGraphOutputStrategy::m_height, StreamOut::m_out, TEXGraphOutputStrategy::m_pMap, TEXGraphOutputStrategy::m_scale, and TEXGraphOutputStrategy::m_width. |
|
Write the normalNode content.
Implements StreamOutputStrategy. Definition at line 284 of file nodeprint.h. References TEXGraphOutputStrategy::formatName(), TEXGraphOutputStrategy::getMapIndex(), Node::getName(), TEXGraphOutputStrategy::m_border, TEXGraphOutputStrategy::m_height, StreamOut::m_out, TEXGraphOutputStrategy::m_pMap, TEXGraphOutputStrategy::m_scale, and TEXGraphOutputStrategy::writeEdge(). |
|
Write the RootNode content.
Implements StreamOutputStrategy. Definition at line 305 of file nodeprint.h. References TEXGraphOutputStrategy::formatName(), TEXGraphOutputStrategy::getMapIndex(), Node::getName(), TEXGraphOutputStrategy::m_border, TEXGraphOutputStrategy::m_height, StreamOut::m_out, TEXGraphOutputStrategy::m_pMap, TEXGraphOutputStrategy::m_scale, and TEXGraphOutputStrategy::writeEdge(). |
|
Definition at line 122 of file nodeprint.h. Referenced by TEXGraphOutputStrategy::writeHeader(), TEXGraphOutputStrategy::writeNormalNode(), and TEXGraphOutputStrategy::writeRootNode(). |
|
Definition at line 120 of file nodeprint.h. Referenced by TEXGraphOutputStrategy::writeHeader(), TEXGraphOutputStrategy::writeNormalNode(), and TEXGraphOutputStrategy::writeRootNode(). |
|
Definition at line 118 of file nodeprint.h. Referenced by TEXGraphOutputStrategy::getMapIndex(), TEXGraphOutputStrategy::setPositionMap(), TEXGraphOutputStrategy::writeFooter(), TEXGraphOutputStrategy::writeHeader(), TEXGraphOutputStrategy::writeNormalNode(), and TEXGraphOutputStrategy::writeRootNode(). |
|
Definition at line 121 of file nodeprint.h. Referenced by TEXGraphOutputStrategy::writeHeader(), TEXGraphOutputStrategy::writeNormalNode(), and TEXGraphOutputStrategy::writeRootNode(). |
|
Definition at line 119 of file nodeprint.h. Referenced by TEXGraphOutputStrategy::writeHeader(). |