23#ifndef _MiPointProbeIj_h
24#define _MiPointProbeIj_h
26#include <MeshVizXLM/mesh/data/MiDataSetIj.h>
27#include <MeshVizXLM/mesh/cell/MiCell.h>
107 template <
typename _T>
123 virtual void getWeight(std::vector<double>& weight)
const = 0;
127template <
typename _T>
137 std::vector<double> weight(4);
139 val += weight[0]*dataset.
get(icell,jcell);
140 val += weight[1]*dataset.
get(icell+1,jcell);
141 val += weight[2]*dataset.
get(icell+1,jcell+1);
142 val += weight[3]*dataset.
get(icell,jcell+1);
145 val = dataset.
get(icell,jcell);
<a href="IconLegend.html"><img src="extMV.gif" alt="MeshViz" border="0"></a> Interface class defining...
virtual DataBinding getBinding() const =0
Returns the data binding of this data set.
<a href="IconLegend.html"><img src="extMV.gif" alt="MeshViz" border="0"></a> Generic data set interfa...
virtual _T get(size_t i, size_t j) const =0
Returns the ij-th value of this set.
<a href="IconLegend.html"><img src="extMV.gif" alt="MeshViz" border="0"></a> Probe at a given locatio...
virtual bool isFound() const =0
static MiPointProbeIj * getNewInstance(const MiSurfaceMeshCurvilinear &mesh, bool parallel=true)
virtual bool setLocation(const MbVec3d &point, const MiCellFilterIj *cellFilter=NULL)=0
Sets the current probe location at the given point and looks for the cell containing this point.
static MiPointProbeIj * getNewInstance(const MiSurfaceMeshRectilinear &mesh, bool parallel=true)
virtual ~MiPointProbeIj()
_T getValue(const MiDataSetIj< _T > &dataset) const
Gets the value at the current probe location in the given dataset.
virtual void getCellId(size_t &i, size_t &j) const =0
Gets the ids of the cell of the mesh containing the current location of the probe.
virtual void getWeight(std::vector< double > &weight) const =0
Gets the weights at the current probe location.
virtual bool moveLocation(const MbVec3d &point, size_t cellIdI, size_t cellIdJ, const MiCellFilterIj *cellFilter=NULL)=0
Moves the current probe location at the given point.
static MiPointProbeIj * getNewInstance(const MiSurfaceMeshRegular &mesh, bool parallel=true)
Factory method returning a new instance of a class implementing this abstract class.
<a href="IconLegend.html"><img src="extMV.gif" alt="MeshViz" border="0"></a> Curvilinear surface mesh...
<a href="IconLegend.html"><img src="extMV.gif" alt="MeshViz" border="0"></a> Rectilinear surface mesh...
<a href="IconLegend.html"><img src="extMV.gif" alt="MeshViz" border="0"></a> Regular surface mesh abs...