24#ifndef _GEMA_INTERPOLATOR_OUTPUT_BINDINGS_H_
25#define _GEMA_INTERPOLATOR_OUTPUT_BINDINGS_H_
50 virtual int dim(
int srcIndex)
const = 0;
71 virtual int dim(
int srcIndex)
const { Q_UNUSED(srcIndex); assert(srcIndex == 0);
return _dim; }
99 virtual int dim(
int srcIndex)
const { Q_UNUSED(srcIndex); assert(srcIndex >= 0 && srcIndex <
_outList.
size());
return _dim; }
127 virtual int dim(
int srcIndex)
const { Q_UNUSED(srcIndex); assert(srcIndex == 0);
return _dim; }
133 assert(srcIndex == 0);
134 assert(
_ac->valueSize() == data.n_elem);
163 virtual int dim(
int srcIndex)
const { Q_UNUSED(srcIndex); assert(srcIndex >= 0 && srcIndex <
_acList.
size());
return _dim; }
168 assert(srcIndex >= 0 && srcIndex <
_acList.
size());
169 assert(
_acList.
at(srcIndex)->valueSize() == data.n_elem);
198 virtual int dim(
int srcIndex)
const { Q_UNUSED(srcIndex); assert(srcIndex == 0);
return _dim; }
204 assert(srcIndex == 0);
233 virtual int dim(
int srcIndex)
const { Q_UNUSED(srcIndex); assert(srcIndex >= 0 && srcIndex <
_acList.
size());
return _dim; }
238 assert(srcIndex >= 0 && srcIndex <
_acList.
size());
239 assert(
_acList.
at(srcIndex)->valueSize() == data.n_elem);
268 virtual int dim(
int srcIndex)
const = 0;
292 virtual int dim(
int srcIndex)
const { Q_UNUSED(srcIndex); assert(srcIndex == 0);
return _dim; }
320 virtual int dim(
int srcIndex)
const { Q_UNUSED(srcIndex); assert(srcIndex >= 0 && srcIndex <
_outList.
size());
return _dim; }
Base interface for FEM (finite element) mesh elements.
Definition gmElement.h:38
The GmGaussAccessor class is a proxy object to a value accessor implementing a more convenient interf...
Definition gmGaussAccessor.h:39
GmInterpolatorOutputDataBinding implementation storing a single value in a Gauss point through an acc...
Definition gmInterpolatorOutputBindings.h:113
GmInterpolatorGaussOutputDataBinding(GmGaussAccessor *ac, const GmElement *elem, int ip, int dim=-1)
Constructor, receiving the Gauss accessor along with the Gauss point identification (element + point ...
Definition gmInterpolatorOutputBindings.h:120
virtual int dim(int srcIndex) const
Returns the access index for retrieving scalar values from vector data or -1 if unused.
Definition gmInterpolatorOutputBindings.h:127
int _dim
The selected dimension when converting vector data to scalars or -1 if not needed.
Definition gmInterpolatorOutputBindings.h:142
virtual void setValue(int srcIndex, const GmVector &data)
Saves the given vector as the result for the given data src.
Definition gmInterpolatorOutputBindings.h:130
const GmElement * _elem
The element where the result will be stored.
Definition gmInterpolatorOutputBindings.h:140
int _ip
The element Gauss point index where the result will be stored.
Definition gmInterpolatorOutputBindings.h:141
GmGaussAccessor * _ac
The accessor for storing results.
Definition gmInterpolatorOutputBindings.h:139
virtual int numSrcs()
Returns the number o data srcs (accessors) stored by this object.
Definition gmInterpolatorOutputBindings.h:124
GmInterpolatorOutputDataBinding implementation storing multiple values in a Gauss point through an ac...
Definition gmInterpolatorOutputBindings.h:149
virtual void setValue(int srcIndex, const GmVector &data)
Saves the given vector as the result for the given data src.
Definition gmInterpolatorOutputBindings.h:166
const QVector< GmGaussAccessor * > & _acList
The list with accessors for storing results.
Definition gmInterpolatorOutputBindings.h:174
virtual int dim(int srcIndex) const
Returns the access index for retrieving scalar values from vector data or -1 if unused.
Definition gmInterpolatorOutputBindings.h:163
int _ip
The element Gauss point index where the result will be stored.
Definition gmInterpolatorOutputBindings.h:176
GmInterpolatorMGaussOutputDataBinding(const QVector< GmGaussAccessor * > &acList, const GmElement *elem, int ip, int dim=-1)
Constructor, receiving the Gauss accessor list along with the Gauss point identification (element + p...
Definition gmInterpolatorOutputBindings.h:156
int _dim
The selected dimension when converting vector data to scalars or -1 if not needed.
Definition gmInterpolatorOutputBindings.h:177
virtual int numSrcs()
Returns the number o data srcs (accessors) stored by this object.
Definition gmInterpolatorOutputBindings.h:160
const GmElement * _elem
The element where the result will be stored.
Definition gmInterpolatorOutputBindings.h:175
GmInterpolatorOutputMultiDataBinding implementation storing multiple values in a matrix list.
Definition gmInterpolatorOutputBindings.h:304
virtual int dim(int srcIndex) const
Returns the access index for retrieving scalar values from vector data or -1 if unused.
Definition gmInterpolatorOutputBindings.h:320
GmInterpolatorMMatrixOutputMultiDataBinding(QVector< GmMatrix > &outList, int nresults, int dim=-1)
Constructor, receiving a reference to the matrix list that will be filled plus the dimension informat...
Definition gmInterpolatorOutputBindings.h:310
virtual int numSrcs()
Returns the number o data srcs (accessors) stored by this object.
Definition gmInterpolatorOutputBindings.h:317
QVector< GmMatrix > & _outList
A reference to the matrix list where the interpolation results will be stored.
Definition gmInterpolatorOutputBindings.h:326
int _dim
The selected dimension when converting vector data to scalars or -1 if not needed.
Definition gmInterpolatorOutputBindings.h:327
virtual void setValue(int srcIndex, const GmMatrix &data)
Saves the given matrix as the result for the given data src. The data matrix stores results per colum...
Definition gmInterpolatorOutputBindings.h:323
GmInterpolatorOutputDataBinding implementation storing multiple values in a node through an accessor ...
Definition gmInterpolatorOutputBindings.h:219
virtual int numSrcs()
Returns the number o data srcs (accessors) stored by this object.
Definition gmInterpolatorOutputBindings.h:230
virtual void setValue(int srcIndex, const GmVector &data)
Saves the given vector as the result for the given data src.
Definition gmInterpolatorOutputBindings.h:236
int _dim
The selected dimension when converting vector data to scalars or -1 if not needed.
Definition gmInterpolatorOutputBindings.h:246
virtual int dim(int srcIndex) const
Returns the access index for retrieving scalar values from vector data or -1 if unused.
Definition gmInterpolatorOutputBindings.h:233
GmInterpolatorMNodeOutputDataBinding(const QVector< GmValueAccessor * > &acList, int nodeIndex, int dim=-1)
Constructor, receiving the node accessor list along with the node identification plus the dimension i...
Definition gmInterpolatorOutputBindings.h:226
const QVector< GmValueAccessor * > & _acList
The list with accessors for storing results.
Definition gmInterpolatorOutputBindings.h:244
int _nodeIndex
The node index where the results will be stored.
Definition gmInterpolatorOutputBindings.h:245
GmInterpolatorOutputDataBinding implementation storing multiple values in a vector list.
Definition gmInterpolatorOutputBindings.h:83
QVector< GmVector > & _outList
A reference to the vector list where the interpolation results will be stored.
Definition gmInterpolatorOutputBindings.h:105
virtual int dim(int srcIndex) const
Returns the access index for retrieving scalar values from vector data or -1 if unused.
Definition gmInterpolatorOutputBindings.h:99
GmInterpolatorMVectorOutputDataBinding(QVector< GmVector > &outList, int nresults, int dim=-1)
Constructor, receiving a reference to the vector list that will be filled plus the dimension informat...
Definition gmInterpolatorOutputBindings.h:89
virtual int numSrcs()
Returns the number o data srcs (accessors) stored by this object.
Definition gmInterpolatorOutputBindings.h:96
virtual void setValue(int srcIndex, const GmVector &data)
Saves the given vector as the result for the given data src.
Definition gmInterpolatorOutputBindings.h:102
int _dim
The selected dimension when converting vector data to scalars or -1 if not needed.
Definition gmInterpolatorOutputBindings.h:106
GmInterpolatorOutputMultiDataBinding implementation storing a single value in a matrix.
Definition gmInterpolatorOutputBindings.h:279
GmInterpolatorMatrixOutputMultiDataBinding(GmMatrix &outData, int dim=-1)
Constructor, receiving a reference to the vector that will be filled plus the dimension information u...
Definition gmInterpolatorOutputBindings.h:285
GmMatrix & _outData
A reference to the matrix where the interpolation result will be stored.
Definition gmInterpolatorOutputBindings.h:298
virtual void setValue(int srcIndex, const GmMatrix &data)
Saves the given matrix as the result for the given data src. The data matrix stores results per colum...
Definition gmInterpolatorOutputBindings.h:295
virtual int dim(int srcIndex) const
Returns the access index for retrieving scalar values from vector data or -1 if unused.
Definition gmInterpolatorOutputBindings.h:292
virtual int numSrcs()
Returns the number o data srcs (accessors) stored by this object.
Definition gmInterpolatorOutputBindings.h:289
int _dim
The selected dimension when converting vector data to scalars or -1 if not needed.
Definition gmInterpolatorOutputBindings.h:299
GmInterpolatorOutputDataBinding implementation storing a single value in a node attribute through an ...
Definition gmInterpolatorOutputBindings.h:184
int _dim
The selected dimension when converting vector data to scalars or -1 if not needed.
Definition gmInterpolatorOutputBindings.h:212
GmValueAccessor * _ac
The accessor for storing results.
Definition gmInterpolatorOutputBindings.h:210
virtual int numSrcs()
Returns the number o data srcs (accessors) stored by this object.
Definition gmInterpolatorOutputBindings.h:195
int _nodeIndex
The node index where the result will be stored.
Definition gmInterpolatorOutputBindings.h:211
virtual int dim(int srcIndex) const
Returns the access index for retrieving scalar values from vector data or -1 if unused.
Definition gmInterpolatorOutputBindings.h:198
virtual void setValue(int srcIndex, const GmVector &data)
Saves the given vector as the result for the given data src.
Definition gmInterpolatorOutputBindings.h:201
GmInterpolatorNodeOutputDataBinding(GmValueAccessor *ac, int nodeIndex, int dim=-1)
Constructor, receiving the node accessor along with the node identification plus the dimension inform...
Definition gmInterpolatorOutputBindings.h:191
Binding class used to host the data structure where calculated interpolated values will be stored....
Definition gmInterpolatorOutputBindings.h:43
virtual int dim(int srcIndex) const =0
Returns the access index for retrieving scalar values from vector data or -1 if unused.
virtual void setValue(int srcIndex, const GmVector &data)=0
Saves the given vector as the result for the given data src.
virtual int numSrcs()=0
Returns the number o data srcs (accessors) stored by this object.
Binding class used to host the data structure where calculated interpolated values will be stored for...
Definition gmInterpolatorOutputBindings.h:261
virtual int dim(int srcIndex) const =0
Returns the access index for retrieving scalar values from vector data or -1 if unused.
virtual int numSrcs()=0
Returns the number o data srcs (accessors) stored by this object.
virtual void setValue(int srcIndex, const GmMatrix &data)=0
Saves the given matrix as the result for the given data src. The data matrix stores results per colum...
GmInterpolatorOutputDataBinding implementation storing a single value in a vector.
Definition gmInterpolatorOutputBindings.h:58
GmVector & _outData
A reference to the vector where the interpolation result will be stored.
Definition gmInterpolatorOutputBindings.h:77
virtual void setValue(int srcIndex, const GmVector &data)
Saves the given vector as the result for the given data src.
Definition gmInterpolatorOutputBindings.h:74
GmInterpolatorVectorOutputDataBinding(GmVector &outData, int dim=-1)
Constructor, receiving a reference to the vector that will be filled plus the dimension information u...
Definition gmInterpolatorOutputBindings.h:64
virtual int dim(int srcIndex) const
Returns the access index for retrieving scalar values from vector data or -1 if unused.
Definition gmInterpolatorOutputBindings.h:71
int _dim
The selected dimension when converting vector data to scalars or -1 if not needed.
Definition gmInterpolatorOutputBindings.h:78
virtual int numSrcs()
Returns the number o data srcs (accessors) stored by this object.
Definition gmInterpolatorOutputBindings.h:68
Interface class for accessing and setting values from an "indexable" collection of values.
Definition gmValueAccessor.h:60
int valueSize() const
Returns the size of the array returned by value(), i.e. 1 for scalar values and nlin * ncol for vecto...
Definition gmValueAccessor.h:102
bool setVectorValue(int index, const GmVector &vec)
Similar to setValue() but receiving the data as a vector.
Definition gmValueAccessor.h:233
Declaration of useful configuration definitions for the Core library.
Implementation of the GmGaussAccessor proxy class.
arma::mat GmMatrix
The basic type for a GeMA matrix object. Currently based on an Armadillo matrix.
Definition gmMatrix.h:38
arma::vec GmVector
The basic type for a GeMA vector object. Currently based on an Armadillo vector.
Definition gmVector.h:34
const T & at(int i) const const