26 virtual std::unique_ptr<MooseMesh>
safeClone()
const override;
45 void GetPixelInfo(std::string filename,
int & xpixels,
int & ypixels);
void buildMesh3D(const std::vector< std::string > &filenames)
buildMesh() calls this helper function to build 3D ImageMeshes from stacks of images.
ImageMesh(const InputParameters ¶meters)
virtual std::unique_ptr< MooseMesh > safeClone() const override
A safer version of the clone() method that hands back an allocated object wrapped in a smart pointer...
const std::vector< std::string > & filenames()
void buildMesh2D(const std::string &filename)
buildMesh() calls this helper function to build 2D ImageMeshes.
Mesh generated from parameters.
virtual void buildMesh() override
Must be overridden by child classes.
To be called in the validParams functions of classes that need to operate on ranges of files...
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
const Real & _cells_per_pixel
A number <= 1.0 which determines the number of cells in the mesh per pixel in each direction...
const InputParameters & parameters() const
Get the parameters of the object.
const bool _scale_to_one
If true, forces the maximum width (height) of the mesh to be 1.0 while retaining the original aspect ...
static InputParameters validParams()
void GetPixelInfo(std::string filename, int &xpixels, int &ypixels)
Process a single image with the 'file' command to find out the number of pixels in the x and y direct...
A 2D GeneratedMesh where xmin, xmax, etc.