Wildmeshing Toolkit
wmtk::components::adaptive_tessellation::image::SamplingAnalyticFunction Class Reference

#include <Sampling.hpp>

Inheritance diagram for wmtk::components::adaptive_tessellation::image::SamplingAnalyticFunction:
[legend]
Collaboration diagram for wmtk::components::adaptive_tessellation::image::SamplingAnalyticFunction:
[legend]

Public Types

using FunctionType = SamplingAnalyticFunction_FunctionType
 
- Public Types inherited from wmtk::components::adaptive_tessellation::image::Sampling
using DScalar = DScalar2< double, Eigen::Matrix< double, -1, 1 >, Eigen::Matrix< double, -1, -1 > >
 

Public Member Functions

 SamplingAnalyticFunction (const FunctionType type, const double a, const double b, const double c)
 
void set_coefficients (double a, const double b, const double c)
 
double sample (const double u, const double v) const override
 
DScalar sample (const DScalar &u, const DScalar &v) const override
 
- Public Member Functions inherited from wmtk::components::adaptive_tessellation::image::Sampling
virtual ~Sampling ()
 

Protected Member Functions

template<typename S >
auto evaluate (const S &u, const S &v) const
 
template<typename S >
auto evaluate_linear (const S &u, const S &v) const
 

Protected Attributes

FunctionType m_type = FunctionType::Linear
 
double A = 0.0
 
double B = 0.0
 
double C = 0.0
 

Detailed Description

Definition at line 21 of file Sampling.hpp.

Member Typedef Documentation

◆ FunctionType

Constructor & Destructor Documentation

◆ SamplingAnalyticFunction()

wmtk::components::adaptive_tessellation::image::SamplingAnalyticFunction::SamplingAnalyticFunction ( const FunctionType  type,
const double  a,
const double  b,
const double  c 
)
inline

Definition at line 49 of file Sampling.hpp.

Member Function Documentation

◆ evaluate()

template<typename S >
auto wmtk::components::adaptive_tessellation::image::SamplingAnalyticFunction::evaluate ( const S &  u,
const S &  v 
) const
inlineprotected

Definition at line 33 of file Sampling.hpp.

References evaluate_linear(), wmtk::components::adaptive_tessellation::image::Linear, and m_type.

Here is the call graph for this function:

◆ evaluate_linear()

template<typename S >
auto wmtk::components::adaptive_tessellation::image::SamplingAnalyticFunction::evaluate_linear ( const S &  u,
const S &  v 
) const
inlineprotected

Definition at line 42 of file Sampling.hpp.

References A, B, and C.

Referenced by evaluate().

Here is the caller graph for this function:

◆ sample() [1/2]

double wmtk::components::adaptive_tessellation::image::SamplingAnalyticFunction::sample ( const double  u,
const double  v 
) const
inlineoverridevirtual

◆ sample() [2/2]

DScalar wmtk::components::adaptive_tessellation::image::SamplingAnalyticFunction::sample ( const DScalar u,
const DScalar v 
) const
inlineoverridevirtual

◆ set_coefficients()

void wmtk::components::adaptive_tessellation::image::SamplingAnalyticFunction::set_coefficients ( double  a,
const double  b,
const double  c 
)
inline

Definition at line 61 of file Sampling.hpp.

References A, B, and C.

Member Data Documentation

◆ A

double wmtk::components::adaptive_tessellation::image::SamplingAnalyticFunction::A = 0.0
protected

Definition at line 28 of file Sampling.hpp.

Referenced by evaluate_linear(), and set_coefficients().

◆ B

double wmtk::components::adaptive_tessellation::image::SamplingAnalyticFunction::B = 0.0
protected

Definition at line 29 of file Sampling.hpp.

Referenced by evaluate_linear(), and set_coefficients().

◆ C

double wmtk::components::adaptive_tessellation::image::SamplingAnalyticFunction::C = 0.0
protected

Definition at line 30 of file Sampling.hpp.

Referenced by evaluate_linear(), and set_coefficients().

◆ m_type

FunctionType wmtk::components::adaptive_tessellation::image::SamplingAnalyticFunction::m_type = FunctionType::Linear
protected

Definition at line 27 of file Sampling.hpp.

Referenced by evaluate().


The documentation for this class was generated from the following file: