virtual void write(const std::string &) override
This method implements writing a mesh to a specified file.
void plot_linear_elem(const Elem *elem)
Draws an element with straight lines.
PostscriptIO(const MeshBase &mesh)
Constructor.
Real shade_value
Controls greyscale shading of cells.
void plot_quadratic_elem(const Elem *elem)
Draws an element with Bezier curves.
Point _offset
Amount to add to every (x,y) point to place it in Postscript coordinates.
This class implements writing 2D meshes in Postscript.
void _compute_edge_bezier_coeffs(const Elem *elem)
Given a quadratic edge Elem which lies in the x-y plane, computes the Bezier coefficients.
Point _current_point
A point object used for temporary calculations.
static const float _bezier_transform[3][3]
Coefficients of the transformation from physical-space edge coordinates to Bezier basis coefficients.
std::vector< Point > _bezier_coeffs
Vector containing 3 points corresponding to Bezier coefficients, as computed by _compute_edge_bezier_...
Real _scale
Amount by which to stretch each point to place it in Postscript coordinates.
Real line_width
Control the thickness of the lines used.
std::ofstream _out
Output file stream which will be opened when the file name is known.
std::ostringstream _cell_string
Drawing style-independent data for a single cell.