GemaCoreLib
The GeMA Core library
Loading...
Searching...
No Matches
gmShapeOrthogonalPol.h
Go to the documentation of this file.
1/************************************************************************
2**
3** Copyright (C) 2018 by TECGRAF Group
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_SHAPE_ORTHOGONAL_POL_H_
25#define _GEMA_SHAPE_ORTHOGONAL_POL_H_
26
27#include "gmCoreConfig.h"
28
29
32{
33 // IMPORTANT: Do not change the enumeration order or add new entries without updating
34 // the code initializing the GmOrthPolyTables vector.
35 GM_LEGENDRE = 0,
36 GM_LOBATTO,
37 GM_DLEGENDRE,
38 GM_DLOBATTO,
39};
40
42#define GM_MAX_ORTHOGONAL_POL_ORDER 5
43
46{
47public:
48 typedef double CoefficientTable[GM_MAX_ORTHOGONAL_POL_ORDER+1][GM_MAX_ORTHOGONAL_POL_ORDER+1];
49
51
52 double operator()(double x, int Porder);
53
54private:
55 const CoefficientTable& _cTab;
56};
57
58#endif
Orthogonal polynomial calculation.
Definition gmShapeOrthogonalPol.h:46
const CoefficientTable & _cTab
The coefficient table for the object type.
Definition gmShapeOrthogonalPol.h:55
Declaration of useful configuration definitions for the Core library.
#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
GmShapeOrthognalPolType
The type of orthogonal polygon calculated by GmShapeOrthogonalPol.
Definition gmShapeOrthogonalPol.h:32
#define GM_MAX_ORTHOGONAL_POL_ORDER
The last polynomial order implemented by GmShapeOrthogonalPol.
Definition gmShapeOrthogonalPol.h:42