PLaSK library
Loading...
Searching...
No Matches
plask::RectangularMaskedMesh2D::ElementMesh Struct Reference

Element mesh. More...

#include <plask/mesh/rectangular_masked2d.hpp>

Inheritance diagram for plask::RectangularMaskedMesh2D::ElementMesh:
[legend]
Collaboration diagram for plask::RectangularMaskedMesh2D::ElementMesh:
[legend]

Public Member Functions

 ElementMesh (const RectangularMaskedMesh2D *originalMesh)
 
std::size_t index (std::size_t axis0_index, std::size_t axis1_index) const
 Calculate this mesh index using indexes of axis0 and axis1.
 
bool prepareInterpolation (const Vec< 2 > &point, Vec< 2 > &wrapped_point, std::size_t &index0_lo, std::size_t &index0_hi, std::size_t &index1_lo, std::size_t &index1_hi, const InterpolationFlags &flags) const
 
RectangularMaskedMesh2D toMasked () const
 
 operator RectangularMaskedMesh2D () const
 
template<typename RandomAccessContainer >
auto interpolateLinear (const RandomAccessContainer &data, const Vec< 2 > &point, const InterpolationFlags &flags) const -> typename std::remove_reference< decltype(data[0])>::type
 Calculate (using linear interpolation) value of data in point using data in points described by this mesh.
 
template<typename RandomAccessContainer >
auto interpolateNearestNeighbor (const RandomAccessContainer &data, const Vec< 2 > &point, const InterpolationFlags &flags) const -> typename std::remove_reference< decltype(data[0])>::type
 Calculate (using nearest neighbor interpolation) value of data in point using data in points described by this mesh.
 

Detailed Description

Element mesh.

Definition at line 159 of file rectangular_masked2d.hpp.

Constructor & Destructor Documentation

◆ ElementMesh()

plask::RectangularMaskedMesh2D::ElementMesh::ElementMesh ( const RectangularMaskedMesh2D originalMesh)
inlineexplicit

Definition at line 161 of file rectangular_masked2d.hpp.

Member Function Documentation

◆ index()

std::size_t plask::RectangularMaskedMesh2D::ElementMesh::index ( std::size_t  axis0_index,
std::size_t  axis1_index 
) const
inline

Calculate this mesh index using indexes of axis0 and axis1.

Parameters
axis0_indexindex of axis0, from 0 to axis[0]->size()-1
axis1_indexindex of axis1, from 0 to axis[1]->size()-1
Returns
this mesh index, from 0 to size()-1, or NOT_INCLUDED

Definition at line 169 of file rectangular_masked2d.hpp.

◆ interpolateLinear()

auto plask::RectangularMaskedMesh2D::ElementMesh::interpolateLinear ( const RandomAccessContainer data,
const Vec< 2 > &  point,
const InterpolationFlags flags 
) const -> typename std::remove_reference<decltype(data[0])>::type
inline

Calculate (using linear interpolation) value of data in point using data in points described by this mesh.

Parameters
datavalues of data in points describe by this mesh
pointpoint in which value should be calculate
Returns
interpolated value in point point

Definition at line 196 of file rectangular_masked2d.hpp.

◆ interpolateNearestNeighbor()

auto plask::RectangularMaskedMesh2D::ElementMesh::interpolateNearestNeighbor ( const RandomAccessContainer data,
const Vec< 2 > &  point,
const InterpolationFlags flags 
) const -> typename std::remove_reference<decltype(data[0])>::type
inline

Calculate (using nearest neighbor interpolation) value of data in point using data in points described by this mesh.

Parameters
datavalues of data in points describe by this mesh
pointpoint in which value should be calculate
Returns
interpolated value in point point

Definition at line 246 of file rectangular_masked2d.hpp.

◆ operator RectangularMaskedMesh2D()

plask::RectangularMaskedMesh2D::ElementMesh::operator RectangularMaskedMesh2D ( ) const
inline

Definition at line 185 of file rectangular_masked2d.hpp.

◆ prepareInterpolation()

bool plask::RectangularMaskedMesh2D::ElementMesh::prepareInterpolation ( const Vec< 2 > &  point,
Vec< 2 > &  wrapped_point,
std::size_t &  index0_lo,
std::size_t &  index0_hi,
std::size_t &  index1_lo,
std::size_t &  index1_hi,
const InterpolationFlags flags 
) const
inline

Definition at line 174 of file rectangular_masked2d.hpp.

◆ toMasked()

RectangularMaskedMesh2D plask::RectangularMaskedMesh2D::ElementMesh::toMasked ( ) const
inline

Definition at line 180 of file rectangular_masked2d.hpp.


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