creativity  v1.3.0
Agent-based model of creativity and piracy
Public Member Functions | List of all members
creativity::data::graph::PDF Class Reference

Graph target that writes to pages of a PDF file. More...

#include <creativity/data/graph/PDF.hpp>

Public Member Functions

 PDF (std::string filename, double width_inches, double height_inches)
 Constructs a new PDF target with the given filename and size.
 
virtual Cairo::RefPtr< Cairo::Surface > surface () override
 Creates and returns a Cairo::Context that writes to the current page.
 
virtual const double & width () const override
 Returns the surface width.
 
virtual const double & height () const override
 Returns the surface height.
 
virtual void newPage () override
 Writes the current surface to disk and starts a new page.
 
- Public Member Functions inherited from creativity::data::graph::Target
virtual Cairo::Matrix unitTransformation () const
 Returns a Cairo::Matrix that translates [0,1]x[0,1] coordinates into the drawable image surface. More...
 

Detailed Description

Graph target that writes to pages of a PDF file.

Inheritance diagram for creativity::data::graph::PDF:
[legend]
Collaboration diagram for creativity::data::graph::PDF:
[legend]

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