GemaCoreLib
The GeMA Core library
Loading...
Searching...
No Matches
gmMlsInterpolatorObject.h
Go to the documentation of this file.
1/************************************************************************
2**
3** Copyright (C) 2014 by Carlos Augusto Teixera Mendes
4** All rights reserved.
5**
6** This file is part of the "GeMA" software. It's use should respect
7** the terms in the license agreement that can be found together
8** with this source code.
9** It is provided AS IS, with NO WARRANTY OF ANY KIND,
10** INCLUDING THE WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR
11** A PARTICULAR PURPOSE.
12**
13************************************************************************/
14
24#ifndef _GEMA_MLS_INTERPOLATOR_OBJECT_H_
25#define _GEMA_MLS_INTERPOLATOR_OBJECT_H_
26
27#include "gmInterpolator.h"
28
31{
32public:
33
34 // See comments on the base class
35 virtual GmInterpolatorType type() const { return GM_MLS_INTERPOLATOR; }
36
37 // See comments on the base class
42
43 virtual bool distanceBasedWeights(GmInterpolatorCoordinateSetBinding* pointSet, const GmVector& coord,
44 const GmVector& squaredDistances, const QVariant& typeParam,
45 GmVector& weights) const;
46
47private:
48 bool checkColinearity(GmInterpolatorCoordinateSetBinding* pointSet) const;
49 bool checkCoplanarity(GmInterpolatorCoordinateSetBinding* pointSet) const;
50};
51
52
53#endif
Basic interface for a set storing point cartesian coordinates. This set can be filled with points fro...
Definition gmInterpolatorCoordinateBindings.h:75
Interface class for the implementation of each of the possible interpolation algorithms available in ...
Definition gmInterpolator.h:156
virtual bool distanceBasedWeights(GmInterpolatorCoordinateSetBinding *pointSet, const GmVector &coord, const GmVector &squaredDistances, const QVariant &typeParam, GmVector &weights) const
Worker function for the default implementation of interpolationWeights(). This is the function that n...
Definition gmInterpolator.h:201
Implements the Moving Least Squares interpolation method.
Definition gmMlsInterpolatorObject.h:31
virtual GmInterpolatorType type() const
Returns the interpolator object type.
Definition gmMlsInterpolatorObject.h:35
virtual bool supportsInterpolatorKind(GmInterpolatorKind kind) const
Returns whether this interpolator object supports the given interpolator kind or not.
Definition gmMlsInterpolatorObject.h:38
#define GMC_API_EXPORT
Macro for controlling if the class is being exported (GEMA_CORE_LIB defined) or imported (GEMA_CORE_L...
Definition gmCoreConfig.h:35
Declaration of the GmInterpolator and GmInterpolatorObject classes.
GmInterpolatorType
Available interpolation methods. Not every method is suitable for every kind of interpolator class....
Definition gmInterpolator.h:64
@ GM_MLS_INTERPOLATOR
Interpolated value is based on the moving least squares method. A method parameter specifies the RBF ...
Definition gmInterpolator.h:103
GmInterpolatorKind
Enum identifying the types of available interpolation classes.
Definition gmInterpolator.h:49
@ GM_POINTCLOUD_TO_POINT_INTERPOLATOR
Classes for interpolating values in a point cloud to another point.
Definition gmInterpolator.h:53
@ GM_NODE_TO_POINT_INTERPOLATOR
Classes for interpolating values in cell nodes to points inside the cell.
Definition gmInterpolator.h:50
@ GM_GAUSS_TO_POINT_INTERPOLATOR
Classes for interpolating values in Gauss points to element points.
Definition gmInterpolator.h:52
arma::vec GmVector
The basic type for a GeMA vector object. Currently based on an Armadillo vector.
Definition gmVector.h:34