https://mooseframework.inl.gov
Loading...
Searching...
No Matches
ImageFunction.h
Go to the documentation of this file.
1//* This file is part of the MOOSE framework
2//* https://mooseframework.inl.gov
3//*
4//* All rights reserved, see COPYRIGHT for full restrictions
5//* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6//*
7//* Licensed under LGPL 2.1, please see LICENSE for details
8//* https://www.gnu.org/licenses/lgpl-2.1.html
9
10#pragma once
11
12// MOOSE includes
13#include "Function.h"
14#include "ImageSampler.h"
15
19class ImageFunction : public ImageSampler, public Function
20{
21public:
27
29
33 virtual ~ImageFunction();
34
38 virtual void initialSetup() override;
39
40 using Function::value;
46 virtual Real value(Real t, const Point & p) const override;
47};
Base class for function objects.
Definition Function.h:30
virtual Real value(Real t, const Point &p) const
Override this to evaluate the scalar function at point (t,x,y,z), by default this returns zero,...
Definition Function.C:30
A function for extracting data from an image or stack of images.
virtual void initialSetup() override
Initialize the ImageSampler.
virtual ~ImageFunction()
Class destructor.
static InputParameters validParams()
Class constructor.
virtual Real value(Real t, const Point &p) const override
Return the pixel value for the given point.
A helper class for reading and sampling images using VTK.
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system.
const InputParameters & parameters() const
Get the parameters of the object.
Definition MooseBase.h:131