11#ifdef MOOSE_HAVE_LIBPNG
19#include "libmesh/mesh_function.h"
20#include "libmesh/bounding_box.h"
34 void setRGB(png_byte * rgb, Real selection);
An outputter with filename support.
const InputParameters & parameters() const
Get the parameters of the object.
This is a "smart" enum class intended to replace many of the shortcomings in the C++ enum type It sho...
Output class to create a 2D figure in PNG format.
virtual void output()
Called to run the functions in this class.
Real applyScale(Real value_to_scale)
Function for applying scaling to given values.
static InputParameters validParams()
const bool _transparent_background
Indicates whether to make the background transparent.
void calculateRescalingValues()
Function to populate values to the variables used for scaling.
Real _scaling_min
Values used for rescaling the image.
void setRGB(png_byte *rgb, Real selection)
Method for assigning color values to the PNG.
Real _out_bounds_shade
Value of the colors that are outside of the libmesh bounds.
void makePNG()
Function that creates the PNG.
Real _max
Variables that store the max and min of the values in the variable used.
const Real _transparency
Controls transparency level for the general image.
BoundingBox _box
The boundaries of the image.
Real reverseScale(Real value_to_unscale)
Function for reversing the applyScale function.
std::unique_ptr< libMesh::MeshFunction > _mesh_function
Pointer to the libMesh::MeshFunction object in which the read data is stored.
unsigned int _nl_sys_num
What nonlinear system the variable is in.
const MooseEnum _color
Way to specify color vs grayscale image creation.
VariableName _variable
The name of the variable to use to create the png.
void makeMeshFunc()
Function to create the mesh_function.
const unsigned int _resolution
Variable to determine the size, or resolution, of the image.