20#ifndef LIBMESH_POSTSCRIPT_IO_H
21#define LIBMESH_POSTSCRIPT_IO_H
24#include "libmesh/libmesh_common.h"
25#include "libmesh/mesh_output.h"
27#include "libmesh/point.h"
70 virtual void write (
const std::string &)
override;
This is the base class from which all geometric element types are derived.
This is the MeshBase class.
This class defines an abstract interface for Mesh output.
const MeshBase & mesh() const
A Point defines a location in LIBMESH_DIM dimensional Real space.
This class implements writing 2D meshes in Postscript.
void plot_quadratic_elem(const Elem *elem)
Draws an element with Bezier curves.
std::ostringstream _cell_string
Drawing style-independent data for a single cell.
Real _scale
Amount by which to stretch each point to place it in Postscript coordinates.
std::ofstream _out
Output file stream which will be opened when the file name is known.
virtual ~PostscriptIO()
Destructor.
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_...
Point _current_point
A point object used for temporary calculations.
Point _offset
Amount to add to every (x,y) point to place it in Postscript coordinates.
virtual void write(const std::string &) override
This method implements writing a mesh to a specified file.
Real shade_value
Controls greyscale shading of cells.
Real line_width
Control the thickness of the lines used.
void plot_linear_elem(const Elem *elem)
Draws an element with straight lines.
void _compute_edge_bezier_coeffs(const Elem *elem)
Given a quadratic edge Elem which lies in the x-y plane, computes the Bezier coefficients.
The libMesh namespace provides an interface to certain functionality in the library.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real