Free Software Foundation GPLv3 LGPL Electronic Frontier Foundation
Mozilla.org OpenOffice.org Linux.com
OpenGraphtheory::Visualization::GraphWindowRenderingContext Class Reference
Inheritance diagram for OpenGraphtheory::Visualization::GraphWindowRenderingContext:
Collaboration diagram for OpenGraphtheory::Visualization::GraphWindowRenderingContext:

Public Member Functions

 GraphWindowRenderingContext (GraphWindow *window)
 
void BeginRenderingGraph (float WidthInCm, float HeightInCm, float ResolutionDPI)
 
void SetPenColor (Color color)
 
void SetBrushColor (Color color)
 
void SetLineWidth (float width)
 
void Line (float x1, float y1, float x2, float y2)
 
void Circle (float x, float y, float radius)
 
void PutText (float x, float y, std::string text)
 
- Public Member Functions inherited from OpenGraphtheory::Visualization::GraphRenderingContext
virtual void RenderGraph (Graph &G, std::string vertexcoloring, std::string edgecoloring, float dpi, float edgewidth, float vertexradius)
 
virtual void RenderGraph (Graph &G, std::map< Vertex *, Color > &vertexcoloring, std::map< Edge *, Color > &edgecoloring, float dpi, float edgewidth, float vertexradius)
 
- Public Member Functions inherited from OpenGraphtheory::Visualization::GraphicsContext
virtual void Arrow (float x1, float y1, float x2, float y2)
 

Protected Member Functions

void ModelToScreen (float &x, float &y)
 
void ScreenToModel (float &x, float &y)
 
- Protected Member Functions inherited from OpenGraphtheory::Visualization::GraphRenderingContext
virtual void EndRenderingGraph ()
 
virtual void BeginDeclaringVertices ()
 
virtual void DeclareVertex (int vertex_id, float x, float y, float radius, std::string text, Color color)
 
virtual void EndDeclaringVertices ()
 
virtual void BeginRenderingEdges ()
 
virtual void RenderEdge (int from_id, int to_id, float x1, float y1, float x2, float y2, float width, std::string text, Color color)
 
virtual void RenderArc (int from_id, int to_id, float x1, float y1, float x2, float y2, float width, std::string text, Color color)
 
virtual void EndRenderingEdges ()
 
virtual void BeginRenderingVertices ()
 
virtual void RenderVertex (int vertex_id, float x, float y, float radius, std::string text, Color color)
 
virtual void EndRenderingVertices ()
 
virtual bool MirroredYAxis ()
 

Protected Attributes

GraphWindowwindow
 
float LineWidth
 
Color PenColor
 
Color BrushColor
 
float ModelWidth
 
float ModelHeight
 
- Protected Attributes inherited from OpenGraphtheory::Visualization::GraphRenderingContext
Color LastPenColor
 
Color LastBrushColor
 
float LastLineWidth
 
float OffsetX
 
float OffsetY
 
Export::StringTranslatorTranslator
 

The documentation for this class was generated from the following files:
  • sources/opengt.so/Headers/visualize/GraphWindow.h
  • sources/opengt.so/Sources/visualize/GraphWindow.cpp
Contributors Disclaimer