Molassembler  3.0.0
Molecule graph and conformer library
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Scine::Molassembler::MolGraphWriter Struct Reference

Helper class to write the Graph as Graphviz output. More...

#include <MolGraphWriter.h>

Public Member Functions

 MolGraphWriter (const PrivateGraph *passGraphPtr, const StereopermutatorList *passPermutatorListPtr)
 
void operator() (std::ostream &os) const
 
void operator() (std::ostream &os, PrivateGraph::Vertex v) const
 
void operator() (std::ostream &os, const PrivateGraph::Edge &e) const
 
virtual std::map< std::string,
std::string > 
vertexAttributes (PrivateGraph::Vertex v) const
 All attributes to display for a vertex.
 
virtual std::string vertexLabel (PrivateGraph::Vertex v) const
 Label string for a vertex.
 
virtual std::pair< std::string,
std::string > 
fillFontColors (PrivateGraph::Vertex v) const
 Fill and font color for a vertex.
 
virtual std::map< std::string,
std::string > 
edgeAttributes (const PrivateGraph::Edge &e) const
 All attributes to display for an edge.
 
virtual std::string edgeColor (const PrivateGraph::Edge &e) const
 Display attribute pair for bond type (arbitrary)
 
virtual std::vector< std::string > edgeTooltips (AtomIndex source, AtomIndex target) const
 Tooltips for an edge.
 
virtual std::vector< std::string > atomStereopermutatorTooltips (const AtomStereopermutator &permutator) const
 Tooltips for an atom stereopermutator.
 
virtual std::vector< std::string > bondStereopermutatorTooltips (const BondStereopermutator &permutator) const
 Tooltips for a bond stereopermutator.
 

Static Public Member Functions

Static data
static const std::map
< std::string, std::string > & 
elementBGColorMap ()
 
static const std::map
< std::string, std::string > & 
elementTextColorMap ()
 

Data Fields

Members

Note: The members are pointers due to the manner in which this object is passed to boost.

!

const PrivateGraph *const graphPtr
 Non-null pointer to private graph.
 
const StereopermutatorList *const stereopermutatorListPtr
 Maybe pointer to stereopermutator list, maybe nullptr.
 

Detailed Description

Helper class to write the Graph as Graphviz output.


The documentation for this struct was generated from the following file: