creativity
v1.3.0
Agent-based model of creativity and piracy
|
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. | |
![]() | |
virtual Cairo::Matrix | unitTransformation () const |
Returns a Cairo::Matrix that translates [0,1]x[0,1] coordinates into the drawable image surface. More... | |
Graph target that writes to pages of a PDF file.